/* ==========================================================================
   amacaupro.com — static front-end
   Visual system derived from the existing WordPress site (Twenty Twenty-Three).
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "system-ui", "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", "PingFang TC",
    "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --fs-small: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.156), 1rem);
  --fs-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.156), 1.125rem);
  --fs-large: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.156), 1.875rem);
  --fs-xlarge: 2.25rem;
  --fs-card: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.031), 0.9rem);
  --space-20: 0.44rem;
  --space-30: clamp(1.5rem, 5vw, 2rem);
  --space-40: clamp(1.8rem, 1.8rem + ((1vw - 0.48rem) * 2.885), 3rem);
  --space-50: clamp(2.5rem, 8vw, 4.5rem);
  --space-60: clamp(3.75rem, 10vw, 7rem);
  --space-70: clamp(5rem, 5.25rem + ((1vw - 0.48rem) * 9.096), 8rem);
  --content: 800px;
  --wide: 1600px;
  --ink: #000;
  --paper: #fff;
  --muted: #595959;
  --soft: #f6f6f6;
  --rule: #abb8c3;
  --accent: #0693e3;
  --amber: #b8860b;
  --red: #cf2e2e;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.4;
}

body.menu-open { overflow: hidden; }

img,
picture,
svg { max-width: 100%; }

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 400;
  line-height: 2;
  text-transform: none;
}

h1 { font-size: clamp(2.032rem, 2.032rem + ((1vw - 0.2rem) * 1.991), 3.625rem); line-height: 1.2; }
h2 { font-size: clamp(2.625rem, calc(2.625rem + ((1vw - 0.48rem) * 8.4135)), 3.25rem); line-height: 1.2; }
h3 { font-size: var(--fs-xlarge); }
h4 { font-size: var(--fs-large); }
h5 { font-size: var(--fs-medium); font-weight: 700; }
h6 { font-size: var(--fs-medium); }

p { margin: 0; }

ul, ol { margin: 0; }

strong { font-weight: 700; }

hr { border: 0; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  border: 1px solid var(--ink);
}

.skip-link:focus { left: 16px; top: 16px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header { background: var(--paper); }

.header-top { padding: var(--space-30) var(--space-50) 0; }

.logo { display: block; width: 256px; line-height: 0; }

.logo picture { display: block; }

.logo img {
  width: 256px;
  height: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--space-50) 0;
}

.desktop-nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}

.nav-item { position: relative; }

.nav-link,
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 41px;
  padding: 1px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 2.5;
  white-space: nowrap;
  cursor: pointer;
}

.nav-parent { padding-right: 14px; }

.nav-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.nav-parent[aria-expanded="true"] .nav-arrow { transform: rotate(180deg); }

.submenu {
  position: absolute;
  left: -1px;
  top: 100%;
  z-index: 60;
  display: none;
  min-width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.submenu a {
  display: block;
  padding: 0.5em 1em;
  line-height: 2;
  white-space: nowrap;
}

.submenu a:hover,
.submenu a:focus-visible { background: var(--soft); color: var(--ink); }

.nav-item.open > .submenu { display: block; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -5px 0 -5px -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg { display: block; width: 24px; height: 24px; }

.search-form {
  position: relative;
  flex: none;
  width: 220px;
  max-width: 100%;
  margin-left: auto;
}

.search-form input {
  width: 100%;
  height: 38px;
  padding: 8px 10px 8px 36px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-small);
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

@media (max-width: 1099px) {
  .search-form { width: min(203px, 52vw); }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 56px 32px 32px;
  background: var(--paper);
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu__close svg { width: 24px; height: 24px; }

.mobile-nav { padding-top: 0; font-size: var(--fs-small); }

.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav a,
.mobile-nav__label {
  display: block;
  padding: 0;
  line-height: 2.5;
}

.mobile-nav__label { font-weight: 400; }

.mobile-nav__sub { padding-left: 32px !important; }

.mobile-nav__sub a { padding: 0.5em 0; }

.mobile-nav > ul > li + li { margin-top: 24px; }

@media (min-width: 1100px) {
  .desktop-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   Media / hero
   -------------------------------------------------------------------------- */

.hero-media {
  position: relative;
  width: 100%;
  height: 30vh;
  overflow: hidden;
  background: var(--soft);
}

.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img { object-fit: cover; object-position: center; }

