/* Breakpoints for everything above, plus reduced-motion.
   
   Kept together because that is how it was written; a rule moved out of
   here would change where it sits in the cascade. New component files
   below carry their own media queries instead. */

@media (min-width: 1500px) {
  .website-hero {
    padding-top: 65px;
  }
  .website-hero-copy {
    min-height: 340px;
  }
}
@media (max-width: 1200px) {
  .website-header-inner {
    gap: 15px;
  }
  .website-header nav {
    gap: 14px;
  }
  .website-brand small {
    display: none;
  }
  .website-brand img {
    width: 52px;
    height: 65px;
  }
  .website-account {
    gap: 6px;
  }
  .website-unit {
    grid-template-columns: 30% 1fr;
    gap: 25px;
  }
  .website-unit > .website-button {
    grid-column: 2;
    justify-self: start;
    margin-top: -12px;
  }
  .website-unit-photo {
    grid-row: span 2;
    height: 200px;
  }
  .website-help > .website-container {
    gap: 35px;
  }
}
@media (max-width: 900px) {
  .website-container {
    width: calc(100% - 48px);
  }
  /* The toggle sits at the inline end, past the language switcher, rather
     than between the brand and the account: space-between put it in the
     middle of the bar, where it read as part of the brand. */
  .website-header-inner {
    min-height: 88px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-block: 12px;
  }
  .website-header-inner > [data-island='menu'] {
    display: flex;
    order: 3;
  }
  .website-header .website-account {
    order: 2;
    margin-inline-start: auto;
  }
  /* Collapsed: one link per line under the brand rather than a wrapped row,
     so the open panel reads as a menu and every target is a full-width tap. */
  .website-header nav {
    display: none;
    order: 4;
    width: 100%;
    padding: 6px 0 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .website-header nav.is-open {
    display: flex;
    animation: website-nav-open 0.18s ease;
  }
  .website-header nav a,
  .website-header .website-nav-logout button {
    padding: 13px 2px;
    border-bottom: 1px solid transparent;
  }
  .website-header nav a:not(:last-child) {
    border-bottom-color: #f1f5f3;
  }
  .website-header nav a.active {
    border-bottom-color: var(--green);
  }
  .website-menu {
    display: grid;
  }
  .website-account .website-button {
    display: none;
  }
  .website-hero-copy {
    width: 63%;
    min-height: 270px;
  }
  .website-hero h1 {
    font-size: 55px;
  }
  .website-hero-copy > p:last-child {
    font-size: 18px;
  }
  .website-search {
    grid-template-columns: 1fr 1fr;
    padding: 22px;
  }
  .website-section-heading {
    align-items: start;
  }
  .website-section-heading h2 {
    font-size: 33px;
  }
  .website-help > .website-container {
    grid-template-columns: 1fr;
  }
  .website-help h2 {
    max-width: none;
  }
  .website-help ol {
    gap: 25px;
  }
  .website-footer > div {
    flex-wrap: wrap;
  }
  .website-footer nav {
    flex-wrap: wrap;
  }
  .website-detail-columns {
    gap: 30px;
  }
  .website-unit-detail,
  .website-about {
    gap: 30px;
  }
}
@media (max-width: 600px) {
  .website-container {
    width: calc(100% - 36px);
  }
  .website-header-inner {
    width: calc(100% - 28px);
  }
  .website-brand {
    gap: 8px;
  }
  .website-brand img {
    width: 42px;
    height: 48px;
  }
  .website-brand strong {
    font-size: 23px;
  }
  .website-header nav a {
    font-size: 14px;
  }
  .website-account {
    font-size: 11px;
  }
  .website-menu {
    width: 38px;
    height: 38px;
  }
  .website-hero {
    padding: 30px 0 25px;
  }
  .website-hero-image {
    height: 245px;
    object-position: 70%;
    opacity: 0.26;
  }
  .website-hero-copy {
    width: 100%;
    min-height: 230px;
    padding-bottom: 28px;
  }
  .website-eyebrow {
    font-size: 9px;
    letter-spacing: 2.5px;
    margin-bottom: 18px !important;
  }
  .website-hero h1 {
    font-size: 45px;
    max-width: 330px;
    letter-spacing: -2px;
  }
  .website-hero-copy > p:last-child {
    font-size: 17px;
    max-width: 360px;
  }
  .website-search {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 15px;
    border-radius: 10px;
  }
  .website-search label {
    gap: 6px;
  }
  .website-section {
    padding-block: 36px;
  }
  .website-section-heading {
    flex-direction: column;
    gap: 20px;
  }
  .website-section-heading h2 {
    font-size: 33px;
  }
  .website-unit {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }
  .website-unit-photo {
    height: 210px;
    grid-row: auto;
  }
  .website-unit > .website-button {
    grid-column: auto;
    margin: 0;
    justify-self: start;
  }
  .website-unit h3 {
    font-size: 25px;
  }
  .website-unit p {
    font-size: 14px;
  }
  .website-help {
    padding: 38px 0;
  }
  .website-help h2 {
    font-size: 33px;
  }
  .website-help ol {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .website-help li {
    display: grid;
    grid-template-columns: 50px 1fr;
    column-gap: 18px;
  }
  .website-help li > span {
    width: 45px;
    height: 45px;
    grid-row: span 2;
    margin: 0;
    font-size: 18px;
  }
  .website-help li p {
    margin-top: 5px;
  }
  .website-help h3 {
    font-size: 18px;
  }
  .website-footer nav {
    gap: 16px;
    font-size: 12px;
  }
  .website-results-heading {
    align-items: start;
    flex-direction: column;
  }
  .website-group-card footer {
    align-items: start;
    flex-direction: column;
  }
  .website-detail-columns,
  .website-unit-detail,
  .website-about {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .website-unit-detail > img,
  .website-unit-detail > .website-no-photo {
    height: 250px;
  }
  .website-price {
    align-items: start;
    flex-direction: column;
  }
  .website-pagination {
    gap: 12px;
    font-size: 12px;
  }
  .website-pagination a,
  .website-pagination button,
  .website-pagination [aria-disabled='true'] {
    padding: 8px 12px;
  }
  .website-notice {
    flex-direction: column;
    align-items: start;
  }
  .website-contact {
    font-size: 19px;
  }
  .website-activities h2 {
    font-size: 28px;
  }
  .website-activities > a {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.website) {
    scroll-behavior: auto;
  }
  .website * {
    transition: none !important;
  }
}

@keyframes website-nav-open {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.website-header nav .website-mobile-member {
  display: none;
}
@media (max-width: 900px) {
  .website-header nav.is-open .website-mobile-member {
    display: block;
    font-weight: 700;
    color: var(--green);
  }
}

/* ---------------------------------------------------------------------------
   Forms
   The public contact form, and the shared control styling the member pages
   and the auth pages reuse, so one definition covers every form on the site.
   --------------------------------------------------------------------------- */
