/* Guide articles (website/guide/*.html) and the /guide overview.
   Loaded after site.css. */

/* Two surfaces: the header sits on stone like the rest of grundex.dk, the
   article reads on the lighter --surface-2 sheet below it, and the footer
   returns to stone. Dark forest stays reserved for Grundex's own content
   (the call-to-action box), as on the landing page. */
body{background:var(--surface-2);}
footer{background:var(--paper);}

/* ---------- header ---------- */
.g-hero{
  padding:136px 0 44px; border-bottom:1px solid var(--line);
  background:
    radial-gradient(ellipse 900px 460px at 50% -10%, rgba(30,107,74,0.08), transparent 60%),
    var(--paper);
}
/* Same box as .g-body (760px incl. 16px side padding), so the header lines up with the article. */
.g-hero-inner{max-width:760px; margin:0 auto; padding:0 16px;}
.g-crumbs{font-size:13px; color:var(--ink-soft); margin-bottom:22px;}
.g-crumbs a{text-decoration:underline; text-underline-offset:2px;}
.g-crumbs a:hover{color:var(--ink);}
.g-eyebrow{
  font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--bronze);
  font-weight:600; margin-bottom:16px;
}
.g-hero h1{
  font-family:'Source Serif 4', Georgia, serif; font-weight:600;
  font-size:clamp(32px, 5vw, 50px); line-height:1.1; letter-spacing:-0.02em;
}
.g-meta{margin-top:18px; font-size:14px; color:var(--ink-soft);}

/* ---------- article body ---------- */
.g-body{max-width:760px; margin:0 auto; padding:44px 16px 96px;}
/* Article typography stops at .gdemo: the embedded landing-page demos carry
   their own type scale (css/demos.css). */
.g-body h2:not(:where(.gdemo *)){
  font-family:'Source Serif 4', Georgia, serif; font-weight:600;
  font-size:26px; line-height:1.25; letter-spacing:-0.01em;
  margin:56px 0 16px; scroll-margin-top:96px;
}
.g-body h3:not(:where(.gdemo *)){font-size:16px; font-weight:600; margin:28px 0 8px;}
.g-body p:not(:where(.gdemo *)), .g-body li:not(:where(.gdemo *)){font-size:16.5px; line-height:1.75; color:var(--ink-soft);}
.g-body p:not(:where(.gdemo *)){margin-bottom:16px;}
.g-body ul:not(:where(.gdemo *)), .g-body ol:not(:where(.gdemo *)){margin:0 0 18px 22px;}
.g-body li:not(:where(.gdemo *)){margin-bottom:8px;}
.g-body strong:not(:where(.gdemo *)){color:var(--ink); font-weight:600;}
.g-body a:not(:where(.gdemo *)){color:var(--forest); text-decoration:underline; text-underline-offset:2px;}
.g-body code:not(:where(.gdemo *)), .g-body .mono:not(:where(.gdemo *)){
  font-family:'JetBrains Mono', monospace; font-size:.88em;
  background:var(--paper-dim); padding:1px 6px; border-radius:5px; color:var(--ink);
}

/* The direct answer first: what AI answers and featured snippets quote. */
.g-answer{
  background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--forest);
  border-radius:12px; padding:22px 24px; margin:8px 0 8px; box-shadow:0 1px 3px rgba(26,26,24,0.05);
}
.g-answer p{color:var(--ink); font-size:17px; margin:0;}
.g-answer p + p{margin-top:12px;}

.g-toc{margin:0 0 28px; padding:18px 22px; border:1px solid var(--line); border-radius:12px;}
.g-toc b{display:block; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:8px;}
.g-toc ol{margin:0 0 0 20px;}
.g-toc li{font-size:15px; margin-bottom:4px;}

.g-note{
  background:var(--bronze-light); border:1px solid rgba(140,90,43,0.22);
  border-radius:12px; padding:16px 20px; margin:20px 0;
}
.g-note p{margin:0; font-size:15.5px;}