.home-hero { margin: 0; }
.home-hero.hero-media { margin: 16px 0 0; }

.page-hero { margin: 16px 0 0; }

.post-hero { margin: 16px 0 calc(var(--space-30) + 40px); }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.home-columns {
  display: flex;
  gap: 72px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-50) var(--space-60) var(--space-70);
}

.home-col { min-width: 0; }

.home-col--main { flex: 0 1 45%; padding-bottom: var(--space-40); }
.home-col--news { flex: 0 1 35%; padding-bottom: var(--space-40); }
.home-col--links { flex: 0 1 20%; padding-bottom: 0; }

.section-title {
  font-size: var(--fs-large);
  line-height: 2;
  font-weight: 700;
}

.space-16 { height: 16px; }
.space-32 { height: 32px; }
.space-40 { height: 40px; }
.space-48 { height: 48px; }
.space-72 { height: 72px; }
.space-80 { height: 80px; }

.media-card {
  display: grid;
  grid-template-columns: 40% auto;
  gap: 16px;
  align-items: start;
  padding: var(--space-30);
  background: var(--soft);
}

.media-card__media { display: block; min-width: 0; }
.media-card__media img { width: 100%; height: auto; }

.media-card p {
  margin: 1em 0;
  font-size: var(--fs-card);
  line-height: 1.4;
}

.service-title {
  font-size: var(--fs-medium);
  line-height: 2;
  font-weight: 700;
}

.service-block + .service-block { margin-top: 32px; }

.news-list { list-style: none; padding: 0; margin: 0; }

.news-teaser { padding: 30px 0; }

.news-teaser h3 {
  font-size: var(--fs-medium);
  line-height: 2;
  font-weight: 700;
}

.news-teaser p {
  margin: 0;
  font-size: var(--fs-card);
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.links-list picture { display: inline; }
.links-list > li > a { display: block; }
.links-list > li > a img { width: auto; max-width: 100%; height: auto; }
.links-list .logo-dsedt { width: 100%; aspect-ratio: 300 / 54; }
.links-list .logo-ipim { width: 225px; aspect-ratio: 300 / 72; }
.links-list .logo-dsec { width: 137px; aspect-ratio: 140 / 55; }
.link-logo-text > a { flex: 0 0 38px; width: 38px; }
.link-logo-text > a img { width: 100%; height: auto; aspect-ratio: 1; }

.link-logo-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.link-logo-text__title {
  color: #3f3f3f;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
}

.link-logo-text__subtitle {
  color: #3f3f3f;
  font-size: 0.87rem;
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 1199px) {
  .home-columns {
    flex-direction: column;
    gap: 0;
    padding: var(--space-50) var(--space-60) var(--space-70);
  }
  .home-col--main,
  .home-col--news { padding-bottom: var(--space-40); }
  .home-col--links { padding-bottom: 0; }
  .link-logo-text > a { flex-basis: 48px; width: 48px; }
}

@media (max-width: 600px) {
  .media-card { grid-template-columns: 100%; }
  .media-card p { margin: 1em 0; }
}

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */

.archive-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space-50);
}

.archive-title {
  margin: var(--space-30) 0;
  font-size: var(--fs-large);
  line-height: 1.2;
  font-weight: 400;
}

.archive-main {
  padding: 0 var(--space-50);
}

.archive-inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.archive-inner--narrow { max-width: var(--content); }

.archive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-grid > li {
  width: calc(50% - 0.625em);
}

.archive-card { min-width: 0; }

