/* Shared refinements. Keep these rules separate from the original compressed theme CSS. */
:root { --muted: #52627a; }
html { font-size: 16px; }
body { line-height: 1.55; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; fill: none; }

/* Compact navigation with usable click, touch and keyboard disclosure controls. */
.nav-inner { gap: 24px; }
.main-nav { gap: 6px; font-size: 14px; }
.main-nav > a, .nav-dropdown > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.nav-dropdown > summary { list-style: none; font-weight: 700; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary:hover, .nav-dropdown[open] > summary { background: #f3f6fa; }
.nav-dropdown > summary .icon { width: 15px; height: 15px; transition: transform .2s; }
.nav-dropdown[open] > summary .icon { transform: rotate(180deg); }
.nav-dropdown:not([open]) .dropdown-panel { display: none !important; }
.nav-dropdown[open] .dropdown-panel { display: block; top: calc(100% + 5px); min-width: 260px; z-index: 30; }
.dropdown-panel a { font-size: 14px; font-weight: 600; line-height: 1.35; }
.dropdown-panel small { font-size: 12px; }
.nav-toggle { align-items: center; gap: 8px; color: var(--navy); font: 700 14px 'DM Sans', sans-serif; }
.nav-toggle .icon { width: 25px; height: 25px; }
.nav-toggle b { display: inline; }

/* Readable type across every card and page. */
.eyebrow, .school-pin, .contact-tag, .news-date { font-size: 12px; }
.hero-tags span, .quick-card small, .service-number, .territory-content > span,
.featured-news-body > span, .mini-news-list small, .gallery-card span,
.highlight span, .values-grid article span, .fact-card span,
.footer-bottom-inner { font-size: 12px; }
.footer-bottom-inner { flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-credit a { display: inline; margin: 0; font-size: inherit; color: #d7e5f5; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a { font-size: inherit; color: #d7e5f5; }
.quick-card b, .service-card b, .text-link, .section-heading.light > a,
.territory-content strong, .featured-news-body a, .news-card a,
.mini-news-list span, .school-card a, .restaurant-card a,
.document-card a, .site-footer a, .pending-link { font-size: 14px; }
.service-card p, .territory-content p, .featured-news-body p,
.school-card p, .restaurant-card p, .document-card p,
.contact-card p, .highlight p, .mini-card p, .values-grid article p,
.news-card p, .fact-card p, .footer-brand p, .contact-card address,
.tool-card small, .values-row span { font-size: 15px; line-height: 1.65; }
.values-row b { font-size: 16px; }
.values-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.values-row > div { padding: 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 16px; background: rgba(15,75,104,.16); }
.service-card { min-height: 340px; }
.territory-card { min-height: 420px; }
.section-heading > p, .territory-header p { font-size: 16px; }
.prose { font-size: 17px; line-height: 1.75; }
.prose p, .prose li { max-width: 75ch; }
.prose h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.25; margin-top: 1.6em; }
.prose h3 { font-size: 21px; line-height: 1.35; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.prose th, .prose td { min-width: 150px; white-space: normal; font-size: 15px; }
.prose tr:nth-child(even) { background: #f8fbff; }
.btn, .back-link { font-size: 14px; }
.btn .icon, .text-link .icon, .back-link .icon, .service-card b .icon,
.territory-content strong .icon, .featured-news-body a .icon,
.news-card a .icon, .school-card a .icon, .document-card a .icon { margin-left: 4px; }

/* Consistent icon treatments. */
.quick-card > span .icon { width: 23px; height: 23px; color: var(--navy); }
.quick-card em .icon { width: 19px; height: 19px; }
.service-emoji { display: inline-flex; align-items: center; }
.service-emoji .icon { width: 29px; height: 29px; color: var(--navy); }
.service-hero-art { width: 135px; height: 135px; border-radius: 35px; display: grid; place-items: center; background: #fff0bf; color: var(--navy); box-shadow: var(--shadow); }
.hero-spark { flex: 0 0 135px; overflow: hidden; overflow-wrap: anywhere; padding: 10px; }
.hero-spark strong { font-size: clamp(13px, 1.4vw, 20px); line-height: 1.2; }
.page-hero-inner > div:first-child { min-width: 0; }
.page-hero h1 { overflow-wrap: anywhere; }
.service-hero-art .icon, .food-art .icon, .contact-bubble .icon { width: 52px; height: 52px; }
.mini-icon .icon { width: 21px; height: 21px; }
.restaurant-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #e8f7ee; color: var(--navy); }
.restaurant-icon .icon { width: 24px; height: 24px; }
.tool-card span .icon { width: 28px; height: 28px; }
.masonry-grid span .icon, .mini-news-list span .icon { width: 18px; height: 18px; }

/* Service highlights need hierarchy and color, especially in long text sections. */
.highlight-grid { gap: 18px; }
.highlight { min-height: 240px; padding: 27px; border: 1px solid #f1dfb1; background: #fff8e7; }
.highlight:nth-child(5n+2) { background: #fff0eb; border-color: #f1d7cd; }
.highlight:nth-child(5n+3) { background: #f1efff; border-color: #dedaf6; }
.highlight:nth-child(5n+4) { background: #eaf8f2; border-color: #cfe9db; }
.highlight:nth-child(5n+5) { background: #eaf5ff; border-color: #cfe2f3; }
.highlight span { display: inline-block; background: #fff; border-radius: 999px; padding: 5px 10px; color: var(--navy); }
.highlight h3 { margin: 19px 0 10px; font-size: 22px; line-height: 1.25; }
.highlight p { margin: 0; color: #43536b; }

/* Timeline: dates have their own stable column and never collide with headings. */
.history-wrap { max-width: 1040px; }
.timeline { display: grid; gap: 16px; margin: 0 0 55px; border: 0; }
.timeline .timeline-item { display: grid; grid-template-columns: minmax(160px, 190px) minmax(0, 1fr); align-items: start; gap: 24px; margin: 0; padding: 26px 30px; border: 1px solid var(--line); border-radius: 22px; background: #f8fbff; }
.timeline .timeline-item:nth-child(even) { background: #f6faf7; }
.timeline .timeline-item::before { display: none; }
.timeline-date { justify-self: start; max-width: 100%; padding: 8px 12px; border-radius: 11px; background: #fff1c7; color: var(--navy); font: 800 16px/1.35 Manrope, sans-serif; overflow-wrap: anywhere; }
.timeline-content { min-width: 0; }
.timeline h2 { font-size: 22px; line-height: 1.3; margin: 0 0 7px; }
.timeline p { font-size: 16px; }
.history-prose { padding: 30px; border-radius: 24px; background: #f3f7fa; }
.history-prose h2:first-child { margin-top: 0; }

/* Office hours as scannable period tables. */
.hours-grid { gap: 20px; align-items: start; }
.hours-card { overflow: hidden; padding: 0; border-radius: 22px; box-shadow: 0 12px 35px rgba(25, 57, 111, .06); }
.hours-card-heading { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 20px 24px; background: #edf5ff; }
.hours-card:nth-child(even) .hours-card-heading { background: #eaf8f2; }
.hours-card-heading .icon { width: 25px; height: 25px; color: var(--navy); }
.hours-card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.hours-card table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours-card th, .hours-card td { padding: 13px 20px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.hours-card thead th { padding-top: 10px; padding-bottom: 10px; background: #fafcff; color: #52627a; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.hours-card tbody tr:nth-child(even) { background: #f8fafc; }
.hours-card tbody th { width: 32%; color: var(--ink); font-weight: 700; }
.hours-card td { color: #42536a; }

/* Complete the layout for secondary page types and give small sections room. */
.news-home { padding: 85px 0; }
.news-grid { display: grid; gap: 18px; }
.news-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 45px; align-items: start; }
.school-detail { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 35px; }
.detail-card, .service-side { padding: 26px; background: #f4f8fc; border: 1px solid var(--line); border-radius: 22px; }
.detail-card h2 { font-size: 20px; margin-bottom: 4px; }
.detail-card p { margin-top: 0; }
.service-side .tag { display: inline-block; margin: 8px 6px 0 0; padding: 7px 10px; border-radius: 99px; background: #e2f4ea; font-size: 13px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #2b65a4; }
.contact-card a { font-weight: 700; color: var(--navy); }
.contact-card .contact-note { margin: 8px 0 0; color: var(--muted); }
.site-footer a { overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .main-nav.is-open { top: 74px; }
  .main-nav > a, .nav-dropdown > summary { width: 100%; justify-content: space-between; }
  .nav-dropdown[open] .dropdown-panel { position: static; width: 100%; margin: 2px 0 8px; box-shadow: none; background: #f5f8fc; }
  .news-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-detail, .article-layout { grid-template-columns: 1fr; }
  .section-heading.inline { align-items: flex-start; }
  .values-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page-hero h1 { font-size: clamp(34px, 10vw, 42px); }
  .main-nav.is-open { top: 66px; }
  .timeline .timeline-item { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .timeline-date { font-size: 15px; }
  .timeline h2 { font-size: 20px; }
  .history-prose { padding: 20px; }
  .hours-card th, .hours-card td { padding: 12px; }
  .hours-card tbody th { width: 28%; }
  .news-grid-large { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: 1fr; }
  .service-card p, .territory-content p, .featured-news-body p,
  .school-card p, .restaurant-card p, .document-card p, .highlight p { font-size: 15px; }
  .contact-email .btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
}
