/* caliparc.com look, loaded after the shared site.css (SITE_CSS in site.py). Calm and light (Dean 2026-10-07: "calm and
   cool and nothing crazy"): white header for the California Palms logo, sea teal actions, mist and sand bands,
   Lora headings, soft rounded cards, photos of the campus doing the talking. */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --sea: #1f6f78;
  --sea-hover: #185c64;
  --sea-deep: #154c54;
  --sea-night: #11343b;
  --mist: #eef6f5;
  --mist-2: #e1eeec;
  --sand: #f7f2ea;
  --sky: #a9dcd8;
  --ink: #11343b;
  --ink-2: #154c54;
  --ink-3: #1d5a63;
  --paper: #ffffff;
  --paper-2: #f3f8f7;
  --surface: #ffffff;
  --line: #d8e5e3;
  --text: #2a3b43;
  --muted: #5a6a71;
  --teal: #1f6f78;
  --teal-ink: #1f6f78;
  --magenta: #b4532a;
  --heading: #1c3340;
  --link: #1f6f78;
  --link-hover: #11343b;
  --accent-text: #1f6f78;
  --card-dark: #154c54;
  --card-dark-line: transparent;
  --chip-on-bg: #1f6f78;
  --chip-on-text: #ffffff;
  --shadow: rgba(17,52,59,.10);
  --on-dark: #eef6f5;
  --on-dark-muted: #b6d1cf;
  --radius: 14px;
  --head: "Lora", Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { font-weight: 600; letter-spacing: 0; }
h4, h5, h6 { font-family: var(--head); font-weight: 600; }
.prose h5 { font-size: 1.15rem; }
:focus-visible { outline-color: var(--sea); }
.site-footer :focus-visible, .band-sea :focus-visible, .contact-hero :focus-visible, .cta-card :focus-visible { outline-color: var(--sky); }
.skip { background: var(--sea); color: #fff; }
.ico { flex: none; }

/* buttons: soft pills */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--sea); border-color: var(--sea); color: #fff;
  font: 600 1rem/1 var(--ui); padding: .95em 1.4em; }
.btn:hover { background: var(--sea-hover); border-color: var(--sea-hover); color: #fff; }
.btn-line { background: transparent; color: var(--sea); border-color: var(--sea); }
.btn-line:hover { background: var(--mist); color: var(--sea-hover); border-color: var(--sea-hover); }
.more { font-family: var(--ui); color: var(--sea); }

/* header: white for the logo, a mist strip with the phone above */
.site-header { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(17,52,59,.05); }
.topbar { background: var(--mist); border-bottom: 1px solid var(--line); font-size: .9rem; }
.topbar-row { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 6px; padding-bottom: 6px; }
.topbar-label, .topbar-link { display: none; }
.topbar-link { color: var(--sea); }
.topbar-phone { font: 700 1.05rem/1 var(--ui); color: var(--sea-deep); text-decoration: none; letter-spacing: .01em; }
.topbar-phone:hover { color: var(--sea); }
.header-row { min-height: 76px; }
.brand img { width: 124px; }
.site-nav a { color: var(--heading); font: 600 .97rem/1 var(--ui); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--sea); }
.site-nav .btn-call { color: #fff; }
.nav-toggle span:not(.vh) { background: var(--heading); }
.nav-open .site-nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(17,52,59,.08); }
.nav-open .site-nav li a { border-bottom-color: var(--line); }
@media (min-width: 700px) {
  .topbar-row { justify-content: flex-end; }
  .topbar-label { display: inline; color: var(--muted); margin-right: auto; }
  .topbar-link { display: inline; }
}
@media (min-width: 900px) {
  .brand img { width: 150px; }
  .header-row { min-height: 88px; }
  .site-nav { gap: 22px; }
  .site-nav ul { gap: 20px; }
  .site-nav .btn-call { display: none; }
}
@media (min-width: 900px) and (max-width: 1099px) { .site-nav ul { gap: 14px; } .site-nav a { font-size: .9rem; } .brand img { width: 130px; } }
@media (min-width: 1280px) { .site-nav .btn-call { display: inline-flex; } }

/* home hero: deep sea teal with a soft light, the campus photo beside the title, a wave into the page */
.hero-calm { position: relative; color: var(--on-dark); border-bottom: 0;
  background: radial-gradient(ellipse at 88% 0%, rgba(169,220,216,.28), transparent 55%),
              radial-gradient(ellipse at 0% 100%, rgba(42,138,144,.35), transparent 50%),
              linear-gradient(135deg, var(--sea-night) 0%, var(--sea-deep) 45%, var(--sea) 100%); }
