/* greensheep.ie page layer. Sits on gs.css (tokens, type, marker, buttons, cards) with the .brand-greensheep accent.
   No inline styles or scripts anywhere on the site, so a strict style-src 'self' / script-src 'self' policy holds.
   The one moving thing is the map line in the home hero; it is CSS only and still without script or with reduced motion. */

/* 1. Page frame ------------------------------------------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 8px; }
main a:not(.btn):hover { text-decoration-thickness: 2px; }

/* 2. Header: three links that stay visible at every width (no menu button) -------------------------------------------- */
.top { flex-wrap: wrap; row-gap: 0; }
.top .logo, .gfoot .logo { min-height: 44px; }
.gnav { display: flex; margin-left: auto; gap: clamp(14px, 2.4vw, 30px); font-weight: 500; font-size: 15px; }
.gnav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.gnav a:hover, .gnav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (max-width: 420px) { .top { column-gap: 8px; padding-block: 6px; } .top .logo { font-size: 17px; gap: 7px; } .gnav { gap: 10px; font-size: 14px; } }
@media (max-width: 374px) { .top .logo { font-size: 15.5px; gap: 6px; } .gnav { gap: 8px; font-size: 13.5px; } }

/* 3. Home hero and the map ------------------------------------------------------------------------------------------- */
.hero { padding-block: clamp(36px, 6vw, 96px) clamp(36px, 5vw, 72px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: var(--s-5); justify-items: start; }
.map { justify-self: center; width: min(100%, 360px); }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map-line { fill: none; stroke: var(--accent-deep); stroke-width: 3; stroke-linejoin: round; }
.map-pin-ring { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.map-pin-dot { fill: var(--ink); }
.map-label { font: 600 15px/1 var(--ui); fill: var(--ink); }
.gs-motion .map-line { stroke-dasharray: 1870; stroke-dashoffset: 1870; animation: map-draw 2.6s var(--ease-draw) .25s forwards; }
.gs-motion .map-pin { opacity: 0; animation: map-pin .5s var(--ease-out) 2.75s forwards; }
@keyframes map-draw { to { stroke-dashoffset: 0; } }
@keyframes map-pin { to { opacity: 1; } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .map { justify-self: start; width: min(62vw, 250px); }
}

/* 4. Company card: set like a registration certificate ----------------------------------------------------------------- */
.cc-band { padding-bottom: var(--band); }
.cc { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-3); box-shadow: var(--sh-hard); overflow: hidden; }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px clamp(16px, 2.4vw, 28px); background: var(--accent-soft); border-bottom: 2px solid var(--ink); font-size: var(--fs-small); font-weight: 600; }
.cc-top .logo { font-size: 17px; }
.cc-body { padding: clamp(18px, 2.6vw, 32px) clamp(16px, 2.4vw, 28px) clamp(8px, 1.4vw, 16px); display: grid; gap: var(--s-5); }
.cc-name { font: 700 var(--fs-2)/1.15 var(--ui); letter-spacing: -.018em; }
.cc-form { color: var(--ink-2); margin-top: 6px; }
.cc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-5); border-top: 1px solid var(--line); }
.cc-facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; align-content: start; }
.cc-facts > div:nth-last-child(-n+3) { border-bottom: 0; }
.cc-facts dt { font-size: var(--fs-micro); font-weight: 500; color: var(--ink-3); }
.cc-facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .cc-facts { grid-template-columns: 1fr; }
  .cc-facts > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cc-facts > div:last-child { border-bottom: 0; }
}

/* 5. Products --------------------------------------------------------------------------------------------------------- */
.prods { display: grid; gap: var(--s-5); }
.prod { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-4); padding: clamp(20px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.prod-copy { display: grid; gap: var(--s-4); justify-items: start; }
.prod-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.prod-copy p { max-width: var(--measure); }
.prod-terms { color: var(--ink-2); font-size: 15px; }
.sample { display: grid; gap: 14px; background: var(--wash); border-radius: var(--r-3); padding: clamp(16px, 2.4vw, 26px) clamp(16px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px); }
.sample figcaption { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-2); }
.prod-sib { grid-template-columns: 1fr; background: var(--accent-soft); border-color: transparent; border-radius: var(--r-3); padding: clamp(18px, 2.4vw, 28px); max-width: 780px; }
@media (max-width: 860px) { .prod { grid-template-columns: 1fr; } }

