/* Highland Patriots — Phase 1. Site-owned styles; no core template files changed. */
:root {
  --hp-navy: #173653;
  --hp-blue: #2164a3;
  --hp-ink: #233c50;
  --hp-muted: #53697a;
  --hp-line: #dce5ec;
  --hp-pale: #f2f7fb;
  --cassiopeia-color-primary: #173653;
  --cassiopeia-color-link: #2164a3;
  --cassiopeia-color-hover: #174b7c;
  --link-color: #2164a3;
  --link-hover-color: #174b7c;
  --body-color: #233c50;
  --body-bg: #fff;
  --cassiopeia-font-family-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --cassiopeia-font-family-headings: system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { background: #fff; color: var(--hp-ink); line-height: 1.65; }
h1,h2,h3 { color: var(--hp-navy); letter-spacing: -.035em; line-height: 1.18; }
a { text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid #a33e43; outline-offset: 4px; border-radius: 3px; }
.container-header { background: #fff; background-image: none; box-shadow: none; border-top: 4px solid var(--hp-navy); border-bottom: 1px solid var(--hp-line); }
.container-header > .grid-child { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
.container-header .navbar-brand { padding: 25px 0 22px; margin: 0; white-space: normal; }
.container-header .navbar-brand a { color: var(--hp-navy); font-size: clamp(1.6rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.container-header .navbar-brand a::before { content: ""; display: inline-block; width: 8px; height: 26px; margin-right: 12px; background: #a33e43; border-radius: 2px; vertical-align: -1px; }
.container-header .site-description { color: var(--hp-muted); font-size: .8rem; letter-spacing: .06em; margin-top: 2px; margin-left: 20px; }
.container-header .container-nav { border-top: 1px solid var(--hp-line); padding-top: 0; padding-bottom: 0; }
.container-header .container-nav nav { width: 100%; padding: 0; }
.container-header .navbar-collapse { width: 100%; }
.container-header .mod-menu { color: var(--hp-navy); margin: 0; }
#hp-main-menu { width: 100%; gap: 0; padding: 0; }
#hp-main-menu > li { padding: 0; margin: 0; }
#hp-main-menu > li > a { padding: 18px 10px; font-size: .875rem; font-weight: 650; white-space: nowrap; }
#hp-main-menu a, #hp-main-menu button { color: var(--hp-navy); }
#hp-main-menu > li > button { padding: 18px 7px 18px 0; margin: 0; min-width: 24px; }
#hp-main-menu > li.active > a, #hp-main-menu > li > a:hover { color: var(--hp-blue); }
#hp-main-menu > li > a::after, #hp-main-menu > li > button::before { display: none; }
#hp-main-menu > li.active { box-shadow: inset 0 -3px var(--hp-blue); }
#hp-main-menu > li > ul { border: 1px solid var(--hp-line); border-radius: 0 0 8px 8px; box-shadow: 0 12px 24px #17365312; padding: 8px; min-width: 225px; background: #fff; }
#hp-main-menu > li > ul a { padding: 10px 12px; font-size: .9rem; white-space: normal; }
#hp-main-menu > li > ul a:hover, #hp-main-menu > li > ul a:focus { background: var(--hp-pale); }
.container-header .navbar-toggler { color: var(--hp-navy); border: 1px solid var(--hp-line); margin: 10px 0; padding: 10px 12px; }
.container-header .navbar-toggler::after { content: "Menu"; font-size: .9rem; margin-left: 8px; font-weight: 650; }
.site-grid { max-width: 1200px; margin: 0 auto; grid-template-columns: [full-start] minmax(0,1fr) [main-start] repeat(4,minmax(0,19.875rem)) [main-end] minmax(0,1fr) [full-end]; column-gap: 0; }
.container-component { padding: 0 24px; min-width: 0; }
.hp-home-page .container-component { margin-top: 0; }
.hp-home-page .blog-item, .hp-home-page .item-content { padding: 0; }
.hp-home-page .blog-items { margin: 0; }
.hp-home-page .blog-featured { margin: 0; }
.hp-eyebrow { color: var(--hp-blue); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 16px; }
.hp-hero { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 65px; padding: 60px 0 52px; align-items: center; border-bottom: 1px solid var(--hp-line); }
.hp-hero h1 { font-size: clamp(2.7rem,5vw,4.35rem); font-weight: 800; letter-spacing: -.055em; margin: 0 0 22px; line-height: 1.06; }
.hp-hero h1 span { color: var(--hp-blue); }
.hp-lead { color: var(--hp-muted); font-size: 1.12rem; max-width: 650px; line-height: 1.75; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hp-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--hp-blue); color: #fff; border: 1px solid var(--hp-blue); border-radius: 5px; padding: 12px 17px; text-decoration: none; font-size: .875rem; font-weight: 650; }
.hp-button:hover { color: #fff; background: #174b7c; }
.hp-button-light { color: var(--hp-navy); background: #fff; border-color: var(--hp-line); }
.hp-button-light:hover { color: var(--hp-navy); background: var(--hp-pale); }
.hp-hero-aside { background: var(--hp-pale); border: 1px solid #e1eaf2; border-top: 4px solid var(--hp-blue); border-radius: 7px; padding: 30px; }
.hp-hero-aside h2 { font-size: 1.8rem; margin-bottom: 22px; }
.hp-hero-aside ul { padding-left: 20px; margin-bottom: 22px; font-size: .9rem; }
.hp-hero-aside li { padding: 7px 0; }
.hp-hero-aside li::marker { color: var(--hp-blue); }
.hp-aside-note { padding-top: 18px; margin: 0; border-top: 1px solid var(--hp-line); font-size: .8rem; color: var(--hp-muted); }
.hp-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 42px 0 23px; }
.hp-section-heading .hp-eyebrow { margin-bottom: 9px; }
.hp-section-heading h2, .hp-explore h2 { font-size: clamp(1.6rem,3vw,2rem); margin: 0; }
.hp-section-heading > p { color: var(--hp-muted); font-size: .825rem; margin: 0; }
.hp-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.hp-feature { padding: 29px 30px; border: 1px solid var(--hp-line); border-radius: 7px; display: flex; flex-direction: column; align-items: start; }
.hp-card-label { color: var(--hp-blue); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; margin-bottom: 12px; }
.hp-feature h3 { font-size: 1.4rem; margin-bottom: 12px; }
.hp-feature > p:not(.hp-card-label) { color: var(--hp-muted); font-size: .94rem; max-width: 470px; }
.hp-feature > .hp-text-link { margin-top: auto; padding-top: 12px; }
.hp-text-link { color: var(--hp-blue); font-size: .9rem; font-weight: 700; text-decoration: none; }
.hp-text-link:hover { text-decoration: underline; }
.hp-text-link span { display: inline-block; padding-left: 4px; }
.hp-empty { background: var(--hp-pale); border-left: 3px solid #8db1d2; padding: 14px 17px; margin: 4px 0 16px; width: 100%; border-radius: 0 4px 4px 0; font-size: .88rem; }
.hp-empty strong { color: var(--hp-navy); }
.hp-empty p { margin: 4px 0 0; color: var(--hp-muted); }
.hp-muted { color: var(--hp-muted); }
.hp-sales { background: #f9fbfd; }
.hp-explore { padding: 48px 0 56px; }
.hp-explore > .hp-eyebrow { margin-bottom: 9px; }
.hp-entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 25px; border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); }
.hp-entry-grid > section { padding: 25px 26px; }
.hp-entry-grid > section:first-child { padding-left: 0; }
.hp-entry-grid > section:last-child { padding-right: 0; }
.hp-entry-grid > section + section { border-left: 1px solid var(--hp-line); }
.hp-number { font-size: .75rem; color: var(--hp-blue); font-weight: 700; letter-spacing: .08em; }
.hp-entry-grid h3 { font-size: 1.2rem; margin: 11px 0; }
.hp-entry-grid p { font-size: .875rem; color: var(--hp-muted); }
.footer { background: var(--hp-pale); background-image: none; color: var(--hp-navy); border-top: 1px solid var(--hp-line); margin-top: 0; }
.footer .grid-child { width: 100%; max-width: 1200px; padding: 30px 24px; }
.hp-footer-module, .footer .mod-custom { width: 100%; }
.hp-footer { display: flex; justify-content: space-between; gap: 25px; width: 100%; }
.hp-footer strong { font-size: 1.25rem; letter-spacing: -.035em; }
.hp-footer p { color: var(--hp-muted); font-size: .8rem; margin: 7px 0 0; }
.footer .hp-text-link { color: var(--hp-blue); }
.breadcrumb { background: transparent; font-size: .8rem; margin: 22px 0 0; padding: 0; }
.hp-page { max-width: 100%; padding: 38px 0 65px; min-height: 50vh; }
.hp-page > h1 { font-size: clamp(2.1rem,5vw,3.35rem); font-weight: 800; margin-bottom: 18px; }
.hp-page > .hp-lead { max-width: 760px; margin-bottom: 35px; }
.hp-topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.hp-topic { border: 1px solid var(--hp-line); border-radius: 7px; padding: 25px; }
.hp-topic h2 { margin: 0 0 12px; font-size: 1.25rem; }
.hp-topic h2 a { font-size: inherit; }
.hp-topic p { color: var(--hp-muted); margin: 0; }
.hp-notice { max-width: 800px; border-left: 3px solid var(--hp-blue); background: var(--hp-pale); border-radius: 0 6px 6px 0; padding: 25px; }
.hp-notice p { margin: 0; }
@media (min-width: 1100px) {
  #hp-main-menu { display: flex; flex-direction: row; flex-wrap: nowrap; }
  #hp-main-menu > li:last-child { margin-left: auto; }
}
/* Keep all eight main items on one desktop row; collapse before they become crowded. */
@media (min-width: 992px) and (max-width: 1099.98px) {
  .container-header .navbar-expand-lg { flex-wrap: wrap; }
  .container-header .navbar-expand-lg .navbar-toggler { display: block; }
  .container-header .navbar-expand-lg .navbar-collapse { flex-basis: 100%; }
  .container-header .navbar-expand-lg .navbar-collapse:not(.show) { display: none !important; }
}
@media (max-width: 1099.98px) {
  #hp-main-menu { flex-direction: column; padding: 4px 0 14px; }
  #hp-main-menu > li { width: 100%; }
  #hp-main-menu > li > a { padding: 12px 10px; flex: 1; }
  #hp-main-menu > li > button { padding: 12px; min-width: 44px; }
  #hp-main-menu > li > ul { position: static; width: 100%; box-shadow: none; margin: 0 0 8px; }
  #hp-main-menu > li.active { box-shadow: none; background: var(--hp-pale); border-radius: 4px; }
  .hp-hero { gap: 30px; }
}
@media (max-width: 767.98px) {
  .container-header > .grid-child, .container-component { padding-left: 20px; padding-right: 20px; }
  .container-header .navbar-brand { padding: 21px 0 18px; }
  .hp-hero { grid-template-columns: 1fr; gap: 28px; padding: 34px 0; }
  .hp-hero h1 { font-size: clamp(2.55rem,9vw,3.6rem); }
  .hp-lead { font-size: 1rem; }
  .hp-hero-aside { padding: 24px; }
  .hp-hero-aside h2 br { display: none; }
  .hp-hero-aside h2 { font-size: 1.5rem; }
  .hp-section-heading { display: block; padding-top: 32px; }
  .hp-section-heading > p { margin-top: 14px; }
  .hp-section-heading > p br { display: none; }
  .hp-feature-grid, .hp-topic-grid, .hp-entry-grid { grid-template-columns: 1fr; }
  .hp-feature { padding: 24px; }
  .hp-entry-grid > section, .hp-entry-grid > section:first-child, .hp-entry-grid > section:last-child { padding: 23px 0; }
  .hp-entry-grid > section + section { border-left: 0; border-top: 1px solid var(--hp-line); }
  .hp-explore { padding: 35px 0; }
  .hp-footer { flex-direction: column; gap: 20px; }
  .hp-page { padding: 28px 0 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Preserve a clear keyboard focus indicator over the native menu defaults. */
#hp-main-menu a:focus-visible, #hp-main-menu button:focus-visible { outline: 3px solid #a33e43; outline-offset: 2px; }
#hp-main-menu a:focus:not(:focus-visible), #hp-main-menu button:focus:not(:focus-visible) { outline: none; }

/* Phase 2 — header identity, calm community surfaces, and a reserved Highland photo area. */
.hp-brand-module { width: 100%; }
.hp-brand { display: inline-flex; align-items: center; gap: 18px; padding: 17px 0; color: var(--hp-navy); text-decoration: none; }
.hp-brand:hover { color: var(--hp-navy); text-decoration: none; }
.hp-brand picture { display: block; flex: 0 0 80px; }
.hp-header-art { display: block; width: 80px; height: auto; }
.hp-brand-copy { display: flex; flex-direction: column; gap: 3px; }
.hp-brand-name { font-size: 2rem; line-height: 1.2; font-weight: 800; letter-spacing: -.055em; }
.hp-brand-tagline { font-size: .78rem; color: var(--hp-muted); letter-spacing: .035em; }
.hp-home { isolation: isolate; }
.hp-hero { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 46px; border-bottom: 0; padding: 44px 0 48px; }
.hp-hero h1 { font-size: clamp(2.7rem,4.65vw,4.1rem); }
.hp-hero > div:first-child > .hp-eyebrow::before { content: ""; width: 24px; height: 3px; background: #a33e43; display: inline-block; vertical-align: middle; margin-right: 10px; }
.hp-place-label { display: flex; align-items: center; gap: 9px; color: var(--hp-muted); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hp-place-dot { display: inline-block; height: 6px; width: 6px; border-radius: 50%; background: #a33e43; }
.hp-community-band { position: relative; padding: 0 28px 38px; background: #f3f7fa; border: 1px solid #e4ebf0; border-radius: 8px; }
.hp-section-heading { padding-top: 34px; }
.hp-section-heading h2 { position: relative; }
.hp-feature-grid { gap: 18px; }
.hp-feature { background: #fff; border-color: #dce5ec; padding: 26px; }
.hp-card-label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hp-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 7px; color: var(--hp-blue); background: #edf4fa; }
.hp-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hp-sales .hp-icon { color: #984449; background: #faf0f0; }
.hp-empty { background: #f3f7fa; border-left-color: #789dbf; }
.hp-explore { padding-top: 40px; padding-bottom: 44px; }
.hp-entry-grid { margin-top: 25px; }
.hp-entry-grid h3 { margin-top: 17px; }
.hp-entry-grid > section { padding-top: 26px; padding-bottom: 26px; }
.footer { border-top: 2px solid #dce5ec; }
@media (max-width: 1099.98px) {
  .hp-hero { gap: 28px; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
}
@media (max-width: 767.98px) {
  .hp-brand { gap: 12px; padding: 13px 0; }
  .hp-brand picture { flex-basis: 56px; }
  .hp-header-art { width: 56px; }
  .hp-brand-name { font-size: clamp(1.15rem,5.1vw,1.55rem); }
  .hp-brand-tagline { font-size: .62rem; letter-spacing: 0; }
  .container-header .container-nav nav { margin-top: 0; }
  .hp-hero { grid-template-columns: 1fr; gap: 27px; padding: 31px 0 34px; }
  .hp-hero h1 { font-size: clamp(2.55rem,9vw,3.6rem); }
  .hp-community-band { padding: 0 18px 30px; }
  .hp-feature { padding: 23px; }
  .hp-explore { padding-top: 32px; padding-bottom: 30px; }
}

/* Hero photography: reserved for 3–5 originals, with no carousel runtime until selection. */
.hp-photo-stage { min-width: 0; aspect-ratio: 4 / 3; display: grid; align-items: center; background: #edf3f7; border: 1px solid #dce5ec; border-radius: 8px; border-top: 3px solid #83a4bf; }
.hp-photo-awaiting { padding: 30px; }
.hp-photo-awaiting h2 { font-size: clamp(1.8rem,2.8vw,2.35rem); margin: 25px 0 18px; }
.hp-photo-awaiting > p:not(.hp-place-label) { color: var(--hp-muted); font-size: .92rem; }
.hp-photo-awaiting .hp-photo-status { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #d2dfe9; font-size: .76rem; }
/* Future slides fit this stable frame. Add meaningful alt text when photographs arrive. */
.hp-photo-stage .hp-photo-slide { grid-area: 1 / 1; margin: 0; width: 100%; }
.hp-photo-stage .hp-photo-slide[hidden] { display: none; }
.hp-photo-stage .hp-photo-slide img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 7px; }
@media (max-width: 767.98px) {
  .hp-photo-stage { width: 100%; aspect-ratio: auto; min-height: 280px; }
  .hp-photo-awaiting { padding: 25px; }
  .hp-photo-awaiting h2 { font-size: 1.8rem; margin: 21px 0 14px; }
}
/* Cassiopeia's header link colors must not override the light-background wordmark. */
.container-header .hp-brand, .container-header .hp-brand:hover, .hp-brand-name { color: var(--hp-navy); }