.hero-calm::before { display: none; }
.hero-calm::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 34C240 4 480 2 720 26s480 30 720-4v34H0z' fill='%23ffffff'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.hero-calm .hero-grid { padding-top: 36px; padding-bottom: 76px; gap: 28px; align-items: center; }
.hero-calm .eyebrow { color: var(--sky); font-family: var(--ui); letter-spacing: .06em; }
.hero-calm h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.05rem); line-height: 1.12; max-width: 17ch; margin-bottom: .6em; }
.hero-calm .hero-cta { padding-bottom: 0; }
.hero-calm .btn { background: #fff; border-color: #fff; color: var(--sea-deep); }
.hero-calm .btn:hover { background: var(--mist); border-color: var(--mist); color: var(--sea-night); }
.hero-calm .btn-line { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.hero-calm .btn-line:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.hero-calm .hero-photo { margin: 0; max-width: none; justify-self: stretch; align-self: center; }
.hero-calm .hero-photo img { width: 100%; border-radius: 22px; border: 4px solid rgba(255,255,255,.85); box-shadow: 0 26px 60px rgba(4,20,24,.45); filter: none; }
@media (min-width: 900px) {
  .hero-calm .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding-top: 60px; padding-bottom: 104px; gap: 56px; }
  .hero-calm .hero-copy { padding: 0; }
}

/* bands */
.band { padding: 56px 0; }
.band-alt { background: var(--paper-2); border-top: 0; }
.band-sand { background: var(--sand); }
.band-mist { background: var(--mist); }
.band-deep { background: linear-gradient(160deg, var(--sea-night) 0%, var(--sea-deep) 100%); color: var(--on-dark); }
.band-deep h2 { color: #fff; }
.band-deep .more { color: var(--sky); }
.band-deep .more:hover { color: #fff; }
.band-deep .card a { border-color: transparent; }
.band-deep .card a:hover { box-shadow: 0 16px 34px rgba(0,0,0,.3); }
.band-sea { background: var(--sea-deep); color: var(--on-dark); }
.band-sea h2 { color: #fff; }
.band-sea a { color: var(--sky); }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.9rem); }

/* page title band: the hero's deep sea teal */
.page-head { color: var(--on-dark); border-bottom: 0; padding: 36px 0 32px;
  background: radial-gradient(ellipse at 90% 0%, rgba(169,220,216,.22), transparent 55%),
              linear-gradient(120deg, var(--sea-night) 0%, var(--sea-deep) 50%, var(--sea) 100%); }
.page-head h1 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); line-height: 1.15; max-width: 30ch; }
.page-head a { color: var(--sky); }
.page-head a:hover { color: #fff; }
.page-head .crumbs, .page-head .lede, .page-head .pmeta, .page-head .vmeta { color: #cfe4e2; }
.lib-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.lib-tabs a { font: 600 .92rem/1 var(--ui); padding: .65em 1.1em; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--heading); text-decoration: none; }
.lib-tabs a span { color: var(--muted); font-weight: 400; }
.lib-tabs a[aria-current] { background: var(--sea); border-color: var(--sea); color: #fff; }
.lib-tabs a[aria-current] span { color: inherit; opacity: .8; }
.band > .wrap > .lib-tabs { margin: 0 0 26px; }

/* text */
.prose a { color: var(--sea); }
.prose a:hover { color: var(--sea-night); }
.prose img { border-radius: 12px; }
.prose blockquote { border-left-color: var(--sea); font-family: var(--head); font-style: italic; color: var(--text); }
.prose-wide { max-width: none; }
.prose-wide .yt, .prose-wide video.mp4 { max-width: 860px; }
.prose .yt img { margin: 0; border-radius: 0; }  /* site.css gives prose images a margin, which showed as a black band */
.prose img[src*="goldseal"], .prose img[src*="mhasbanner"], .prose img[src*="/download-"] { max-width: 180px; }
.prose img[src*="veterans-recovery-center-transparent-web"] { max-width: 300px; }  /* the site's logo inside page texts */
.prose video.mp4 { display: block; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; margin: 1.4em 0; }
.prose .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
@media (max-width: 599px) { .prose .gallery, .prose-wide .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } }
.prose-wide .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.prose .gallery figure { background: none; border: 0; padding: 0; border-radius: 12px; overflow: hidden; }
.prose .gallery img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); border-radius: 12px; cursor: zoom-in; transition: transform .25s, opacity .25s; }
.prose .gallery img:hover { opacity: .92; }
.prose a[href*="/assets/img/"] img { cursor: zoom-in; }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.card a:hover { box-shadow: 0 14px 30px var(--shadow); transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 3 / 2; background: var(--mist); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: block; padding: 16px 18px 20px; }
.card-title { display: block; font: 600 1.15rem/1.3 var(--head); color: var(--heading); margin-bottom: .35em; }
.card a:hover .card-title { color: var(--sea); }
.card-text { display: block; font-size: .94rem; color: var(--muted); }
.pcard a { border-radius: var(--radius); }
.pcard a:hover { border-color: var(--sea); }
.pcard .pmeta { font-family: var(--ui); color: var(--sea); }
.ptitle, .vtitle { font-family: var(--head); font-weight: 600; }
.mini-v .vtitle { font: 600 .9rem/1.3 var(--ui); }
.vcard .thumb { border-radius: 12px; }
.vcard a:hover .play { background: var(--sea); }
.prevnext a { border-radius: var(--radius); }
.prevnext a:hover { border-color: var(--sea); }
.chip { font-family: var(--ui); }
.filter-bar input { border-color: var(--line); }