/* 6. How we work, who's behind it, get in touch ---------------------------------------------------------------------- */
.princ > div { border-top: 2px solid var(--ink); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.princ h3 { font: 700 var(--fs-3)/1.25 var(--ui); letter-spacing: -.01em; }
.princ p { color: var(--ink-2); }
.who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; max-width: 860px; }
.who-text { display: grid; gap: var(--s-4); justify-items: start; }
.mono { width: 104px; height: 104px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--ink); display: grid; place-items: center; font: 600 32px/1 var(--ui); letter-spacing: .01em; }
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } .mono { width: 96px; height: 96px; font-size: 30px; } }
.touch { display: grid; gap: var(--s-4); max-width: 46em; }
.touch p { font-size: var(--fs-lead); line-height: 1.45; text-wrap: pretty; }
.touch .note, .note { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* 7. Inner pages: a head, then ruled sections with the heading in the left column ------------------------------------- */
.page-head { padding-block: clamp(36px, 5.5vw, 84px) clamp(28px, 4vw, 56px); }
.page-head .wrap { display: grid; gap: var(--s-5); }
.sec { border-top: 1px solid var(--line); padding-block: clamp(28px, 4vw, 56px); }
.sec-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-4) clamp(24px, 4vw, 64px); align-items: start; }
.sec-body { display: grid; gap: var(--s-4); max-width: 44em; }
.sec-body > p, .sec-body li { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.sec-last { padding-bottom: var(--band); }
@media (max-width: 860px) { .sec-in { grid-template-columns: 1fr; } }
.items { display: grid; gap: var(--s-4); }
.items li { padding-left: 22px; position: relative; }
.items li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 6px; background: var(--accent); border-radius: 3px 5px 4px 6px; transform: rotate(-2deg); }
.details { display: grid; border-bottom: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2.4fr); gap: 2px 24px; padding: 13px 0; border-top: 1px solid var(--line); }
.details dt { font-weight: 600; }
.details dd { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .details > div { grid-template-columns: 1fr; } }
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
.founder p { font-size: 17px; line-height: 1.55; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }
/* Contact card, the marketing-choice callout and the emergency notice (orange bar = ring first, as in the system). */
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-3); box-shadow: var(--sh-hard); padding: clamp(16px, 2.4vw, 28px); }
.callout { background: var(--accent-soft); border: 2px solid var(--ink); border-radius: var(--r-3); padding: clamp(16px, 2.4vw, 28px); display: grid; gap: var(--s-4); }
.alert { border: 2px solid var(--ink); border-left: 10px solid var(--first); border-radius: var(--r-2); padding: 14px 16px; }
.alert p { font-size: 16px; line-height: 1.5; }