/* ---------- annotated tingbog row (fictional example) ---------- */
.g-example{
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:20px 22px; margin:20px 0 8px; box-shadow:0 1px 2px rgba(26,26,24,0.04);
}
.g-example-label{font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:12px;}
/* Same label/value layout as tinglysning.dk's own servitut list. */
.g-fields{display:grid; grid-template-columns:auto 1fr; gap:8px 20px; margin:0; font-size:15px;}
.g-fields dt{display:flex; align-items:center; gap:10px; color:var(--ink-soft);}
.g-fields dd{margin:0; color:var(--ink); align-self:center;}
.g-fields dd.mono{background:none; padding:0; font-size:14px;}
@media (max-width:480px){
  .g-fields{grid-template-columns:1fr; gap:2px;}
  .g-fields dd{margin:0 0 10px 30px;}
}
.g-pin{
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; border-radius:50%; background:var(--forest); color:#fff;
  font-size:11.5px; font-weight:700; flex-shrink:0; font-family:'Schibsted Grotesk', sans-serif;
}
.g-legend{list-style:none; margin:14px 0 18px !important;}
.g-legend li{display:flex; gap:12px; align-items:flex-start;}
.g-legend .g-pin{margin-top:4px;}

/* A scanned stamp, as it looks on the page. */
.g-stamp{
  display:inline-block; font-family:'JetBrains Mono', monospace; font-size:14px;
  border:2px solid rgba(30,107,74,0.55); color:var(--forest); border-radius:6px;
  padding:8px 14px; transform:rotate(-1.5deg); margin:8px 0 18px; letter-spacing:.04em;
}

/* ---------- steps ---------- */
.g-steps{list-style:none; counter-reset:step; margin:20px 0 !important;}
.g-steps > li{
  counter-increment:step; position:relative; padding:0 0 18px 48px; margin:0;
}
.g-steps > li::before{
  content:counter(step); position:absolute; left:0; top:0;
  width:30px; height:30px; border-radius:50%; background:var(--forest); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700;
}
.g-steps > li strong{display:block; margin-bottom:2px;}

/* ---------- table ---------- */
.g-table-wrap{overflow-x:auto; margin:20px 0;}
.g-table{width:100%; border-collapse:collapse; font-size:15px; min-width:480px;}
.g-table th, .g-table td{text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:top;}
.g-table th{font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); font-weight:600;}
.g-table td{color:var(--ink-soft); line-height:1.6;}
.g-table td:first-child{color:var(--ink); font-weight:600; white-space:nowrap;}

/* ---------- FAQ ---------- */
.g-faq details{border-bottom:1px solid var(--line); padding:16px 0;}
.g-faq details:first-of-type{border-top:1px solid var(--line);}
.g-faq summary{
  cursor:pointer; list-style:none; font-weight:600; font-size:16.5px; color:var(--ink);
  display:flex; justify-content:space-between; gap:16px;
}
.g-faq summary::-webkit-details-marker{display:none;}
.g-faq summary::after{content:'+'; color:var(--forest); font-weight:400; font-size:22px; line-height:1;}
.g-faq details[open] summary::after{content:'−';}
.g-faq details p{margin:10px 0 0;}

/* ---------- call to action ---------- */
.g-cta{
  margin:56px 0 0; padding:32px 28px; border-radius:var(--radius);
  background:var(--deep-hero); color:#fff;
}
.g-cta h2{color:#fff; margin:0 0 10px !important; font-size:24px;}
.g-cta p{color:rgba(255,255,255,0.78); margin-bottom:20px;}
.g-cta-actions{display:flex; gap:14px; flex-wrap:wrap; align-items:center;}
.g-cta a.g-btn{
  background:#fff; color:var(--forest-deep); text-decoration:none; font-weight:600;
  font-size:14.5px; padding:12px 22px; border-radius:100px;
}
.g-cta a.g-link{color:#fff; font-size:14.5px;}

.g-disclaimer{margin-top:40px; font-size:13.5px !important; color:var(--ink-soft);}

.g-related{margin-top:40px; padding-top:28px; border-top:1px solid var(--line);}
.g-related b{display:block; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:10px;}

/* ---------- /guide overview ---------- */
.g-cards{display:grid; gap:16px; margin-top:8px;}
.g-card{
  display:block; background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:22px 24px; text-decoration:none !important; transition:border-color .2s, transform .2s;
}
.g-card:hover{border-color:rgba(30,107,74,0.4); transform:translateY(-1px);}
.g-card h2{margin:0 0 6px !important; font-size:21px; color:var(--ink);}
.g-card p{margin:0; font-size:15.5px;}
