/* Southern Arizona Open Space Alliance — site styles */
:root {
  --sand: #f6efe4;
  --sand-deep: #ebdfcb;
  --ink: #2b2420;
  --ink-soft: #5c5047;
  --saguaro: #3f5b45;
  --saguaro-deep: #2c4232;
  --sunset: #c2562e;
  --sunset-deep: #9e4220;
  --dusk: #4a3b5c;
  --white: #fffdf9;
  --line: #d9cbb4;
  --radius: 10px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sunset-deep); }
a:hover { color: var(--sunset); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--ink); margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); color: var(--saguaro-deep); }
.nav a.btn { background: var(--sunset); color: var(--white); }
.nav a.btn:hover { background: var(--sunset-deep); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; cursor: pointer; color: var(--ink); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; }
  .nav a { padding: 12px; }
}

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--sunset); color: var(--white); text-decoration: none; font-weight: 600; border: 2px solid var(--sunset); }
.btn:hover { background: var(--sunset-deep); border-color: var(--sunset-deep); color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.outline { background: transparent; color: var(--saguaro-deep); border-color: var(--saguaro); }
.btn.outline:hover { background: var(--saguaro); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; color: var(--white); background: linear-gradient(180deg, #3b2f52 0%, #8a4a4f 38%, #d0773f 66%, #e9a35c 100%); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(150px, 22vw, 260px); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .eyebrow { color: #fbe3c8; }
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 40rem; color: #fff4e6; }
.hero-art { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: auto; }
.page-hero { background: var(--saguaro-deep); color: var(--white); padding: 64px 0 56px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); max-width: 22ch; }
.page-hero p { color: #e5ecdf; max-width: 42rem; font-size: 1.15rem; margin: 0; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sunset-deep); margin-bottom: .8em; display: block; }
.page-hero .eyebrow { color: #f2c9a4; }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
section.alt { background: var(--white); }
section.dark { background: var(--saguaro-deep); color: #eef2ea; }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark a { color: #f6c9a0; }
.intro { max-width: 46rem; }
.intro p { font-size: 1.15rem; color: var(--ink-soft); }
.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section.alt .card { background: var(--sand); }
.card .icon { width: 44px; height: 44px; margin-bottom: 14px; color: var(--saguaro); }
.card p:last-child { margin-bottom: 0; }

/* Callout */
.callout { background: var(--sunset); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); display: grid; gap: 20px; grid-template-columns: 1fr auto; align-items: center; }
.callout h2 { color: var(--white); margin-bottom: .3em; }
.callout p { margin: 0; color: #fff1e4; }
.callout .btn { background: var(--white); color: var(--sunset-deep); border-color: var(--white); }
.callout .btn:hover { background: var(--sand); }
@media (max-width: 700px) { .callout { grid-template-columns: 1fr; } }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 32px 0; }
.fact { background: var(--white); border-left: 4px solid var(--sunset); border-radius: 6px; padding: 18px 20px; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--saguaro-deep); }
.fact span { font-size: .92rem; color: var(--ink-soft); }
.prose { max-width: 44rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.note { font-size: .9rem; color: var(--ink-soft); }
.sources { font-size: .9rem; }
.sources li { margin-bottom: .35em; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--sunset); }
.timeline .when { font-weight: 600; color: var(--saguaro-deep); display: block; }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input, textarea, select { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--saguaro); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 6px; }

/* Footer */
.site-footer { background: var(--ink); color: #d8cfc4; padding: 56px 0 32px; font-size: .95rem; }
.site-footer a { color: #f2c9a4; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid #4a413a; margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #a99d90; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.hero p.current { display: inline-block; background: rgba(44,66,50,.55); border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 10px 16px; color: var(--white); margin-bottom: 1.6em; }
.brand img { width: 60px; height: 60px; flex: none; }
.site-header .wrap { min-height: 76px; }
.hero-logo { position: absolute; right: 20px; top: clamp(48px, 7vw, 88px); width: clamp(180px, 22vw, 280px); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
@media (max-width: 900px) { .hero-logo { position: static; width: 150px; margin-bottom: 20px; } }
.footer-logo { width: 96px; height: 96px; margin-bottom: 14px; }
/* Photo banner on the home page */
.hero-photo { background-color: #3a2410; background-image: linear-gradient(90deg, rgba(20,12,6,.78) 0%, rgba(20,12,6,.55) 45%, rgba(20,12,6,.1) 80%), url("desert-sunset-2000.jpg"); background-size: cover; background-position: center 65%; }
.hero-photo .wrap { padding-bottom: clamp(72px, 10vw, 128px); }
.hero-photo h1, .hero-photo p.lead { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-photo .photo-credit { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-size: .75rem; color: rgba(255,255,255,.7); }
@media (max-width: 900px) {
  .hero-photo { background-image: linear-gradient(180deg, rgba(20,12,6,.3) 0%, rgba(20,12,6,.65) 100%), url("desert-sunset-1100.jpg"); background-position: 40% center; }
}
/* Reprinted articles on the Three Points page */
.article { max-width: 46rem; }
.article h2 { margin-bottom: .3em; }
.article h3 { margin-top: 1.6em; font-size: 1.2rem; color: var(--saguaro-deep); }
.article .byline { color: var(--ink-soft); font-size: .95rem; font-weight: 500; margin-bottom: 1.6em; }
.article .pullquote { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--sunset-deep); border-left: 4px solid var(--sunset); padding: 4px 0 4px 18px; margin: 1.4em 0; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--saguaro-deep); font-weight: 600; font-size: .92rem; }
.jump a:hover { border-color: var(--saguaro); }
[id] { scroll-margin-top: 90px; }
.article .editor-note { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: .92rem; color: var(--ink-soft); margin-top: -.6em; }
/* Upcoming public meetings */
.meeting-bar { background: var(--saguaro-deep); color: #eef2ea; font-size: .95rem; }
.meeting-bar .wrap { padding-top: 10px; padding-bottom: 10px; display: block; }
.meeting-bar .tag { display: inline-block; background: var(--sunset); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.meeting-bar a { color: #f6c9a0; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.meetings { background: var(--sand-deep); padding: clamp(40px, 6vw, 64px) 0; }
.meetings.compact { padding: 40px 0; }
.meetings-head h2 { margin-bottom: .5em; }
.meeting-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.meeting { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 20px rgba(60,40,20,.08); }
.meeting .cal { flex: none; width: 84px; text-align: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.meeting .cal .mon { display: block; background: var(--sunset); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; padding: 4px 0; }
.meeting .cal .day { display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; color: var(--ink); padding-top: 4px; }
.meeting .cal .wd { display: block; font-size: .8rem; color: var(--ink-soft); padding-bottom: 6px; }
.meeting-body { min-width: 0; }
.meeting-body h3 { margin-bottom: .3em; }
.meeting .when-where { margin-bottom: .8em; }
.meeting .presentation { margin: 0; background: var(--sand); border-left: 4px solid var(--saguaro); padding: 10px 14px; border-radius: 0 6px 6px 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; }
.meeting .presentation span { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--saguaro); margin-bottom: 4px; }
@media (max-width: 520px) { .meeting { flex-direction: column; gap: 14px; } .meeting .cal { width: 72px; } }
/* Banner scales with window width, keeping the photo's proportions.
   When the text needs more room (narrow windows), the banner stops shrinking and the photo crops at the sides instead. */
.hero-photo { min-height: calc(100vw * 1201 / 2000); display: flex; align-items: center; background-position: center center; }
.hero-photo .wrap { width: 100%; padding-top: clamp(40px, 5vw, 88px); padding-bottom: clamp(56px, 6vw, 96px); }
.hero-photo h1 { max-width: 19ch; }
.hero-photo .wrap { padding-top: clamp(32px, 4vw, 72px); padding-bottom: clamp(40px, 4.5vw, 80px); }
@media (min-width: 901px) {
  .hero-photo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 260px); column-gap: clamp(24px, 4vw, 56px); align-items: center; }
  .hero-photo .wrap > * { grid-column: 1; min-width: 0; }
  .hero-photo .wrap > .hero-logo { position: static; grid-column: 2; grid-row: 1 / span 5; width: 100%; height: auto; }
}
/* Supervisors contact list */
.sup-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.sup { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.sup:first-child { border-top: 0; }
.sup .dist { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--saguaro); }
.sup .who em { display: block; font-style: normal; font-size: .88rem; color: var(--sunset-deep); }
.sup .tel { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sup.home-district { background: #fbf3e6; }
@media (max-width: 480px) { .sup { grid-template-columns: minmax(0, 1fr) auto; } .sup .dist { grid-column: 1 / -1; } }
.officials-feature { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 48px); align-items: start; background: var(--sand); border: 1px solid var(--line); border-top: 5px solid var(--sunset); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.officials-feature h3 { font-size: 1.5rem; }
@media (max-width: 820px) { .officials-feature { grid-template-columns: 1fr; } }
/* Conservation lands table and maps */
.table-scroll { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cls-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .97rem; }
.cls-table th, .cls-table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.cls-table thead th { border-top: 0; background: var(--saguaro-deep); color: var(--white); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.cls-table td.pct { font-family: var(--serif); font-size: 1.25rem; color: var(--saguaro-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 16px; }
.map-fig { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.map-fig img { width: 100%; height: auto; border-radius: 4px; }
.map-fig figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }
.map-fig figcaption a { white-space: nowrap; }
.map-grid { align-items: start; }
/* "We support solar" statement */
.stance { margin: 20px 0 8px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--saguaro); border-radius: 8px; padding: 16px 20px; font-size: 1.08rem; max-width: 52rem; }
.stance strong, .stance-inline strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--saguaro-deep); margin-bottom: 4px; }
.stance-inline { border-left: 4px solid var(--saguaro); padding: 4px 0 4px 16px; }

/* Three Points sub-pages */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; padding: 12px 14px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--saguaro-deep); }
.subnav a[aria-current="page"] { color: var(--saguaro-deep); border-bottom-color: var(--sunset); }
section.tp-summary { padding-top: 28px; padding-bottom: 28px; }
.tp-summary .stance { margin-top: 0; max-width: none; }
.tp-summary .facts { margin-top: 20px; }
.oppose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.oppose-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; }
.oppose-card .icon { width: 34px; height: 34px; color: var(--saguaro); margin-bottom: 8px; }
.oppose-card h3 { font-size: 1.25rem; margin-bottom: .5em; }
.oppose-card ul { margin: 0; padding-left: 1.1em; font-size: .97rem; line-height: 1.5; }
.oppose-card li { margin-bottom: .45em; }
.oppose-card li:last-child { margin-bottom: 0; }
.oppose-card .more { margin-top: 12px; font-weight: 600; }
.deeper-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.deeper-card:hover { color: var(--ink); border-color: var(--saguaro); box-shadow: 0 4px 14px rgba(43,36,32,.08); }
.deeper-card p { color: var(--ink-soft); margin-bottom: .6em; }
.deeper-card .more { color: var(--sunset-deep); font-weight: 600; }
.sources-details summary { display: flex; align-items: baseline; gap: 16px; cursor: pointer; list-style: none; }
.sources-details summary::-webkit-details-marker { display: none; }
.sources-details summary h2 { margin: 0; }
.sources-details summary span { color: var(--sunset-deep); font-weight: 600; font-size: .95rem; }
.sources-details summary span::after { content: " \25BE"; }
.sources-details[open] summary span::after { content: " \25B4"; }
.sources-details[open] summary { margin-bottom: 14px; }
@media (max-width: 760px) { .oppose-grid { grid-template-columns: 1fr; } }
.alt .oppose-card, .alt .deeper-card { background: var(--sand); }
section.sources-section { padding-top: 40px; padding-bottom: 40px; }
.sources-section .wrap.prose { max-width: var(--max); }
.sources-section .wrap.prose > details > :not(summary) { max-width: 52rem; }
#why-we-oppose { padding-top: 56px; }
section:has(+ .sources-section) { padding-bottom: 32px; }
section.sources-section { padding-top: 24px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; gap: 10px; } .fact { padding: 12px 14px; } .fact strong { font-size: 1.5rem; } }
