/* Clerk of Eden platform: one stylesheet for every city. Brand colours come from the city's
   settings (see layouts/site.blade.php); nothing here is specific to one city. */
:root {
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #1f1a17;
  --muted: #5b524c;
  --line: #e7dfd2;
  --focus: #1a5fd0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 26, 23, .06), 0 8px 24px rgba(31, 26, 23, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--cream); }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Official-site strip and alert */
.official { background: var(--brand-dark); color: color-mix(in srgb, white 88%, var(--accent)); font-size: .875rem; }
.official .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.official a { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.official a:hover { text-decoration: underline; }

.alert { background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, white); }
.alert .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.alert p { margin: 0; flex: 1; }
.alert a { font-weight: 600; }
.alert__dismiss { border: 0; background: transparent; color: var(--ink); padding: 6px; border-radius: 6px; cursor: pointer; }
.alert__dismiss:hover { background: rgba(0, 0, 0, .06); }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 60px; height: 60px; }
.brand__text { display: grid; line-height: 1.05; }
.brand__small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand__name { font-family: var(--serif); font-size: 1.85rem; font-weight: 700; color: var(--brand); letter-spacing: -.01em; }

.nav-toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; }

.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav__button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); padding: 10px 14px; border-radius: 999px; cursor: pointer; }
.primary-nav__button:hover { background: var(--cream); }
.primary-nav__button[aria-expanded="true"] { background: var(--brand); color: #fff; }
.primary-nav__button .icon { transition: transform .15s ease; }
.primary-nav__button[aria-expanded="true"] .icon { transform: rotate(180deg); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(31, 26, 23, .12); }
.mega[hidden] { display: none; }
.mega__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 12px 32px; }
.mega__overview { margin: 22px 0 4px; font-weight: 700; }
.mega__overview a { display: inline-flex; gap: 6px; align-items: center; }
a.primary-nav__button { text-decoration: none; }
.mega h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a { display: flex; align-items: center; gap: 6px; padding: 7px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.mega a:hover { color: var(--brand); text-decoration: underline; }
.mega a .icon { width: .9em; height: .9em; color: var(--muted); }

.header-search { display: flex; }
.header-search a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.header-search a:hover { border-color: var(--brand); color: var(--brand); }

/* Hero */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--brand-dark) 85%, transparent) 0%, color-mix(in srgb, var(--brand-dark) 60%, transparent) 45%, color-mix(in srgb, var(--brand-dark) 5%, transparent) 80%); }
.hero__content { padding-block: 72px 140px; max-width: 640px; }
.hero__eyebrow { margin: 0 0 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: color-mix(in srgb, var(--accent) 60%, white); }
.hero h1 { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 24px; letter-spacing: -.02em; font-weight: 700; }
.search { display: flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 10px 18px; border-radius: 999px; }
.search input:focus-visible { outline-offset: 0; }
.search button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer; }
.search button:hover { background: var(--brand-dark); }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.popular span { color: color-mix(in srgb, white 85%, var(--accent)); margin-right: 4px; }
.popular a { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .45); padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .15); }
.popular a:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }

/* Key services */
.services { position: relative; margin-top: -88px; z-index: 2; }
.services ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.service { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 20px 16px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: transform .15s ease, border-color .15s ease; }
.service:hover { transform: translateY(-3px); border-color: var(--accent); }
.service__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--brand); }
.service__icon .icon { width: 26px; height: 26px; }
.service__label { font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: 4px; }
.service__label .icon { width: .85em; height: .85em; color: var(--muted); }
.service__hint { font-size: .875rem; color: var(--muted); line-height: 1.3; }

