/* groveslatebrowse.com: homepage, header and footer (light, plain open-source look) */
:root {
  /* palette from images/logo.png: deep teal #085858, sage #98A868, vermilion #D83818 */
  --white: #FFFFFF;
  --paper: #F3F6F3;
  --fill: #E5ECE8;
  --ink: #0D3433;
  --text: #2C3D3B;
  --muted: #56645F;
  --teal: #085858;
  --teal-dk: #064646;
  --sage: #98A868;
  --sage-dk: #6E7E44;
  --verm: #C4361A;
  --verm-dk: #A42A12;
  --line: #D6DED9;
  --font-head: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-dk);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 0.55em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

figure {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-main {
  background: var(--verm);
  color: var(--white);
}

.btn-main:hover {
  background: var(--verm-dk);
  color: var(--white);
}

.btn-line {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-line:hover {
  background: var(--teal);
  color: var(--white);
}

/* ---------- Header: documentation bar ---------- */
.site-header {
  position: static;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.docbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 80px;
}

.brand {
  flex: none;
  line-height: 0;
}

.brand img {
  width: 184px;
  height: auto;
}

.docbar-desc {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: nowrap;
}

.docbar-toggle {
  display: none;
}

.docbar-toggle[hidden] {
  display: none !important;
}

.docbar-panel {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid #B4C2BB;
  border-radius: var(--r);
  overflow: hidden;
}

.seg a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  color: var(--text);
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.seg a + a {
  border-left: 1px solid #B4C2BB;
}

.seg a:hover,
.seg a[aria-current] {
  background: var(--fill);
  color: var(--teal-dk);
}

.seg a:focus-visible {
  outline-offset: -3px;
  background: var(--fill);
}

.docbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.docbar-cta .ico {
  width: 0.95em;
  height: 0.95em;
}

.docbar-cta:hover {
  color: var(--teal-dk);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .docbar-desc {
    display: none;
  }
}

@media (max-width: 860px) {
  .docbar {
    flex-wrap: wrap;
    gap: 0 16px;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .docbar-desc {
    display: block;
  }

  .docbar-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    min-height: 44px;
    margin-right: -10px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r);
    background: none;
    color: var(--teal);
    font: 700 0.98rem var(--font-body);
    cursor: pointer;
  }

  .docbar-toggle:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .docbar-toggle[aria-expanded="true"] {
    background: var(--fill);
  }

  .docbar-panel {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 14px 0 0;
  }

  .is-js .docbar-panel {
    display: none;
  }

  .is-js.is-open .docbar-panel {
    display: flex;
  }

  .seg {
    grid-auto-flow: row;
  }

  .seg a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 16px;
  }

  .seg a + a {
    border-left: 0;
    border-top: 1px solid #B4C2BB;
  }

  .docbar-cta {
    padding: 6px 2px 2px;
  }
}

@media (max-width: 520px) {
  .docbar-desc {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 13ch;
}

.hero-sub {
  max-width: 44ch;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
}

/* ---------- Getting started ---------- */
.start {
  background: var(--paper);
  padding: clamp(56px, 8vw, 96px) 0;
}

.start-grid {
  display: grid;
  gap: 40px;
}

.start-copy p {
  max-width: 46ch;
}

.start-photo {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
  margin-top: 28px;
}

.steps {
  display: grid;
  gap: 12px;
  align-content: start;
}

.step {
  border-radius: var(--r);
  background: var(--white);
}

.step summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: var(--fill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.step summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}

.step summary span {
  flex: 1;
}

.step[open] summary {
  border-radius: var(--r) var(--r) 0 0;
}

.step p {
  margin: 0;
  padding: 16px 18px 20px 58px;
  color: var(--text);
}

.doodle {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle .spot {
  stroke: var(--verm);
}

.pm {
  color: var(--teal);
  transition: transform 0.2s ease;
}

details[open] > summary .pm {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .pm {
    transition: none;
  }
}

/* ---------- Features ---------- */
.features {
  padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 64px);
}

.split-head {
  display: grid;
  gap: 8px 56px;
  margin-bottom: 36px;
}

.split-head h2 {
  max-width: 16ch;
  margin: 0;
}

.split-head p {
  max-width: 48ch;
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  align-self: end;
}

.flist {
  display: grid;
  gap: 0 40px;
}

.fitem {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
}

.fitem h3 {
  margin-bottom: 0.4em;
}

.fitem p {
  margin: 0;
  max-width: 60ch;
}

/* ---------- Does / doesn't ---------- */
.scope {
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 104px);
}