.archive-card__title {
  margin: 20px 0;
  padding: 0 32px;
  font-size: var(--fs-medium);
  line-height: 2;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.archive-card__excerpt {
  min-height: 2.8em;
  padding: 0 32px;
  color: var(--muted);
  font-size: var(--fs-card);
  line-height: 1.4;
}

.archive-card__date {
  padding: 0 32px;
  color: var(--muted);
  font-size: var(--fs-card);
  line-height: 1.4;
}

.archive-card__spacer { height: 18px; }

.archive-list { margin: 0; padding: 0; list-style: none; }

.archive-list__item { margin: 0; }

.archive-list__title {
  margin: 20px 0;
  font-size: var(--fs-medium);
  line-height: 2;
  font-weight: 700;
}

.archive-list__excerpt {
  color: var(--muted);
  font-size: var(--fs-card);
  line-height: 1.4;
}

.archive-list__item:first-child .archive-list__title { margin-top: 0; }

.archive-list .rule { margin: 32px auto; }

.rule {
  display: block;
  width: 100px;
  height: 0;
  margin: 32px auto 0;
  border: 0;
  border-top: 2px solid var(--rule);
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  font-size: var(--fs-small);
}

.pagination a { line-height: 1.4; }

@media (max-width: 600px) {
  .archive-grid > li { width: 100%; }
}

/* --------------------------------------------------------------------------
   Post
   -------------------------------------------------------------------------- */

.post { padding-bottom: 0; }

.post--nohero { padding-top: 56px; }

.post-wrap {
  max-width: calc(var(--content) + (var(--space-50) * 2));
  margin: 0 auto;
  padding: 0 var(--space-50);
}

.post-title {
  margin: 0 0 0;
  font-size: var(--fs-xlarge);
  line-height: 2;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.post-title { margin-bottom: 0; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 8px;
  padding: 0 0 32px 2px;
  font-size: var(--fs-small);
  line-height: 1.4;
}

.post-meta__sep { color: var(--ink); }

.post-header .rule { margin-top: 32px; }
.post-header--meta .rule { margin-top: 0; }

.prose {
  margin-top: 48px;
  font-size: var(--fs-small);
  line-height: 2.5;
}

.prose p { margin: 0; }
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 { margin: 0; line-height: 2; }

.prose h2 { font-size: var(--fs-large); }
.prose h3 { font-size: var(--fs-medium); font-weight: 700; }
.prose h4 { font-size: var(--fs-medium); }

.prose ul,
.prose ol { margin: 0; padding-left: 40px; }

.prose li { line-height: inherit; }

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: var(--accent); }

.prose .link-red { color: var(--red); }
.prose .link-red:hover { color: var(--accent); }

.prose .align-center { text-align: center; }

.prose .heading-amber { color: var(--amber); }

.prose .callout {
  margin: 0;
  padding-left: var(--space-30);
  border-left: 5px solid var(--accent);
}

.prose .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--ink);
  border-collapse: collapse;
  line-height: 2.5;
}

.prose th,
.prose td {
  padding: 0.5em;
  border: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.prose thead th { font-weight: 700; }

.prose .table-wide { min-width: 680px; }

.prose figure { margin: 0; }

.post-figure img { margin: 0 auto; }

.icon-list,
.prose .icon-list {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.icon-list p { margin: 0; line-height: 2.5; }

.icon-list .icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--accent);
  fill: currentColor;
}

.icon-grid {
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: 32px;
}

.prose .icon-list .icon--people-arrows {
  flex-basis: 45px;
  width: 45px;
}

@media (max-width: 700px) {
  .icon-grid { grid-template-columns: 1fr; }
}

.archive-intro {
  max-width: var(--content);
  margin: -4px 0 var(--space-30);
  font-size: var(--fs-small);
  line-height: 2;
}

.post-byline {
  margin-top: 32px;
  color: var(--muted);
  font-size: var(--fs-card);
  line-height: 1.6;
}

/* Related services on articles */
.related { margin-top: 48px; }
.related .rule { margin-top: 0; }
.related-title {
  margin-top: 32px;
  font-size: var(--fs-medium);
  font-weight: 700;
  line-height: 2;
}
.related-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.related-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.related-list a:hover { color: var(--accent); }
.related-cta {
  margin-top: 24px;
  color: var(--muted);
  line-height: 2;
}
.related-cta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .related-list { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-page .post-wrap { padding-top: 56px; }
.faq-intro {
  max-width: var(--content);
  margin: 8px 0 16px;
  line-height: 2;
}
.faq-list { max-width: var(--content); }
.faq-item { margin-top: 32px; }
.faq-question {
  font-size: var(--fs-medium);
  font-weight: 700;
  line-height: 2;
}
.faq-answer {
  margin-top: 4px;
  line-height: 2;
}
.faq-answer-text p { margin: 0 0 12px; }
.faq-answer-text p:last-child { margin-bottom: 0; }
.faq-answer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-answer a:hover { color: var(--accent); }
.faq-cta {
  max-width: var(--content);
  margin-top: 48px;
  padding: var(--space-30);
  background: var(--soft);
  line-height: 2;
}
.faq-cta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-map { margin: 16px 0 0; }
.contact-map img { width: 100%; height: auto; }

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-60);
  margin-top: 40px;
  padding: var(--space-30) var(--space-40);
}

