/* Ghidul public Plai (/ghid - resources/views/ghid). Culorile si colturile drepte ale brandului Novic (lime #bed006 pe
   cerneala inchisa), ca pe /parinti; textul lung sta pe hartie deschisa, ca sa se citeasca usor. */
:root {
    --lime: #bed006; --lime-d: #a8bc05; --lime-ink: #5c6900; --lime-soft: #f3f8c9;
    --ink: #0b1220; --ink-2: #111827; --ink-3: #1e293b;
    --paper: #f6f7f1; --card: #fff; --text: #1f2937; --soft: #4b5563; --mute: #6b7280; --line: #e3e5da;
    --hl: #fff3a3; --hl-word: #bed006;
    --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --top: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: calc(var(--top) + 70px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lime-ink); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink-2); margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.15; }
h3 { font-size: 1.08rem; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { width: min(820px, 100%); }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 8px; }

/* bara de sus */
.top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: var(--top); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a { color: #cbd5e1; text-decoration: none; font-size: .93rem; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current] { color: var(--lime); }
@media (max-width: 560px) { .hide-s { display: none; } }

/* butoane: colturi drepte, lime cu text inchis */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; font: 600 1rem/1 var(--sans);
       color: var(--ink-2); background: var(--lime); border: 2px solid var(--lime); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--lime-d); border-color: var(--lime-d); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: transparent; border-color: var(--ink-2); color: var(--ink-2); }
