@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-grotesk: 'Schibsted Grotesk';
}

/* Vernal Harbor — fresh local services board.
   Architecture: persistent directory nameplate + AREA BOARD home (legend rail +
   map-ish category board) + PLACE-PROFILE article (labeled field rows / record). */

:root {
  --leaf: #4e9d4e;
  --leaf-deep: #2f6b30;
  --leaf-soft: #eaf4e7;
  --sky: #5aa0c9;
  --sky-soft: #e7f1f7;
  --paper: #fbfbf4;
  --surface: #ffffff;
  --ink: #1b2a1b;
  --muted: #5e6c5a;
  --faint: #828e7e;
  --line: #e3e7da;
  --line-strong: #cdd5c4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 44px -30px rgba(31, 64, 31, 0.4);
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-grotesk), "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--leaf-deep);
  text-decoration-color: rgba(78, 157, 78, 0.4);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: var(--leaf);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--leaf-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 50;
}

.skip-link:focus {
  left: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------------------
   PERSISTENT LOCAL HEADER — directory nameplate with area locator strip
---------------------------------------------------------------------------- */
.plate {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 40px) 18px;
  border-bottom: 2px solid var(--ink);
}

.plate-id {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.plate-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.plate-word {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plate-word::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 9px;
  border-radius: 50% 50% 50% 2px;
  background: var(--leaf);
  transform: translateY(-1px) rotate(45deg);
}

.plate-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.plate-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--leaf-deep);
  background: var(--leaf-soft);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: center;
}

.plate-areas {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.plate-areas-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.plate-areas ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plate-areas li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.area-pin {
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 50% 1px;
  background: var(--sky);
  transform: rotate(45deg);
  flex: none;
}

/* ----------------------------------------------------------------------------
   HOME — AREA BOARD
---------------------------------------------------------------------------- */
.board {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px) 40px;
}

.board-cover {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background-color: var(--leaf-deep);
  background-image: linear-gradient(118deg, rgba(43, 99, 44, 0.93) 8%, rgba(64, 130, 78, 0.82) 52%, rgba(90, 160, 201, 0.74) 100%),
    url("/images/vernalharbor-lead.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.board-cover-inner {
  padding: clamp(30px, 5vw, 56px);
  max-width: 760px;
}

.board-cover .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.board-cover h1 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 800;
}

.board-lede {
  margin: 16px 0 0;
  font-size: 1.06rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
}

.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.board-meta span:not([aria-hidden]) {
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.board-meta span[aria-hidden] {
  opacity: 0.5;
  align-self: center;
}

/* two-column: legend rail + board main */
.board-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 34px;
  margin-top: 38px;
}

.board-legend {
  position: sticky;
  top: 20px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--leaf);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
}

.legend-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.legend-note {
  margin: 10px 0 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.legend-areas {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 11px;
}

.legend-areas li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
}

.board-band-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.board-band-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.profiles-head {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}

/* map-ish category tiles */
.category-board {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.category-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px 20px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.category-tile:hover {
  border-color: var(--leaf);
  transform: translateY(-2px);
}

.tile-coord {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tile-code {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--leaf-deep);
  padding: 3px 8px;
  border-radius: 5px;
}

.tile-area {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.tile-label {
  font-size: 1.12rem;
  font-weight: 800;
}

.tile-note {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* directory rows */
.profile-index {
  list-style: none;
  counter-reset: none;
  margin: 18px 0 0;
  padding: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 20px 6px;
  border-top: 1px solid var(--line);
}

.profile-row:first-child {
  border-top: none;
}

.profile-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--leaf);
  padding-top: 3px;
}

.profile-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.row-area,
.row-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
}

.row-area {
  color: var(--sky);
  background: var(--sky-soft);
}

.row-cat {
  color: var(--leaf-deep);
  background: var(--leaf-soft);
}

.profile-row-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.profile-row-title a {
  text-decoration: none;
  color: var(--ink);
}

.profile-row-title a:hover {
  color: var(--leaf-deep);
}

.profile-row-lede {
  margin: 6px 0 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}

.profile-row-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--faint);
  white-space: nowrap;
  padding-top: 3px;
}

/* about strip */
.board-about {
  margin-top: 44px;
  padding: 30px clamp(22px, 3vw, 38px);
  background: var(--leaf-soft);
  border-radius: var(--radius);
}

.board-about h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--leaf-deep);
}

.about-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.about-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.97rem;
  line-height: 1.55;
  color: #2f3d2d;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 1px;
  background: var(--leaf);
  transform: rotate(45deg);
}