/* Main */
.home-main { padding-block: 56px 72px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-family: var(--serif); font-size: 1.75rem; margin: 0; letter-spacing: -.01em; }
.section-head a { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news a { display: grid; gap: 4px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.news a:hover { border-color: var(--brand); }
.news a:hover .news__title { text-decoration: underline; }
.news__dept { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.news__title { font-size: 1.1rem; font-weight: 600; }

.aside { display: grid; gap: 16px; align-content: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 8px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card--alerts { background: var(--brand); color: #fff; border-color: var(--brand); }
.card--alerts p { color: color-mix(in srgb, white 88%, var(--accent)); }
.card--alerts .keyword { display: inline-block; font-weight: 800; letter-spacing: .06em; background: #fff; color: var(--brand); padding: 2px 10px; border-radius: 6px; }
.card--alerts a { color: #fff; font-weight: 600; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: 2px; }

/* Footer */
.site-footer { background: var(--brand-dark); color: color-mix(in srgb, white 88%, var(--accent)); }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 60%, white); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__small { color: color-mix(in srgb, white 80%, var(--accent)); }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 16px 24px; font-size: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Responsive */
@media (max-width: 1100px) {
  .services ul { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-search { display: none; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(31, 26, 23, .12); padding: 8px 16px 16px; }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; }
  .primary-nav__button { width: 100%; justify-content: space-between; border-radius: 10px; padding: 14px 12px; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega__inner { grid-template-columns: 1fr; gap: 12px; padding: 4px 12px 12px; width: auto; }
  .home-main { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand img { width: 48px; height: 48px; }
  .brand__name { font-size: 1.5rem; }
  .official .wrap > :last-child { display: none; }
  .hero__content { padding-block: 44px 120px; }
  .search button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .services ul { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------------------------------------------------------------- demo banner */
.demo-banner { background: #1f1a17; color: #fff; font-size: .9rem; text-align: center; padding: 8px 16px; }
.demo-banner strong { color: #ffd970; }

/* ---------------------------------------------------------------- inner pages */
.page-head { background: var(--brand); color: #fff; padding-block: 36px 40px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; margin: 6px 0 0; letter-spacing: -.01em; }
.page-head p { margin: 10px 0 0; max-width: 70ch; color: color-mix(in srgb, white 88%, var(--accent)); font-size: 1.1rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: #fff; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 40px 64px; }
.layout--wide { grid-template-columns: minmax(0, 1fr); }
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--serif); font-size: 1.5rem; margin: 1.6em 0 .4em; }
.prose h3 { font-size: 1.15rem; margin: 1.4em 0 .3em; }
.prose p, .prose li { line-height: 1.65; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .97rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--accent-soft); }
.prose ol ol { list-style: lower-alpha; }
.meta { color: var(--muted); font-size: .95rem; }
.sidebar { display: grid; gap: 16px; align-content: start; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card-link { display: grid; gap: 6px; height: 100%; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.card-link:hover { border-color: var(--brand); }
.card-link:hover strong { text-decoration: underline; }
.card-link strong { font-size: 1.08rem; color: var(--brand); }
.card-link span { color: var(--muted); font-size: .95rem; }
.meeting-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meeting-list a { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.meeting-list a:hover { border-color: var(--brand); }
.date-chip { display: grid; text-align: center; border-radius: 10px; background: var(--accent-soft); color: var(--brand); padding: 8px 4px; line-height: 1.1; }
.date-chip b { font-size: 1.5rem; }
.date-chip span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--brand); }
.tag--muted { background: #ece7df; color: var(--muted); }
.tag--warn { background: #fde7c7; color: #7a3d00; }
.doc-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 22px 26px; margin-top: 24px; }
.doc-block > h2:first-child { margin-top: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-top: 12px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.directory { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.directory th, .directory td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.directory thead th { background: var(--accent-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.search-page form { margin: 0 0 28px; max-width: 640px; }
.search-page .search { box-shadow: none; border: 1px solid var(--line); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.results a { font-weight: 600; font-size: 1.08rem; }
.empty { color: var(--muted); }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}
@media print {
  .official, .alert, .site-header nav, .nav-toggle, .header-search, .site-footer, .demo-banner { display: none !important; }
  .page-head { background: none; color: #000; padding: 0; }
  .page-head p, .breadcrumb { display: none; }
  a { color: #000; }
}

.service--unavailable { background: #f3f0ea; box-shadow: none; border: 1px dashed var(--line); cursor: default; }
.service--unavailable:hover { transform: none; border-color: var(--line); }
.service--unavailable .service__icon { background: #e7e1d7; color: var(--muted); }
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form label span { font-weight: 400; color: var(--muted); font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid #8f877f; border-radius: 10px; background: var(--paper); color: var(--ink); }
.form textarea { min-height: 140px; }
.form button { justify-self: start; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 700; padding: 12px 24px; border-radius: 999px; cursor: pointer; }
.form .error { color: #b42318; font-weight: 600; }
.notice-success { border: 2px solid #17803d; background: #eefaf2; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.hp { position: absolute; left: -10000px; }
.status-open { background: #e6f4ea; color: #0f5c2b; }
.day { margin-top: 28px; }
.day h2 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 10px; }