.btn-ghost:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-s { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn.on { background: var(--ink-2); border-color: var(--ink-2); color: var(--lime); }

/* antetul paginii */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: .88rem; color: var(--mute); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink-2); text-decoration: underline; }
.hero > * { min-width: 0; }
.hero { display: grid; gap: 28px; align-items: center; padding: 26px 0 8px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr .85fr; gap: 48px; padding-top: 34px; } .hero-index, .hero-page { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime-ink); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.emoji { font-size: .85em; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--soft); margin-top: 16px; max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.note { margin-top: 12px; font-size: .9rem; color: var(--mute); }
.hero-img { margin: 0; aspect-ratio: 8 / 5; background: var(--ink-3); box-shadow: 0 30px 60px -30px rgb(11 18 32 / .5); outline: 1px solid var(--line); outline-offset: 8px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* blocurile */
.block { padding: 34px 0 6px; }
.block > h2, .h-row { margin-bottom: 16px; }
.block p + p { margin-top: 12px; }
.h-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.from { border: 0; background: none; color: var(--lime-ink); font: 600 .88rem/1 var(--sans); padding: 8px 0; cursor: pointer; }
.from:hover { text-decoration: underline; }
.intro { font-size: 1.08rem; max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.chips li { background: var(--lime-soft); color: var(--lime-ink); font-size: .86rem; font-weight: 600; padding: 5px 11px; }
.facts { display: grid; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.facts > div { background: var(--card); padding: 14px 18px; }
.facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 4px 0 0; }

/* alegerea varstei */
.agebar { position: sticky; top: var(--top); z-index: 30; margin-top: 34px; background: rgb(246 247 241 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.agebar .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; padding-block: 8px; }
.agebar-label { font-size: .86rem; font-weight: 600; color: var(--soft); white-space: nowrap; }
.seg { display: flex; flex: 1; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 600 .95rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.seg button:hover { border-color: var(--ink-2); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--ink-2); border-color: var(--ink-2); color: var(--lime); }
@media (max-width: 480px) { .agebar-label { display: none; } .seg button { padding: 0 10px; font-size: .9rem; } }

.summary > p { font-size: 1.12rem; max-width: 780px; }
.callout { margin-top: 18px; padding: 16px 20px; background: var(--card); border-left: 4px solid var(--lime); }
.callout h3 { font-size: .98rem; margin-bottom: 4px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; background: var(--card); padding: 16px 18px; border: 1px solid var(--line); }
.steps .n { width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink-2); color: var(--lime); font-weight: 700; font-size: 1.05rem; }
.steps h3 { margin-bottom: 3px; }

.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { position: relative; padding: 14px 18px 14px 46px; background: var(--card); border: 1px solid var(--line); }
.tips li::before { content: '💡'; position: absolute; left: 15px; top: 13px; }

.benefits { display: grid; gap: 14px; }
@media (min-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefit { background: var(--card); padding: 20px 22px; border: 1px solid var(--line); border-top: 4px solid var(--lime); }
.benefit .area { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-ink); margin-bottom: 6px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 8px; }

.two { display: grid; gap: 14px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.two > div { background: var(--card); padding: 20px 22px; border: 1px solid var(--line); }
.two h3 { margin-bottom: 10px; }
.offline { background: var(--ink-2) !important; color: #e5e7eb; border-color: var(--ink-2) !important; }
.offline h3 { color: var(--lime); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--lime-ink); border-bottom: 2px solid var(--lime-ink); transform: rotate(-45deg); }
.time { margin-top: 16px; padding: 12px 16px; background: var(--lime-soft); }

.facts-cards, .faq { display: grid; gap: 12px; }
@media (min-width: 760px) { .facts-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.facts-cards > div, .faq > div { background: var(--card); padding: 18px 20px; border: 1px solid var(--line); }
.facts-cards h3, .faq h3 { margin-bottom: 6px; }

.play-cta { margin-top: 30px; padding: 30px 26px; background: var(--ink-2); color: #e5e7eb; }
.play-cta h2 { color: #fff; margin-bottom: 8px; }
.play-cta p { margin-bottom: 18px; max-width: 620px; }
.updated { padding: 26px 0 40px; font-size: .86rem; color: var(--mute); }

/* cardurile activitatilor */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgb(11 18 32 / .45); }
.card[hidden] { display: none; }
.card-img { aspect-ratio: 8 / 5; background: var(--ink-3); overflow: hidden; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-emoji { font-size: 3rem; }
.card-body { display: grid; gap: 4px; padding: 14px 16px 16px; font-size: .93rem; color: var(--soft); }
.card-body strong { color: var(--ink-2); font-size: 1.02rem; }
.card-body em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--lime-ink); }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; }
.cat-nav a { padding: 8px 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.cat-nav a:hover { border-color: var(--ink-2); }
.cat-nav small { color: var(--mute); font-weight: 500; margin-left: 4px; }
.cat-text { color: var(--soft); margin: -6px 0 18px; max-width: 720px; }
.cat[hidden] { display: none; }
.pages { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.page-link { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.page-link > span { grid-row: span 2; font-size: 1.5rem; }
.page-link small { color: var(--mute); font-size: .85rem; line-height: 1.35; }
.page-link:hover { border-color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; font-weight: 600; }

.foot { margin-top: 50px; background: var(--ink); color: #cbd5e1; padding: 36px 0 120px; font-size: .93rem; }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }
.foot p { margin-top: 10px; max-width: 420px; }
.foot a { color: #e5e7eb; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--lime); }

/* ---------- citirea cu voce: propozitia de acum, cuvantul de acum, bara de jos ---------- */
.rd-s { transition: background-color .2s; border-radius: 2px; }
.rd-s.rd-on { background: var(--hl); box-shadow: 0 0 0 3px var(--hl); }
.offline .rd-s.rd-on, .play-cta .rd-s.rd-on { color: var(--ink-2); }
::highlight(rd-word) { background-color: var(--hl-word); color: var(--ink-2); }
.reader { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: #fff; box-shadow: 0 -10px 30px -10px rgb(0 0 0 / .4);
          padding-bottom: env(safe-area-inset-bottom); transform: translateY(0); transition: transform .3s var(--ease); }
.reader[hidden] { display: block; transform: translateY(110%); visibility: hidden; }
.reader-in { width: min(1080px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 10px 16px; }
.r-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; }
.r-btn:hover { color: var(--lime); }
.r-btn svg { width: 22px; height: 22px; }
.r-main { width: 50px; height: 50px; background: var(--lime); color: var(--ink-2); }
.r-main:hover { background: var(--lime-d); color: var(--ink-2); }
.r-main .i-play { display: none; }
.reader.paused .r-main .i-play { display: block; }
.reader.paused .r-main .i-pause { display: none; }
.r-info { flex: 1; min-width: 0; display: grid; padding: 0 8px; line-height: 1.25; }
.r-state { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.r-where { font-size: .9rem; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-speed { min-width: 46px; height: 36px; border: 1px solid rgb(255 255 255 / .3); background: transparent; color: #fff; font: 600 .9rem/1 var(--sans); cursor: pointer; }
.r-speed:hover { border-color: var(--lime); color: var(--lime); }
.r-bar { height: 3px; background: rgb(255 255 255 / .12); }
.r-bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .3s; }
@media (max-width: 420px) { .r-btn[data-r="prev"], .r-btn[data-r="next"] { width: 36px; } .reader-in { gap: 2px; padding-inline: 10px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .agebar, .reader, .cta, .from, .foot, .play-cta { display: none !important; } .age-panel[hidden] { display: block !important; } body { background: #fff; } }
