/* Shared styles for tool, game and resources pages. */
html { scroll-padding-top: 84px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 6000; background: #C9A84C; color: #0C2D5A; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* hero with illustration */
.tool-hero .lp-hero-inner { max-width: 1100px; display: grid; grid-template-columns: 1fr 380px; gap: 3.5rem; align-items: center; }
.tool-hero .crumbs { font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(232,213,163,.85); margin-bottom: 1.1rem; }
.tool-hero .crumbs a { color: rgba(232,213,163,.85); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,.45); }
.tool-hero .crumbs a:hover { color: #C9A84C; }
.hero-illus { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid rgba(201,168,76,.35); box-shadow: 0 25px 60px rgba(0,0,0,.35); }
.hero-illus img { display: block; width: 100%; height: auto; }

.tw { max-width: 900px; margin: 0 auto; padding: 3rem 3rem 1rem; }
.tw-wide { max-width: 1100px; }
.tnote { font-size: .85rem; color: #4A5565; line-height: 1.7; background: #FBF6E9; border: 1px solid rgba(201,168,76,.35); border-radius: 6px; padding: .9rem 1.1rem; margin-bottom: 1.75rem; }
.tnote strong { color: #0E1C2E; }

/* calculator card */
.tcard { background: #fff; border: 1px solid rgba(27,58,92,.14); border-radius: 10px; padding: 2rem; box-shadow: 0 10px 30px rgba(12,45,90,.06); }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.tfield label { display: block; font-size: .85rem; font-weight: 500; color: #0E1C2E; margin-bottom: .4rem; }
.tfield input { width: 100%; font: inherit; font-size: .95rem; padding: .7rem .8rem; border: 1px solid rgba(27,58,92,.28); border-radius: 6px; background: #FDFCF9; color: #0E1C2E; }
.tfield input:focus { outline: 2px solid #C9A84C; outline-offset: 1px; border-color: #C9A84C; }
.tfield small { display: block; font-size: .76rem; color: #56657A; margin-top: .35rem; line-height: 1.5; }
.topt { font-weight: 400; color: #56657A; }

/* timeline result */
.tres { margin-top: 1.75rem; border-top: 1px solid rgba(27,58,92,.1); padding-top: 1.5rem; }
.tres-empty { font-size: .9rem; color: #56657A; }
.tl { list-style: none; position: relative; margin: 0; padding: 0 0 0 2rem; }
.tl::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#C9A84C, rgba(201,168,76,.25)); }
.tl li { position: relative; padding: 0 0 1.4rem; }
.tl li::before { content: ''; position: absolute; left: -2rem; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #C9A84C; }
.tl li.past::before { background: #C9A84C; }
.tl li.warn::before { border-color: #B4462F; background: #F7E1DB; }
.tl .k { font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #7A5E14; }
.tl .d { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; color: #1B3A5C; line-height: 1.2; margin: .1rem 0; }
.tl .r { font-size: .8rem; color: #56657A; }
.tl .r.late { color: #B4462F; font-weight: 500; }
.tl p { font-size: .88rem; color: #4A5565; line-height: 1.65; margin-top: .3rem; }
.tl li.warn .d { color: #B4462F; }
.tactions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .5rem; }
.tbtn { background: transparent; border: 1px solid #1B3A5C; color: #1B3A5C; border-radius: 4px; padding: .65rem 1.1rem; font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center; }
.tbtn:hover { background: #1B3A5C; color: #E8D5A3; }

/* two sides */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2.25rem 0; }
.side { background: #fff; border: 1px solid rgba(27,58,92,.14); border-top: 3px solid #C9A84C; border-radius: 8px; padding: 1.5rem 1.6rem; scroll-margin-top: 90px; }
.side .k { font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #7A5E14; }
.side h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: #1B3A5C; margin: .3rem 0 .6rem; line-height: 1.2; }
.side ul { margin: 0; padding-left: 1.1rem; }
.side li { font-size: .88rem; color: #4A5565; line-height: 1.7; margin-bottom: .35rem; }

/* test yourself, method, faq */
.tplay { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.25rem; align-items: center; background: #0C2D5A; border-radius: 8px; padding: 1.1rem 1.4rem; margin: 2rem 0; color: #F5F0E8; text-decoration: none; }
.tplay img { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; }
.tplay .k { font-family: 'JetBrains Mono', monospace; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: #C9A84C; }
.tplay strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; }
.tplay span.s { font-size: .82rem; color: rgba(232,213,163,.85); }
.tplay .go { font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #C9A84C; }
.tplay:hover strong { color: #C9A84C; }
.tmethod { font-size: .82rem; color: #4A5565; line-height: 1.7; border-left: 3px solid #C9A84C; padding: .2rem 0 .2rem 1rem; margin: 2rem 0; }
.tfaq h2, .trel h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 400; color: #1B3A5C; margin: 2.5rem 0 1rem; }
.tfaq details { border-bottom: 1px solid rgba(27,58,92,.12); }
.tfaq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 500; color: #0E1C2E; position: relative; font-size: .97rem; }
.tfaq summary::-webkit-details-marker { display: none; }
.tfaq summary::after { content: '+'; position: absolute; right: .25rem; top: .8rem; font-size: 1.3rem; color: #7A5E14; }
.tfaq details[open] summary::after { content: '–'; }
.tfaq details p { font-size: .9rem; color: #4A5565; line-height: 1.75; padding: 0 0 1.1rem; margin: 0; }

/* related cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.rcard { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(27,58,92,.12); border-radius: 8px; overflow: hidden; text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.rcard:hover { transform: translateY(-4px); border-color: #C9A84C; box-shadow: 0 16px 34px rgba(12,45,90,.12); }
.rcard img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.rcard .b { padding: 1rem 1.1rem 1.2rem; }
.rcard .k { font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #7A5E14; }
.rcard strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: #0E1C2E; line-height: 1.25; margin: .25rem 0 .35rem; }
.rcard span.s { font-size: .82rem; color: #4A5565; line-height: 1.6; }

/* spot-the-mistakes game */
.gbar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-bottom: 1rem; font-family: 'JetBrains Mono', monospace; font-size: .75rem; letter-spacing: .06em; color: #1B3A5C; }
.gbar b { color: #7A5E14; }
.gdoc { background: #FFFDF7; border: 1px solid rgba(27,58,92,.18); border-radius: 4px; padding: 2.5rem 2.75rem; box-shadow: 0 18px 40px rgba(12,45,90,.08); position: relative; font-family: 'Cormorant Garamond', serif; font-size: 1.13rem; line-height: 1.85; color: #1d2733; }
.gdoc .stamp { position: absolute; top: 1.2rem; right: 1.4rem; font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .15em; color: #B4462F; border: 1px solid #B4462F; padding: .2rem .5rem; transform: rotate(4deg); }
.gdoc h2 { text-align: center; font-size: 1.6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; color: #0E1C2E; }
.gdoc p { margin: 0 0 .9rem; }
.spot { padding: 0 .1rem; border-bottom: 2px dotted #7A5E14; cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.spot:focus-visible { outline: 2px solid #C9A84C; outline-offset: 2px; }
.spot:hover { background: rgba(201,168,76,.15); }
.spot.hit { background: rgba(180,70,47,.12); border-bottom: 2px solid #B4462F; }
.spot.ok { background: rgba(70,140,90,.12); border-bottom: 2px solid #468C5A; }
.gexp { display: none; font-family: 'DM Sans', sans-serif; font-size: .86rem; line-height: 1.65; margin: .35rem 0 .9rem; padding: .7rem .9rem; border-radius: 6px; }
.gexp.show { display: block; }
.gexp.bad { background: #F7E1DB; color: #5a2216; }
.gexp.good { background: #E1F0E5; color: #1f4a2b; }
.gdone { display: none; margin-top: 1.25rem; padding: 1.1rem 1.3rem; border-radius: 8px; background: #0C2D5A; color: #F5F0E8; font-size: .92rem; }
.gdone.show { display: block; }

/* resources hub */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.chip { font: inherit; font-size: .8rem; padding: .5rem 1rem; border-radius: 100px; border: 1px solid rgba(27,58,92,.3); background: #fff; color: #1B3A5C; cursor: pointer; }
.chip[aria-pressed="true"] { background: #1B3A5C; color: #E8D5A3; border-color: #1B3A5C; }
.rsec h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; font-weight: 400; color: #1B3A5C; margin: 2.75rem 0 .35rem; }
.rsec > p { font-size: .92rem; color: #4A5565; margin-bottom: 1.25rem; }
.situ { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.situ a { display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid rgba(27,58,92,.14); border-radius: 8px; padding: 1.1rem 1.2rem; text-decoration: none; color: #0E1C2E; transition: transform .2s, border-color .2s; }
.situ a:hover { transform: translateY(-3px); border-color: #C9A84C; }
.situ svg { width: 26px; height: 26px; color: #7A5E14; }
.situ strong { font-weight: 500; font-size: .95rem; line-height: 1.4; }
.situ span { font-size: .78rem; color: #7A5E14; font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .tool-hero .lp-hero-inner { grid-template-columns: 1fr; }
  .hero-illus { max-width: 420px; }
}
@media (max-width: 640px) {
  .tw { padding: 2rem 1.25rem 1rem; }
  .tgrid, .sides { grid-template-columns: 1fr; }
  .tcard { padding: 1.4rem; }
  .tplay { grid-template-columns: 1fr; }
  .tplay img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .gdoc { padding: 2rem 1.25rem; font-size: 1.05rem; }
}
@media print {
  #navbar, .lp-hero, .related, .lp-footer, .entry-disclaimer, .skip-link, .tactions, .sides, .tplay, .tfaq, .trel, .tnote { display: none !important; }
  .tcard { box-shadow: none; border-color: #999; }
}