/* amenity tiles: photo with its name */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.tile a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tile a:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font: 600 1.05rem/1.2 var(--head);
  background: linear-gradient(transparent, rgba(17,52,59,.78)); }

/* sidebar */
.cta-card { background: var(--sea-deep); border-radius: var(--radius); }
.cta-card .btn { background: #fff; border-color: #fff; color: var(--sea-deep); }
.cta-card .btn:hover { background: var(--mist); border-color: var(--mist); }
.cta-card a:not(.btn) { color: var(--sky); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.side-card h2 { font-family: var(--head); }
.sec-nav ul { list-style: none; margin: 0; padding: 0; }
.sec-nav li a { display: block; padding: .45em 0 .45em 12px; border-left: 2px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; }
.sec-nav li:first-child a { font-weight: 600; color: var(--heading); }
.sec-nav li a:hover { color: var(--sea); border-left-color: var(--sea); }
.sec-nav li a[aria-current] { color: var(--sea); border-left-color: var(--sea); font-weight: 600; }
.ins-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; font-size: .94rem; }
.ins-list span { display: block; font: 700 .74rem/1.4 var(--ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

/* treatment programs page */
.progs { display: grid; gap: 34px; }
.prog { display: grid; gap: 18px; align-items: center; }
.prog-img { display: block; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: var(--mist); }
.prog-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prog-body h2 { margin: 0 0 .4em; }
.prog-body h2 a { color: var(--heading); text-decoration: none; }
.prog-body h2 a:hover { color: var(--sea); }
.prog-body p { margin: 0 0 1em; color: var(--text); }
.chips-links { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-links a { display: inline-block; font-size: .88rem; padding: .45em .85em; border-radius: 999px; background: var(--mist); color: var(--sea-deep); text-decoration: none; }
.chips-links a:hover { background: var(--mist-2); }
@media (min-width: 860px) {
  .progs { gap: 48px; }
  .prog { grid-template-columns: 1fr 1.2fr; gap: 40px; }
  .prog-flip .prog-img { order: 2; }
}
.link-cols { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 28px; }
.link-cols li { break-inside: avoid; padding: .3em 0; }

/* message row and contact */
.contact-split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-split { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.contact-intro p { color: var(--on-dark); }
.contact-intro .small { color: var(--on-dark-muted); font-size: .95rem; }
.form-card { background: #fff; color: var(--text); border-radius: 18px; padding: 24px; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.form-card .contact-form input, .form-card .contact-form textarea { border-radius: 10px; }
.contact-hero { position: relative; color: #fff; padding: 64px 0 56px; background: linear-gradient(90deg, rgba(17,52,59,.88), rgba(17,52,59,.55)), var(--bg) center / cover; }
.contact-hero h1 { color: #fff; margin: .1em 0 .3em; }
.contact-hero .crumbs, .contact-hero .lede { color: #dbeceb; }
.contact-hero a { color: #fff; }
.info-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 800px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { display: grid; gap: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card .ico { color: var(--sea); }
.info-label { font: 700 .76rem/1.4 var(--ui); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.info-value { font: 600 1.25rem/1.3 var(--head); color: var(--heading); text-decoration: none; overflow-wrap: anywhere; }
a.info-value:hover { color: var(--sea); }
.info-note { color: var(--muted); font-size: .93rem; }
.form-note.ok { border-color: var(--sea); }

/* footer */
.site-footer { background: var(--sea-night); border-top: 0; color: var(--on-dark-muted); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--sky); }
.footer-grid > div:first-child img { background: #fff; padding: 10px 14px; border-radius: 14px; width: 190px; height: auto; }
.foot-h { font: 600 1.15rem/1.2 var(--head); text-transform: none; letter-spacing: 0; }
.foot-nav { columns: 2; column-gap: 20px; display: block; }
.foot-nav li { padding: 3px 0; }
.foot-note { font-size: .88rem; }

/* gallery lightbox (lightbox.js) */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(9,28,32,.92); display: grid; place-items: center; padding: 56px 12px; }
.lb img { max-width: min(100%, 1400px); max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%;
  font: 400 28px/1 var(--ui); cursor: pointer; display: grid; place-items: center; }
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,.25); }
.lb .lb-close { top: 12px; right: 12px; }
.lb .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfe3e1; font-size: .9rem; }