.about-foot {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------------------
   ARTICLE — PLACE-PROFILE RECORD (labeled field rows)
---------------------------------------------------------------------------- */
.profile {
  max-width: 940px;
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 40px) 50px;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-head {
  padding: clamp(26px, 4vw, 40px) clamp(24px, 4vw, 44px) 30px;
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(180deg, var(--leaf-soft), var(--surface));
}

.profile-locator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.profile-locator a {
  text-decoration: none;
  color: var(--leaf-deep);
}

.profile-locator span[aria-hidden] {
  opacity: 0.5;
}

.profile-type {
  display: inline-block;
  margin: 14px 0 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--leaf-deep);
  padding: 4px 11px;
  border-radius: 5px;
}

.profile-head h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 800;
}

.profile-summary {
  margin: 14px 0 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #34432f;
  max-width: 62ch;
}

.profile-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--faint);
}

.profile-stamp span {
  position: relative;
  padding-left: 16px;
}

.profile-stamp span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
}

/* the record: label column + value column per field */
.profile-fields {
  margin: 0;
  padding: 0;
}

.field {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 24px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.field:first-child {
  border-top: none;
}

.field dt {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  padding-top: 3px;
}

.field dd {
  margin: 0;
  min-width: 0;
}

.field dd > p:first-child {
  margin-top: 0;
}

.field dd > p:last-child {
  margin-bottom: 0;
}

/* context record line */
.record-line {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.record-line li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-top: 1px solid var(--line);
}

.record-line li:first-child {
  border-top: none;
  background: var(--leaf-soft);
}

.record-line li span {
  color: var(--faint);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  align-self: center;
}

/* verify checklist */
.verify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.verify-list li {
  position: relative;
  padding: 11px 14px 11px 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--leaf);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  line-height: 1.45;
}

.verify-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 13px;
  height: 8px;
  border-left: 2.5px solid var(--leaf);
  border-bottom: 2.5px solid var(--leaf);
  transform: rotate(-45deg);
}

/* good-to-know info rows */
.info-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.info-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.info-rows li:first-child {
  border-top: none;
}

.info-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.info-value {
  font-weight: 600;
  text-align: right;
}

/* nearby alternatives */
.alt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.alt-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 15px;
  background: var(--sky-soft);
  border-radius: var(--radius-sm);
}

.alt-list a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.alt-list a:hover {
  color: var(--leaf-deep);
}

.alt-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sky);
}

/* injected article HTML inside Notes */
.article-content {
  font-size: 1.02rem;
  line-height: 1.68;
  color: #25331f;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2 {
  font-size: 1.28rem;
  font-weight: 800;
  margin: 30px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--leaf-soft);
}

.article-content h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 22px 0 8px;
}

.article-content p {
  margin: 0 0 14px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-content li {
  margin: 0 0 7px;
}

.article-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--leaf-soft);
  border-left: 4px solid var(--leaf);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.06rem;
  font-style: italic;
  color: #2c3d27;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.93rem;
  display: block;
  overflow-x: auto;
}

.article-content thead th {
  background: var(--leaf-deep);
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 10px 13px;
  white-space: nowrap;
}

.article-content tbody td {
  padding: 10px 13px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.article-content tbody tr:nth-child(even) {
  background: var(--paper);
}

.article-content a {
  font-weight: 600;
}

/* FAQ details inside the Questions field */
.field#faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
  margin-bottom: 10px;
  background: var(--surface);
}

.field#faq details[open] {
  border-color: var(--leaf);
  background: var(--paper);
}

.field#faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 9px 0;
  list-style: none;
}

.field#faq summary::-webkit-details-marker {
  display: none;
}

.field#faq summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  font-weight: 800;
  color: var(--leaf);
}

.field#faq details[open] summary::before {
  content: "–";
}

.field#faq details p {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
}

.profile-foot {
  padding: 22px clamp(24px, 4vw, 44px) 30px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--leaf-deep);
}

.back-link::before {
  content: "←";
}

/* ----------------------------------------------------------------------------
   FOOTER
---------------------------------------------------------------------------- */
.harbor-foot {
  border-top: 2px solid var(--ink);
  background: var(--surface);
}

.harbor-foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 40px) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.foot-word {
  font-size: 1.2rem;
}

.harbor-foot p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52ch;
}

.foot-note {
  font-size: 0.85rem;
  color: var(--faint);
}

/* ----------------------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .board-layout {
    grid-template-columns: 1fr;
  }

  .board-legend {
    position: static;
  }

  .legend-areas {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .category-board {
    grid-template-columns: 1fr;
  }

  .field {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field dt {
    padding-top: 0;
  }

  .harbor-foot-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .plate {
    align-items: flex-start;
  }

  .plate-areas {
    align-items: flex-start;
  }

  .plate-areas ul {
    justify-content: flex-start;
  }

  .profile-row {
    grid-template-columns: 30px 1fr;
  }

  .profile-row-date {
    grid-column: 2;
    padding-top: 0;
  }
}