.scope .wrap > h2 {
  margin-bottom: 28px;
}

.scope-cols {
  display: grid;
  gap: 32px 56px;
}

.scope-cols h3 {
  padding-bottom: 12px;
  border-bottom: 3px solid var(--sage);
}

.scope-cols > div:last-child h3 {
  border-bottom-color: var(--line);
}

.scope-cols ul {
  margin: 0;
  padding-left: 1.2em;
}

.scope-cols li {
  margin-bottom: 0.5em;
}

.scope-cols li::marker {
  color: var(--sage-dk);
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--paper);
  padding: clamp(56px, 8vw, 104px) 0;
}

.faq-grid {
  display: grid;
  gap: 24px 56px;
}

.faq-grid h2 {
  max-width: 12ch;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary:hover {
  color: var(--teal);
}

.faq details p {
  max-width: 62ch;
  margin: 0;
  padding: 0 40px 22px 0;
  color: var(--text);
}

/* ---------- Notes (dated cards on a teal band) ---------- */
.notes {
  background: var(--teal);
  padding: clamp(56px, 8vw, 96px) 0;
}

.notes h2 {
  color: var(--white);
  margin-bottom: 32px;
}

.cards {
  display: grid;
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 20px 22px 24px;
}

.card-date {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.card h3 {
  margin: 0;
  font-size: 1.22rem;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.card h3 a:focus-visible {
  outline-offset: 2px;
}

/* ---------- Closing ---------- */
.closing {
  padding: clamp(56px, 8vw, 96px) 0;
}

.closing-grid {
  display: grid;
  gap: 20px 56px;
  align-items: center;
}

.closing-grid h2 {
  margin: 0;
  max-width: 16ch;
}

.cta-note {
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-top: clamp(44px, 6vw, 64px);
  font-size: 0.97rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  padding-bottom: 36px;
}

.footer-id {
  grid-column: 1 / -1;
}

.footer-id .brand img {
  width: 184px;
}

.footer-note {
  max-width: 42ch;
  margin: 16px 0 0;
  color: var(--muted);
}

.footer-col h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--text);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-base p {
  margin: 0;
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .flist,
  .scope-cols {
    grid-template-columns: 1fr 1fr;
  }

}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
  }

  .start-grid,
  .split-head,
  .closing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .start-grid {
    gap: 64px;
  }

  .flist,
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-grid {
    grid-template-columns: 1fr 1.7fr;
  }

  .closing-act {
    justify-self: end;
  }

  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .footer-id {
    grid-column: auto;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  .brand img {
    width: 150px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .step p {
    padding-left: 18px;
  }

  .start-photo {
    display: none;
  }

  .closing .btn-main {
    width: 100%;
    justify-content: center;
  }
}

/* hdr6:start */
/* Header v6: logo left, a centred segmented switch, compact icon button right */
.gs-head {
  position: static;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.gs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  min-height: 78px;
}

.gs-brand {
  justify-self: start;
  line-height: 0;
}

.gs-brand img {
  width: 170px;
  height: auto;
}

.gs-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  background: var(--fill);
  border-radius: 9px;
}

.gs-seg a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 7px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.gs-seg a:hover {
  background: var(--white);
  color: var(--teal-dk);
  box-shadow: 0 1px 2px rgba(13, 52, 51, .14);
}

.gs-seg a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  background: var(--white);
}

.gs-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px 0 16px;
  border-radius: 7px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.gs-cta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gs-cta:hover {
  background: var(--teal-dk);
  color: var(--white);
}

.gs-cta:focus-visible {
  outline: 3px solid var(--verm);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .gs-seg a { transition: none; }
}

@media (max-width: 640px) {
  .gs-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "seg seg";
    row-gap: 10px;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .gs-brand { grid-area: brand; }
  .gs-brand img { width: 142px; }
  .gs-cta { grid-area: cta; min-height: 44px; }
  .gs-seg { grid-area: seg; }
  .gs-seg a { min-height: 40px; padding: 0 8px; }
}
/* hdr6:end */
