/* fermadraugiem.lv — the inner pages (lane W6): hero, prose, tiles, steps, FAQ, news, forms, legal text.
   Loaded after site.css on every page except the home page. Tokens come from site.css. */
.fd-page{display:flex;flex-direction:column;min-height:100vh;min-height:100svh;background:#f3f8e6;font-size:17px;line-height:1.6}
.fd-page main{flex:1 0 auto}
.fd-page main a:not([class]){color:var(--fd-link);text-underline-offset:2px}
.fd-page main a:not([class]):hover{color:#6e3200}
.fd-page main :focus-visible{outline:3px solid var(--fd-orange-dark);outline-offset:2px;border-radius:4px}

/* ── hero: sky, clouds, a grass hill ───────────────────────────────────── */
.pg-hero{position:relative;overflow:hidden;padding:18px 0 54px;
  background:radial-gradient(60% 46% at 16% 22%,rgba(255,255,255,.75),rgba(255,255,255,0) 70%),
             radial-gradient(40% 34% at 84% 14%,rgba(255,255,255,.6),rgba(255,255,255,0) 70%),
             linear-gradient(#86c9f2,#b9e3f8 62%,#d8f0fb)}
.pg-hero::after{content:"";position:absolute;left:-10%;right:-10%;bottom:-1px;height:64px;pointer-events:none;
  background:radial-gradient(120% 100% at 50% 100%,#7cc24b 0 58%,#69b23a 59% 70%,transparent 71%),linear-gradient(transparent 70%,#f3f8e6 70%)}
.pg-hero__in{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:0 max(18px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left));
  display:grid;grid-template-columns:1fr;gap:6px 28px;align-items:end}
.pg-hero__text{max-width:720px}
.pg-kicker{display:inline-block;margin:10px 0 8px;padding:.2em .85em;border-radius:999px;font-size:14px;font-weight:800;letter-spacing:.02em;
  color:#5b3a12;background:rgba(255,248,231,.92);border:2px solid rgba(201,138,58,.7)}
.pg-hero h1{margin:0 0 .25em;font-size:clamp(30px,5.2vw,50px);line-height:1.08;letter-spacing:-.005em;color:#3a2208;
  text-shadow:0 2px 0 rgba(255,255,255,.55)}
.pg-lead{margin:0 0 6px;font-size:clamp(17px,2vw,20px);line-height:1.5;color:#3d2a12;max-width:62ch}
.pg-hero__art{display:flex;justify-content:center;align-items:flex-end;gap:6px;margin-bottom:-26px;min-height:0}
.pg-hero__art img{display:block;width:auto;max-height:170px;flex:0 1 auto;min-width:0;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 8px 8px rgba(40,60,10,.28))}
.pg-hero__art--row img{max-height:120px}
@media (min-width:860px){
  .pg-hero{padding:22px 0 64px}
  .pg-hero__in{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
  .pg-hero__in:has(.pg-hero__art--row){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .pg-hero__art{justify-content:flex-end;margin-bottom:-34px}
  .pg-hero__art img{max-height:240px}
  .pg-hero__art--row img{max-height:150px}
}

/* breadcrumbs */
.pg-crumbs{grid-column:1/-1;font-size:14px}
.pg-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.2em;margin:0;padding:0}
.pg-crumbs li+li::before{content:"›";margin:0 .4em 0 .2em;color:#4e6a7a}
.pg-crumbs a{color:#173c52;font-weight:700;text-decoration:none;padding:.35em 0;display:inline-block}
.pg-crumbs a:hover{text-decoration:underline}
.pg-crumbs [aria-current]{color:#173c52}

/* ── sections ─────────────────────────────────────────────────────────── */
.pg-wrap{max-width:1100px;margin:0 auto;padding:22px max(18px,env(safe-area-inset-right)) 8px max(18px,env(safe-area-inset-left))}
.pg-wrap--narrow{max-width:860px}
.pg-section{margin:0 0 34px}
.pg-section>h2,.pg-h2{margin:0 0 .5em;font-size:clamp(23px,3vw,30px);line-height:1.2;color:#7a3a00}
.pg-section>p{max-width:70ch}
.pg-intro{font-size:18px;max-width:68ch}
.pg-paper{padding:clamp(18px,4vw,40px);background:linear-gradient(#fffdf8,#fff6e2);border:3px solid var(--fd-wood);border-radius:24px;
  box-shadow:0 0 0 5px rgba(255,248,231,.7),0 14px 34px rgba(40,25,0,.12)}

/* prose (legal pages, long text) */
.pg-prose{max-width:72ch}
.pg-prose h2{margin:1.6em 0 .45em;font-size:clamp(21px,2.6vw,25px);line-height:1.25;color:#7a3a00;scroll-margin-top:16px}
.pg-prose h2:first-child{margin-top:0}
.pg-prose h3{margin:1.2em 0 .35em;font-size:19px;line-height:1.3;color:#5b3a12}
.pg-prose p,.pg-prose ul,.pg-prose ol{margin:0 0 .85em}
.pg-prose ul,.pg-prose ol{padding-left:1.35em}
.pg-prose li{margin:.25em 0}
.pg-prose li::marker{color:var(--fd-orange-dark)}
.pg-meta{font-size:15px;color:var(--fd-ink-soft);margin:0 0 1.2em}
.pg-toc{margin:0 0 1.6em;padding:14px 18px;border-radius:16px;background:#fff;border:1px solid rgba(201,138,58,.4)}
.pg-toc h2{margin:0 0 .4em!important;font-size:16px!important;color:#5b3a12!important}
.pg-toc ol{margin:0;padding-left:1.3em;columns:2 230px;column-gap:28px}
.pg-toc li{margin:.15em 0;break-inside:avoid}
.pg-toc a{display:inline-block;padding:.2em 0}
.pg-tablewrap{overflow-x:auto;margin:0 0 1em;border-radius:14px;border:1px solid rgba(201,138,58,.45);background:#fff}
.pg-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45;min-width:560px}
.pg-table th,.pg-table td{padding:.6em .8em;text-align:left;vertical-align:top;border-bottom:1px solid rgba(201,138,58,.25)}
.pg-table th{background:#fbefd6;color:#5b3a12;font-weight:800}
.pg-table tr:last-child td{border-bottom:0}
.pg-table code{font-size:14px;background:#f6ecd8;padding:.05em .35em;border-radius:6px;word-break:break-all}
.pg-dl{display:grid;grid-template-columns:fit-content(45%) minmax(0,1fr);gap:.35em 1.2em;margin:0 0 1em}
.pg-dl dt{font-weight:800;color:#5b3a12}
.pg-dl dd{margin:0;overflow-wrap:anywhere}
.pg-split .pg-dl{grid-template-columns:1fr}.pg-split .pg-dl dd{margin-bottom:.5em}
@media (max-width:560px){.pg-dl{grid-template-columns:1fr}.pg-dl dd{margin-bottom:.5em}}

/* notes */
.pg-note{margin:0 0 1em;padding:14px 16px 14px 18px;border-radius:16px;background:#fff8e3;border:2px solid rgba(201,138,58,.55);border-left-width:7px}
.pg-note--green{background:#eef8e2;border-color:#86c35a}
.pg-note--sky{background:#eaf6fd;border-color:#7fc0e6}
.pg-note p:last-child,.pg-note ul:last-child{margin-bottom:0}
.pg-note strong{color:#5b3a12}

/* tiles */
.pg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px}
.pg-grid--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))}
.pg-tile{position:relative;display:flex;flex-direction:column;padding:18px 18px 16px;border-radius:22px;background:linear-gradient(#fffdf8,#fff3d9);
  border:3px solid var(--fd-wood);box-shadow:0 0 0 4px rgba(255,248,231,.7),0 10px 24px rgba(40,25,0,.1)}
.pg-tile h3{margin:0 0 .35em;font-size:20px;line-height:1.25;color:#7a3a00}
.pg-tile p{margin:0 0 .6em}
.pg-tile p:last-child{margin-bottom:0}
.pg-tile__art{display:flex;justify-content:center;align-items:flex-end;height:118px;margin:-4px 0 8px}
.pg-tile__art img{max-height:118px;width:auto;filter:drop-shadow(0 6px 6px rgba(40,25,0,.2))}
.pg-tile--link{text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}
.pg-tile--link:hover{transform:translateY(-2px);box-shadow:0 0 0 4px rgba(255,248,231,.7),0 16px 30px rgba(40,25,0,.16)}
.pg-tile__more{margin-top:auto;font-weight:800;color:var(--fd-link)}
.pg-tag{display:inline-block;margin:0 0 .5em;padding:.1em .65em;border-radius:999px;font-size:13px;font-weight:800;color:#fff;background:var(--fd-leaf)}
.pg-tag--soon{background:#8a5a2b}
.pg-tag--label{background:var(--fd-cherry)}

/* the pillars list with orange coins */
.pg-points{list-style:none;margin:0 0 1em;padding:0;display:grid;gap:.6em}
.pg-points li{position:relative;padding:.6em .9em .62em 2.6em;border-radius:16px;background:rgba(255,255,255,.8);border:1px solid rgba(201,138,58,.38)}
.pg-points li::before{content:"";position:absolute;left:.95em;top:1em;width:.75em;height:.75em;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#ffd36b,#e87a0c 70%);box-shadow:0 0 0 2px rgba(232,122,12,.2)}
.pg-points b{color:#7a3a00}

/* numbered steps */
.pg-steps{list-style:none;counter-reset:step;margin:0;padding:0;display:grid;gap:16px}
.pg-steps>li{counter-increment:step;position:relative;padding:16px 18px 16px 74px;border-radius:22px;background:linear-gradient(#fffdf8,#fff3d9);
  border:3px solid var(--fd-wood);box-shadow:0 0 0 4px rgba(255,248,231,.7),0 10px 24px rgba(40,25,0,.08)}
.pg-steps>li::before{content:counter(step);position:absolute;left:16px;top:16px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  font-weight:900;font-size:22px;color:#fff;background:linear-gradient(#ffb43d,#e07400);border:2px solid var(--fd-orange-dark);
  text-shadow:0 1px 0 #7a3600;box-shadow:0 3px 0 #8a4100}
.pg-steps h3{margin:.15em 0 .3em;font-size:20px;line-height:1.25;color:#7a3a00}
.pg-steps p{margin:0 0 .5em}
.pg-steps p:last-child{margin-bottom:0}
.pg-steps__art{float:right;margin:0 0 6px 12px;max-height:84px;width:auto}

/* chips (platforms, crops) */
.pg-chips{display:flex;flex-wrap:wrap;gap:.45em;margin:0 0 1em;padding:0;list-style:none}
.pg-chips li{padding:.3em .95em;border-radius:999px;font-weight:800;font-size:15px;color:#fff;background:var(--fd-leaf);box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}
.pg-chips--soft li{color:#5b3a12;background:#fff;border:1px solid rgba(201,138,58,.5);box-shadow:none;font-weight:700}
.pg-chips .is-soon{background:#8a5a2b}
.pg-chips .is-soon::after{content:" · drīzumā";font-weight:700}

/* call to action band */
.pg-cta{margin:8px 0 38px;padding:26px clamp(18px,4vw,36px);border-radius:26px;text-align:center;
  background:radial-gradient(80% 120% at 50% 0%,#fff7df,#ffe7b0);border:3px solid var(--fd-wood);box-shadow:0 0 0 5px rgba(255,248,231,.7),0 14px 30px rgba(40,25,0,.12)}
.pg-cta h2{margin:0 0 .3em;font-size:clamp(22px,3vw,28px);color:#7a3a00}
.pg-cta p{margin:0 auto 1em;max-width:58ch}
.pg-cta__row{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}

/* FAQ */
.pg-faq{display:grid;gap:12px}
.pg-faq h2{margin:1.2em 0 .1em;font-size:22px;color:#7a3a00}
.pg-faq h2:first-child{margin-top:0}
.pg-faq__item{border-radius:18px;background:linear-gradient(#fffdf8,#fff4dc);border:2px solid rgba(201,138,58,.7);box-shadow:0 6px 16px rgba(40,25,0,.06)}
.pg-faq__item>summary{list-style:none;cursor:pointer;position:relative;padding:14px 52px 14px 18px;font-weight:800;font-size:18px;line-height:1.35;color:#4a2c0a;min-height:52px}
.pg-faq__item>summary::-webkit-details-marker{display:none}
.pg-faq__item>summary::after{content:"+";position:absolute;right:14px;top:50%;width:30px;height:30px;margin-top:-15px;border-radius:50%;display:grid;place-items:center;
  font-size:22px;line-height:1;color:#fff;background:linear-gradient(#ffb43d,#e07400);border:2px solid var(--fd-orange-dark)}
.pg-faq__item[open]>summary::after{content:"−"}
.pg-faq__item>summary:hover{color:#7a3a00}
.pg-faq__a{padding:0 18px 14px}
.pg-faq__a p{margin:0 0 .65em}
.pg-faq__a p:last-child{margin-bottom:0}

/* news */
.pg-news{display:grid;gap:18px}
.pg-news__item{display:grid;grid-template-columns:1fr;gap:6px 22px;padding:20px;border-radius:22px;background:linear-gradient(#fffdf8,#fff3d9);
  border:3px solid var(--fd-wood);box-shadow:0 0 0 4px rgba(255,248,231,.7),0 10px 24px rgba(40,25,0,.08);scroll-margin-top:16px}
.pg-news__item h2{margin:0 0 .3em;font-size:clamp(20px,2.4vw,24px);line-height:1.25;color:#7a3a00}
.pg-news__item time{display:inline-block;margin:0 0 .35em;font-size:14px;font-weight:800;color:#2e6b16}
.pg-news__item p{margin:0 0 .6em}
.pg-news__item p:last-child{margin-bottom:0}
.pg-news__art{display:flex;align-items:center;justify-content:center}
.pg-news__art img{max-height:120px;width:auto;filter:drop-shadow(0 6px 6px rgba(40,25,0,.2))}
@media (min-width:760px){.pg-news__item{grid-template-columns:150px 1fr;align-items:start}}

/* radio stations */
.pg-stations{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin:0 0 1em;padding:0;list-style:none}
.pg-station{position:relative;padding:16px 16px 14px;border-radius:20px;color:#fff3da;
  background:linear-gradient(#7a4a1f,#5a3412);border:3px solid #3d2108;box-shadow:inset 0 2px 0 rgba(255,255,255,.12),0 10px 22px rgba(40,25,0,.18)}
.pg-station__dial{display:flex;align-items:baseline;gap:.4em;margin:0 0 .4em;padding:.35em .7em;border-radius:12px;background:#f6e3a8;color:#3a2208;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.25);font-weight:900;font-variant-numeric:tabular-nums}
.pg-station__dial b{font-size:26px;line-height:1}
.pg-station__dial span{font-size:14px}
.pg-station h3{margin:.1em 0 .15em;font-size:20px;color:#ffd98a}
.pg-station p{margin:0;font-size:15.5px;line-height:1.5}
.pg-station__slogan{font-style:italic;color:#ffe9bf;margin-bottom:.4em!important}

/* the radio drawing */
.pg-radio{display:block;width:min(260px,70vw);height:auto;margin:0 auto}
.pg-tile__art svg{max-height:118px;width:auto}
.pg-radio-host{margin:8px 0 18px;min-height:120px}

/* landmarks row */
.pg-marks{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 18px;margin:6px 0 18px;padding:0;list-style:none}
.pg-marks li{display:flex;flex-direction:column;align-items:center;width:150px;text-align:center;font-weight:800;font-size:15px;color:#5b3a12}
.pg-marks img{height:96px;width:auto;margin-bottom:4px;filter:drop-shadow(0 6px 6px rgba(40,25,0,.18))}

/* the interactive map holder (W5's map.js mounts into [data-fd-map]) */
.pg-map{margin:0 0 18px;padding:10px;border-radius:24px;background:#fff;border:3px solid var(--fd-wood);box-shadow:0 0 0 5px rgba(255,248,231,.7),0 14px 30px rgba(40,25,0,.12)}
.pg-map [data-fd-map]{min-height:320px;border-radius:16px;overflow:hidden;background:linear-gradient(#cfeefc,#e7f6d6)}
.pg-map [data-fd-map]:empty{display:grid;place-items:center}
.pg-map [data-fd-map]:empty::before{content:"Karte ielādējas…";font-weight:800;color:#3b6a80}
.pg-map__note{margin:.6em .4em 0;font-size:14.5px;color:var(--fd-ink-soft)}

/* forms */
.pg-form{display:grid;gap:14px;max-width:640px}
.pg-form label{display:block;font-weight:800;color:#5b3a12;margin:0 0 .3em}
.pg-form .pg-hint{display:block;font-weight:400;font-size:14.5px;color:var(--fd-ink-soft);margin-top:.1em}
.pg-form input,.pg-form select,.pg-form textarea{width:100%;min-height:48px;padding:.6em .8em;border-radius:14px;font:inherit;font-size:17px;color:var(--fd-ink);
  background:#fff;border:2px solid rgba(201,138,58,.75);box-shadow:inset 0 2px 4px rgba(90,52,18,.08)}
.pg-form textarea{min-height:140px;resize:vertical}
.pg-form input:focus,.pg-form select:focus,.pg-form textarea:focus{outline:3px solid var(--fd-orange);outline-offset:1px;border-color:var(--fd-orange-dark)}
.pg-form__row{display:grid;gap:14px}
@media (min-width:640px){.pg-form__row{grid-template-columns:1fr 1fr}}
.pg-form__actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.pg-form__small{margin:0;font-size:14.5px;color:var(--fd-ink-soft)}
.pg-form__done{margin:0;padding:.7em 1em;border-radius:14px;background:#eef8e2;border:2px solid #86c35a;font-weight:700}

/* two columns: text + aside */
.pg-split{display:grid;gap:22px}
@media (min-width:900px){.pg-split{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start}}

/* 404 */
.pg-lost{text-align:center}
.pg-lost img{display:block;margin:0 auto 6px}
.pg-lost .pg-cta__row{margin-top:16px}

@media (prefers-reduced-motion:reduce){.pg-tile--link{transition:none}}
@media print{.fd-page{background:#fff}.pg-hero{background:none}.pg-hero::after,.pg-hero__art{display:none}.pg-paper,.pg-tile,.pg-steps>li{box-shadow:none}}