.contact-details { max-width: 395px; }

.contact-title {
  font-size: var(--fs-medium);
  line-height: 2;
  font-weight: 700;
}

.contact-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  line-height: 1.4;
}

.contact-table th,
.contact-table td {
  padding: 0.5em;
  vertical-align: top;
  font-weight: 400;
  text-align: left;
}

.contact-table th {
  text-align: right;
}

.contact-table a { text-decoration: underline; text-underline-offset: 3px; }
.contact-table a[href^="mailto:"] { display: inline-block; line-height: 1.7; }

.contact-qr { flex: 0 0 215px; width: 215px; margin: 0; }
.contact-qr img { width: 215px; height: 215px; }

.contact-org { margin: 0; }

@media (max-width: 700px) {
  .contact-panel {
    flex-direction: column;
    align-items: center;
    gap: var(--space-60);
    padding: var(--space-30) var(--space-40);
  }
  .contact-details { width: 100%; max-width: 395px; }
  .contact-qr { flex: none; }
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search-page {
  max-width: calc(var(--content) + (var(--space-50) * 2));
  margin: 0 auto;
  padding: 56px var(--space-50) 0;
}

.search-page h1 {
  font-size: var(--fs-xlarge);
  line-height: 1.2;
  margin-bottom: 24px;
}

.search-page .search-form {
  width: 100%;
  margin: 0 0 8px;
}

.search-page .search-form input {
  height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  font-size: var(--fs-medium);
}

.search-results { margin: 40px 0 0; padding: 0; list-style: none; }

.search-result { margin: 0 0 28px; }

.search-result__title {
  margin: 0;
  font-size: var(--fs-medium);
  line-height: 2;
  font-weight: 700;
}

.search-result__title a { text-decoration: underline; text-underline-offset: 3px; }

.search-result__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-card);
  line-height: 1.5;
}

.search-result__meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--fs-card);
  line-height: 1.4;
}

.search-status { margin: 24px 0 0; color: var(--muted); }

.search-page .search-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.search-page .search-form input {
  flex: 1;
  width: auto;
  height: 48px;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--ink);
  font-size: var(--fs-medium);
}

.search-page .search-icon { left: 13px; width: 20px; height: 20px; }
.search-page .search-icon svg { width: 20px; height: 20px; }

.search-form button {
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: var(--fs-small);
  line-height: 1;
  cursor: pointer;
}

.search-form button:hover { background: var(--accent); border-color: var(--accent); }

.mobile-search { width: 100%; margin-top: 32px; }

.not-found {
  max-width: calc(var(--content) + (var(--space-50) * 2));
  min-height: calc(100vh - 300px);
  margin: 0 auto;
  padding: 56px var(--space-50) 0;
}

.not-found h1 {
  font-size: var(--fs-xlarge);
  line-height: 1.2;
  margin-bottom: 24px;
}

.not-found p { margin: 0 0 24px; line-height: 2; }
.not-found a { text-decoration: underline; text-underline-offset: 3px; }
.not-found .search-form { display: flex; gap: 8px; width: 100%; max-width: 520px; }
.not-found .search-form input { flex: 1; width: auto; height: 48px; border: 1px solid var(--ink); padding: 12px 14px 12px 40px; }
.not-found .search-icon { left: 13px; width: 20px; height: 20px; }
.not-found .search-icon svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: var(--space-40) var(--space-30);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.54);
  font-size: var(--fs-small);
  line-height: 1.5;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }

.footer-brand {
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--fs-medium);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin: 2px 0;
}

.footer-links a { color: rgba(255, 255, 255, 0.66); }
.footer-links a:hover { color: #fff; }

.footer-contact {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

.footer-contact a { text-decoration: underline; text-underline-offset: 3px; }

.footer-copy,
.footer-credit { color: rgba(255, 255, 255, 0.5); }

.footer-sep { color: rgba(255, 255, 255, 0.35); }

@media (max-width: 600px) {
  .site-footer { padding: var(--space-30) 20px; }
  .footer-inner { gap: 7px; }
  .footer-brand { font-size: var(--fs-small); }
  .footer-links { gap: 3px 12px; }
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .footer-contact .footer-sep { display: none; }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