/* 8. Legal footer ---------------------------------------------------------------------------------------------------- */
.foot.gfoot { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.gfoot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px clamp(24px, 5vw, 72px); }
.foot .gfoot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; justify-content: normal; font-size: 15px; }
.gfoot-nav h2 { font: 600 13px/1.3 var(--ui); color: #bcbfc7; margin-bottom: 2px; }
.gfoot-nav li a { display: flex; text-decoration: none; }
.gfoot-nav li a:hover { text-decoration: underline; }
.gfoot-legal { margin-top: 28px; padding-top: 8px; border-top: 1px solid #3a3e48; }
.foot .gfoot-legal p { font-size: var(--fs-micro); line-height: 1.6; font-weight: 400; color: #bcbfc7; max-width: none; }
@media (max-width: 760px) { .gfoot-top { grid-template-columns: 1fr; } }

/* 9. Not found ------------------------------------------------------------------------------------------------------- */
.lost { padding-block: var(--band); }
.lost .wrap { display: grid; gap: var(--s-5); justify-items: start; }

@media print { .gs-motion .map-line { stroke-dashoffset: 0; animation: none; } .gs-motion .map-pin { opacity: 1; animation: none; } .skip { display: none; } }

/* 10. Legal reading layout (part B: /privacy, /terms, /cookies) ---------------------------------------------------------
   Structure follows the AIRIS doc.css: a calm reading column about 68 characters wide, ruled numbered sections, and an
   "on this page" list that sits under the date on a phone and becomes a sticky left rail on a wide screen. No script.
   The reading column is plain block layout, so the one wide table scrolls in its own box and never pushes the page. */
.docpage { padding-block: clamp(32px, 5vw, 72px) var(--band); }
.doc-head, .doctoc, .doc { max-width: 680px; margin-inline: auto; }
.doc-head h1 { font: 800 var(--fs-1)/1.08 var(--voice); letter-spacing: -.02em; text-wrap: balance; }
.doc-date { display: inline-block; margin-top: 16px; padding: 5px 10px; background: var(--wash); border-radius: var(--r-1); font-size: 13.5px; line-height: 1.4; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.doctoc { margin-top: 24px; padding: 12px 16px 4px; border: 2px solid var(--ink); border-radius: var(--r-2); font-size: 15px; line-height: 1.35; }
.doctoc h2 { font: 600 15px/1.3 var(--ui); padding-bottom: 8px; }
.doctoc a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.doctoc a:hover { color: var(--ink); text-decoration: underline; }

.doc { margin-top: 28px; font-size: 17px; line-height: 1.65; }
.doc > :first-child { margin-top: 0; }
.doc section { margin-top: clamp(34px, 4vw, 48px); padding-top: 20px; border-top: 2px solid var(--ink); scroll-margin-top: 84px; }
.doc h2 { font: 700 clamp(20px, 1.7vw, 23px)/1.25 var(--ui); letter-spacing: -.012em; }
.doc h3 { font: 700 17px/1.35 var(--ui); margin-top: 28px; scroll-margin-top: 84px; }
.doc p, .doc ul, .doc .callout, .doc .alert, .doc-scroll { margin-top: .8em; }
.doc h2 + *, .doc h3 + * { margin-top: .55em; }
.doc ul { display: grid; gap: 6px; }
.doc li { position: relative; padding-left: 22px; text-wrap: pretty; }
.doc li::before { content: ""; position: absolute; left: 3px; top: .74em; width: 9px; height: 3px; border-radius: 2px; background: var(--ink); }
.doc strong { font-weight: 600; }
.doc a { text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.doc code { font: 500 .9em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--wash); padding: 2px 6px; border-radius: var(--r-1); overflow-wrap: anywhere; }
.doc .callout, .doc .alert { font-size: 16px; line-height: 1.55; }
.doc .callout > *, .doc .alert > * { margin-top: 0; }
.doc .callout code { background: var(--paper); }

.doc-scroll { margin-top: 1.1em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 2px solid var(--ink); border-left: 6px solid var(--accent-deep); border-radius: var(--r-2); background: var(--paper); }
.doc-scroll:focus-visible { outline-offset: 3px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; }
.doc th { font-weight: 600; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.doc tbody tr + tr td { border-top: 1px solid var(--line); }

@media (min-width: 1100px) {
  .docpage { display: grid; grid-template-columns: 220px minmax(0, 680px); column-gap: clamp(40px, 6vw, 96px); row-gap: 32px; align-items: start; }
  .doc-head, .doctoc, .doc { max-width: none; margin: 0; }
  .doc-head, .doc { grid-column: 2; }
  .doctoc { grid-column: 1; grid-row: 2; position: sticky; top: 84px; max-height: calc(100vh - 108px); overflow-y: auto; padding: 0; border: 0; border-radius: 0; font-size: 14px; }
  .doctoc ol { border-left: 2px solid var(--line); }
  .doctoc a { min-height: 0; padding: 7px 0 7px 12px; border-top: 0; }
}

@media print {
  .doctoc { display: none; }
  .docpage { display: block; padding: 0; }
  .doc { max-width: none; font-size: 11pt; }
  .doc-scroll { overflow: visible; border-width: 1px; }
  .doc table { min-width: 0; font-size: 9.5pt; }
  .doc h2, .doc h3 { break-after: avoid; }
}
