/* Base de connaissances: index page on top of the guide styles. */
.playnest-site .pn-kb { --kb-ink: #202e43; --kb-body: #697485; --kb-blue: #3d5ee8; --kb-coral: #e98770; --kb-green: #477c72; }
.playnest-site .pn-kb > * + * { margin-top: 26px; }
.playnest-site .pn-kb [hidden] { display: none !important; }
.playnest-site .pn-kb-label { margin: 0 0 10px; font: 650 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.4px; text-transform: uppercase; color: #8c96a5; }

/* Hero */
.playnest-site .pn-kb-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: center; padding: 40px; border-radius: 24px; background: radial-gradient(circle at 92% 8%, #3d5ee855, transparent 55%), linear-gradient(150deg, #202e43, #273e7c); color: #fff; box-shadow: 0 25px 60px #202e4326; }
.playnest-site .pn-kb-hero .pn-kb-label { color: #9eabc0; }
.playnest-site .pn-kb-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -2px; color: #f3f1ed; }
.playnest-site .pn-kb-hero-copy > p:not(.pn-kb-label) { margin: 0 0 24px; max-width: 520px; font-size: 15px; line-height: 1.75; color: #c4cde0; }
.playnest-site .pn-kb-search { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 18px; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px #0d152433; }
.playnest-site .pn-kb-search > span { font-size: 20px; color: #8c96a5; }
.playnest-site .pn-kb-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font: 600 15px Inter, Arial, sans-serif; color: #202e43; outline: none; }
.playnest-site .pn-kb-search input::placeholder { color: #9aa2b0; font-weight: 500; }
.playnest-site .pn-kb-search kbd { padding: 4px 9px; border-radius: 7px; border: 1px solid #e1e3e6; background: #f7f8fb; font: 700 11px ui-monospace, monospace; color: #8c96a5; }
.playnest-site .pn-kb-search:focus-within { box-shadow: 0 0 0 4px #f0b39866, 0 16px 40px #0d152433; }
.playnest-site .pn-kb-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.playnest-site .pn-kb-suggest button { padding: 6px 12px; border-radius: 999px; border: 1px solid #ffffff2e; background: transparent; color: #dfe5f5; font: 650 12px Inter, Arial, sans-serif; cursor: pointer; transition: background .2s, border-color .2s; }
.playnest-site .pn-kb-suggest button:hover { background: #ffffff1a; border-color: #ffffff59; color: #fff; }
.playnest-site .pn-kb-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.playnest-site .pn-kb-hero-stats > div { padding: 16px 18px; border-radius: 14px; background: #ffffff10; border: 1px solid #ffffff1f; }
.playnest-site .pn-kb-hero-stats > div:first-child { grid-column: 1 / -1; background: #f0b39826; border-color: #f0b39866; }
.playnest-site .pn-kb-hero-stats strong { display: block; font-size: 30px; line-height: 1; letter-spacing: -1px; color: #fff; }
.playnest-site .pn-kb-hero-stats > div:first-child strong { font-size: 44px; color: #f2b69a; }
.playnest-site .pn-kb-hero-stats span { display: block; margin-top: 6px; font-size: 12px; color: #c4cde0; }
.playnest-site .pn-kb-hero-stats .is-novice strong { color: #9fe0c8; }
.playnest-site .pn-kb-hero-stats .is-avance strong { color: #b6c4f7; }

/* Starters */
.playnest-site .pn-kb-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.playnest-site .pn-kb-section-head h2 { margin: 0; font-size: 26px; letter-spacing: -1px; color: #202e43; }
.playnest-site .pn-kb-starter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.playnest-site .pn-kb-starter { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: #f0e7df; color: inherit; text-decoration: none; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.playnest-site .pn-kb-starter:nth-child(2) { background: #edf1fb; }
.playnest-site .pn-kb-starter:nth-child(3) { background: #e8f2ee; }
.playnest-site .pn-kb-starter:hover { transform: translateY(-4px); box-shadow: 0 18px 45px #202e4317; }
.playnest-site .pn-kb-starter-step { font: 800 44px/1 Inter, Arial, sans-serif; letter-spacing: -2px; color: #ffffffb3; position: absolute; right: 18px; top: 14px; }
.playnest-site .pn-kb-starter strong { position: relative; font-size: 17px; line-height: 1.3; letter-spacing: -.3px; color: #202e43; max-width: 85%; }
.playnest-site .pn-kb-starter small { position: relative; font-size: 13px; line-height: 1.65; color: #697485; }
.playnest-site .pn-kb-starter-meta { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 700; color: #4b5668; }
.playnest-site .pn-kb-starter-meta b { display: inline-block; margin-left: 6px; color: #3d5ee8; transition: transform .2s; }
.playnest-site .pn-kb-starter:hover .pn-kb-starter-meta b { transform: translateX(4px); }

/* Toolbar */
.playnest-site .pn-kb-toolbar { position: sticky; top: 10px; z-index: 6; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: #fffffff2; backdrop-filter: blur(10px); border: 1px solid #e1e3e6; box-shadow: 0 12px 35px #24334a0f; }
.playnest-site .pn-kb-topics, .playnest-site .pn-kb-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.playnest-site .pn-kb-topics button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid #e1e3e6; background: #fff; font: 650 12px Inter, Arial, sans-serif; color: #4b5668; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.playnest-site .pn-kb-topics button span { color: #e98770; }
.playnest-site .pn-kb-topics button b { font-size: 11px; color: #9aa2b0; }
.playnest-site .pn-kb-topics button:hover { border-color: #c9d3ef; }
.playnest-site .pn-kb-topics button[aria-pressed="true"] { background: #202e43; border-color: #202e43; color: #fff; }
.playnest-site .pn-kb-topics button[aria-pressed="true"] span, .playnest-site .pn-kb-topics button[aria-pressed="true"] b { color: #f2b69a; }
.playnest-site .pn-kb-levels { padding-top: 12px; border-top: 1px solid #eef0f3; }
.playnest-site .pn-kb-levels a { padding: 6px 12px; border-radius: 9px; font-size: 12px; font-weight: 700; color: #657080; text-decoration: none; transition: background .2s, color .2s; }
.playnest-site .pn-kb-levels a:hover { background: #f2f4f8; color: #202e43; }
.playnest-site .pn-kb-levels a.active { background: #edf1fb; color: #3d5ee8; }
.playnest-site .pn-kb-levels a.is-favorites { margin-left: auto; color: #b56a52; }
.playnest-site .pn-kb-levels a.is-favorites.active { background: #fcebe5; }

/* Level sections */
.playnest-site .pn-kb .guide-level-sections { display: grid; gap: 34px; }
.playnest-site .pn-kb-count { padding: 5px 12px; border-radius: 999px; background: #edf1fb; color: #3d5ee8; font-size: 12px; font-weight: 750; }
.playnest-site .pn-kb-level.is-novice .pn-kb-count { background: #e8f2ee; color: #477c72; }
.playnest-site .pn-kb-level.is-expert .pn-kb-count { background: #fcebe5; color: #d0634b; }
.playnest-site .pn-kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Cards */
.playnest-site .pn-kb-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 18px; border: 1px solid #e1e3e6; box-shadow: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.playnest-site .pn-kb-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: #8198f0; }
.playnest-site .pn-kb-card.is-novice::before { background: #477c72; }
.playnest-site .pn-kb-card.is-expert::before { background: #e98770; }
.playnest-site .pn-kb-card:hover { transform: translateY(-4px); border-color: #c9d3ef; box-shadow: 0 18px 45px #202e4314; }
.playnest-site .pn-kb-card-head { display: flex; align-items: center; gap: 12px; }
.playnest-site .pn-kb-card-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: #edf1fb; color: #3d5ee8; }
.playnest-site .pn-kb-card.is-novice .pn-kb-card-icon { background: #e8f2ee; color: #477c72; }
.playnest-site .pn-kb-card.is-expert .pn-kb-card-icon { background: #fcebe5; color: #d0634b; }
.playnest-site .pn-kb-card-tags { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; color: #8c96a5; }
.playnest-site .pn-kb-level-tag { font-weight: 750; color: #4b5668; }
.playnest-site .pn-kb-card h2 { font-size: 16px; line-height: 1.35; letter-spacing: -.3px; }
.playnest-site .pn-kb-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.playnest-site .pn-kb-card:hover h2 a { color: #3d5ee8; }
.playnest-site .pn-kb-card p { font-size: 13px; line-height: 1.7; color: #697485; }
.playnest-site .pn-kb-card-footer { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid #eef0f3; font-size: 12px; font-weight: 650; color: #8c96a5; }
.playnest-site .pn-kb-card-footer b { margin-left: auto; color: #3d5ee8; transition: transform .2s; }
.playnest-site .pn-kb-card:hover .pn-kb-card-footer b { transform: translateX(4px); }
.playnest-site .pn-kb-card .guide-favorite-form { position: relative; z-index: 2; }
.playnest-site .pn-kb-fav { width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid #e1e3e6; background: #fff; color: #b4bcc8; font-size: 17px; line-height: 1; transition: color .2s, border-color .2s, transform .2s; }
.playnest-site .pn-kb-fav:hover { color: #e98770; border-color: #f5ddd2; transform: scale(1.08); }
.playnest-site .pn-kb-fav.active { color: #e98770; background: #fcf1ec; border-color: #f5ddd2; }

/* Empty + help */
.playnest-site .pn-kb-empty { padding: 44px 20px; text-align: center; border-radius: 18px; background: #fff; border: 1px dashed #d0d6df; }
.playnest-site .pn-kb-empty > span { font-size: 40px; color: #e98770; }
.playnest-site .pn-kb-empty h3 { margin: 10px 0 8px; font-size: 20px; color: #202e43; }
.playnest-site .pn-kb-empty p { margin: 0 auto 20px; max-width: 420px; font-size: 13px; line-height: 1.75; color: #7c8490; }
.playnest-site .pn-kb-help { display: flex; align-items: center; gap: 22px; padding: 28px 32px; border-radius: 20px; background: #f0e7df; }
.playnest-site .pn-kb-help > span { flex: 0 0 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #e98770; color: #fff; font-size: 24px; font-weight: 800; }
.playnest-site .pn-kb-help div { flex: 1; }
.playnest-site .pn-kb-help h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.5px; color: #202e43; }
.playnest-site .pn-kb-help p { margin: 0; font-size: 13px; line-height: 1.7; color: #7d6e69; }
.playnest-site .pn-kb-help .button { white-space: nowrap; }

@media (max-width: 900px) {
    .playnest-site .pn-kb-hero { grid-template-columns: 1fr; padding: 30px; }
    .playnest-site .pn-kb-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .playnest-site .pn-kb-hero-stats > div:first-child { grid-column: auto; }
    .playnest-site .pn-kb-starter-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .playnest-site .pn-kb-hero { padding: 24px 18px; border-radius: 18px; }
    .playnest-site .pn-kb-search kbd { display: none; }
    .playnest-site .pn-kb-search input { font-size: 14px; }
    .playnest-site .pn-kb-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .playnest-site .pn-kb-hero-stats > div:first-child { grid-column: 1 / -1; }
    .playnest-site .pn-kb-toolbar { position: static; }
    .playnest-site .pn-kb-topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .playnest-site .pn-kb-topics button { white-space: nowrap; }
    .playnest-site .pn-kb-levels a.is-favorites { margin-left: 0; }
    .playnest-site .pn-kb-help { flex-direction: column; align-items: flex-start; padding: 24px; }
}
