/* ===========================================================
   SKS Clan Hub — shared styles for clan page sections
   Mirrors ui/collection/macdonald clan.html (px-based: Dawn
   theme sets html font-size to 62.5% so we avoid rem here).
   =========================================================== */

.sks-clan-page {
  --ivory: #F5F0E8;
  --parch: #E8DFD0;
  --parch-d: #DDD0BB;
  --white: #FFFFFF;
  --slate: #2C3E50;
  --slate-d: #1E2D3B;
  --slate-l: #3A5269;
  --amber: #B8520A;
  --amber-l: #D4681A;
  --amber-p: #FEF3EC;
  --amber-d: #9A4308;
  --onyx: #1A1A1A;
  --body: #4A4440;
  --muted: #7A726B;
  --muted-l: #9A9088;
  --rule: rgba(74, 68, 64, .14);
  --rule2: rgba(74, 68, 64, .22);
  --cream: #E8C9A8;
  --cream-d: #D4AF7A;
  --r: 6px;
  --rl: 10px;
  --rxl: 14px;
  background: var(--ivory);
  color: var(--body);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sks-clan-page * {
  box-sizing: border-box
}

.sks-clan-page h1,
.sks-clan-page h2,
.sks-clan-page h3,
.sks-clan-page h4 {
  font-family: 'Playfair Display', serif;
  color: var(--onyx);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}

.sks-clan-page em {
  font-style: italic
}

.sks-clan-page p {
  margin: 0
}

.sks-clan-page a {
  color: var(--amber);
  text-decoration: none;
  transition: color .2s
}

.sks-clan-page a:hover {
  color: var(--amber-l)
}

.sks-clan-page .sks-clan-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -.125em;
  flex-shrink: 0;
  stroke-width: 2;
}

/* ===========================================================
   TARTAN SWATCH (CSS fallback pattern — identical to finder)
   =========================================================== */
.sks-clan-page .tf-swatch {
  position: relative;
  background-color: var(--c1, #0e3c1e);
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.sks-clan-page .tf-swatch::before,
.sks-clan-page .tf-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sks-clan-page .tf-swatch::before {
  background: repeating-linear-gradient(90deg,
      transparent 0, transparent 22%,
      var(--c2, #21306a) 22%, var(--c2, #21306a) 28%,
      transparent 28%, transparent 44%,
      var(--c3, #a01a1a) 44%, var(--c3, #a01a1a) 50%,
      transparent 50%, transparent 66%,
      var(--c2, #21306a) 66%, var(--c2, #21306a) 72%,
      transparent 72%, transparent 88%,
      var(--c4, #f4f4f0) 88%, var(--c4, #f4f4f0) 92%,
      transparent 92%);
  mix-blend-mode: multiply;
}

.sks-clan-page .tf-swatch::after {
  background: repeating-linear-gradient(0deg,
      transparent 0, transparent 22%,
      var(--c2, #21306a) 22%, var(--c2, #21306a) 28%,
      transparent 28%, transparent 44%,
      var(--c3, #a01a1a) 44%, var(--c3, #a01a1a) 50%,
      transparent 50%, transparent 66%,
      var(--c2, #21306a) 66%, var(--c2, #21306a) 72%,
      transparent 72%, transparent 88%,
      var(--c4, #f4f4f0) 88%, var(--c4, #f4f4f0) 92%,
      transparent 92%);
  mix-blend-mode: multiply;
}

/* ===========================================================
   SECTION 1 — CLAN HERO
   =========================================================== */
.clan-hero {
  position: relative;
  background: var(--slate);
  overflow: hidden;
  padding: 90px 48px 80px;
}

.clan-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .08;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 60px, #0e3c1e 60px, #0e3c1e 62px, transparent 62px, transparent 130px, #21306a 130px, #21306a 132px, transparent 132px, transparent 200px, #a01a1a 200px, #a01a1a 203px, transparent 203px, transparent 280px),
    repeating-linear-gradient(0deg, transparent 0, transparent 60px, #0e3c1e 60px, #0e3c1e 62px, transparent 62px, transparent 130px, #21306a 130px, #21306a 132px, transparent 132px, transparent 200px, #a01a1a 200px, #a01a1a 203px, transparent 203px, transparent 280px);
  mix-blend-mode: screen;
}

.clan-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0, rgba(28, 40, 56, .65) 100%);
  z-index: 1;
  pointer-events: none;
}

.clan-hero-wrap {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  color: #fff;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.clan-hero-content {
  text-align: left
}

.clan-hero-eb {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 18px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.clan-hero-eb::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: rgba(232, 201, 168, .4);
}

.clan-hero h1 {
  font-size: 68px;
  line-height: 1;
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -.02em;
  font-family: 'Playfair Display', serif;
}

.clan-hero-gaelic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: .005em;
}

.clan-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px
}

.clan-hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(232, 201, 168, .12);
  border: 1px solid rgba(232, 201, 168, .22);
  border-radius: 99px;
  font-size: 12px;
  color: var(--cream);
  letter-spacing: .04em;
}

.clan-hero-meta-pill svg {
  font-size: 13px;
  opacity: .75;
  width: 13px;
  height: 13px
}

.clan-hero-meta-pill strong {
  color: #fff;
  font-weight: 500
}

.clan-hero-sub {
  font-size: 16px;
  color: rgba(245, 240, 232, .78);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 580px;
}

.clan-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 26px
}

.sks-clan-page .clan-hero-btn-primary,
.clan-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--cream);
  color: var(--slate-d);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: .25s;
  border: none;
  cursor: pointer;
}

.sks-clan-page .clan-hero-btn-primary:hover,
.clan-hero-btn-primary:hover {
  background: #F4D9B9;
  gap: 13px;
  color: var(--slate-d)
}

.clan-hero-btn-primary svg {
  width: 14px;
  height: 14px
}

.sks-clan-page .clan-hero-btn-secondary,
.clan-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  transition: .2s;
}

.sks-clan-page .clan-hero-btn-secondary:hover,
.clan-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff
}

.clan-hero-btn-secondary svg {
  width: 14px;
  height: 14px
}

.clan-hero-sept-teaser {
  font-size: 13px;
  color: rgba(245, 240, 232, .65);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: .005em;
  border-top: 1px solid rgba(232, 201, 168, .15);
  padding-top: 20px;
}

.clan-hero-sept-teaser strong {
  color: var(--cream);
  font-style: normal;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
}

.sks-clan-page .clan-hero-sept-teaser a,
.clan-hero-sept-teaser a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(232, 201, 168, .4);
  text-underline-offset: 2px;
  font-style: normal;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  letter-spacing: .005em;
}

.sks-clan-page .clan-hero-sept-teaser a:hover,
.clan-hero-sept-teaser a:hover {
  text-decoration-color: var(--cream)
}

.clan-hero-sept-teaser-names {
  color: rgba(232, 201, 168, .85);
  font-style: italic
}

.clan-hero-swatch-wrap {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 340px;
  margin-left: auto;
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid rgba(232, 201, 168, .18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
}

.clan-hero-swatch-wrap .tf-swatch {
  width: 100%;
  height: 100%;
  background-size: 80px 80px
}

.clan-hero-swatch-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(28, 40, 56, .85);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 11px;
  color: rgba(245, 240, 232, .7);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
}

.clan-hero-swatch-cap strong {
  color: #fff;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  text-transform: none;
  letter-spacing: .005em;
  font-size: 13.5px;
  display: block;
  margin-bottom: 2px;
}

/* ===========================================================
   SECTION 2 — QUICK FACTS
   =========================================================== */
.qf-section {
  background: var(--white);
  padding: 54px 48px;
  border-bottom: 1px solid var(--rule);
}

.qf-wrap {
  max-width: 1080px;
  margin: 0 auto
}

.sks-clan-page .qf-h,
.qf-h {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 20px;
  text-align: center;
}

.qf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ivory);
  border-radius: var(--rl);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.qf-cell {
  padding: 22px 24px;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: inset -1px -1px 0 0 var(--rule);
}

.qf-cell-label {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  font-family: 'Jost', sans-serif;
}

.qf-cell-value {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--onyx);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
}

.qf-cell-value em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500
}

.qf-cell-value-sm {
  font-size: 14px;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  color: var(--body);
  line-height: 1.4;
}

.qf-cell-value-sm svg {
  color: var(--amber);
  margin-right: 6px;
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.qf-cell-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.qf-cell-sub-plain {
  font-size: 11.5px;
  color: var(--muted)
}

/* ===========================================================
   SECTION 3 — CLAN TARTANS (variant grid, no tabs in Pass 1)
   =========================================================== */
.var-section {
  background: var(--ivory);
  padding: 90px 48px;
  border-bottom: 1px solid var(--rule);
}

.var-wrap {
  max-width: 1280px;
  margin: 0 auto
}

.var-intro {
  text-align: center;
  margin-bottom: 40px
}

.var-eb {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
}

.var-h {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.var-h em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500
}

.sks-clan-page .var-sub,
.var-sub {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
  text-align: center;
}

.var-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 14.5px;
  background: #fff;
  border-radius: var(--rl);
  border: 1px dashed var(--rule);
}

.var-empty a {
  color: var(--amber);
  font-style: normal;
  font-weight: 500;
  text-decoration: underline;
}

/* === Tartan card grid (also used by /pages/tartan-finder) === */
.tartan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 18px 0 28px;
}

.tartan-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--rl);
  overflow: hidden;
  transition: .18s;
}

.tartan-card:hover {
  border-color: var(--rule2);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74, 68, 64, .07);
}

.tartan-card-swatch-wrap {
  aspect-ratio: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--parch);
  border-bottom: 1px solid var(--rule);
}

.tartan-card-swatch-wrap .tf-swatch {
  width: 100%;
  height: 100%
}

.tartan-card-swatch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.tartan-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tartan-card-context {
  font-size: 10.5px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--amber-d);
  font-weight: 500;
  margin-bottom: 6px;
}

.tartan-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--onyx);
  margin-bottom: 10px;
  line-height: 1.25;
}

.tartan-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--body);
  margin: 0 0 14px;
  flex: 1;
}

.tartan-card-srt {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

.tartan-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--amber-d);
  background: transparent;
  border: 1px solid var(--rule2);
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: .01em;
  align-self: flex-start;
  transition: .18s;
}

.tartan-card-cta:hover {
  background: var(--parch);
  border-color: var(--amber);
  color: var(--amber-d);
  text-decoration: none;
  transform: translateY(-1px);
}

.tartan-card-cta-arrow {
  flex-shrink: 0;
  transition: transform .2s
}

.tartan-card-cta:hover .tartan-card-cta-arrow {
  transform: translateX(3px)
}

.tartan-card-cta:focus-visible {
  outline: 2px solid var(--amber-d);
  outline-offset: 2px
}

/* ===========================================================
   SECTION 4 — CLAN STORY
   =========================================================== */
.story-section {
  background: var(--white);
  padding: 90px 48px;
  border-bottom: 1px solid var(--rule);
}

.story-wrap {
  max-width: 780px;
  margin: 0 auto
}

.story-intro {
  text-align: center;
  margin-bottom: 46px
}

.story-eb {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
}

.story-body {
  font-size: 16px;
  color: var(--body);
  line-height: 1.85;
  font-weight: 300;
}

.story-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.1;
  margin: 0 0 14px;
  text-align: center;
}

.story-body h2 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500
}

.story-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 36px 0 14px;
  line-height: 1.2;
}

.story-body h3:first-of-type {
  margin-top: 0
}

.story-body h3 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500
}

.story-body p {
  margin: 0 0 18px
}

.story-body p:last-child {
  margin-bottom: 0
}

.story-body strong {
  color: var(--onyx);
  font-weight: 500
}

.story-body em {
  font-style: italic
}

.story-body a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(184, 82, 10, .35);
  text-underline-offset: 2px;
  font-weight: 400;
}

.story-body a:hover {
  text-decoration-color: var(--amber)
}

.story-body ul,
.story-body ol {
  margin: 0 0 18px 22px;
  padding: 0
}

.story-body li {
  margin-bottom: 6px
}

.story-pullquote {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--parch);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--onyx);
  font-weight: 400;
  position: relative;
}

.story-pullquote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  color: var(--amber);
  opacity: .35;
  line-height: 1;
  font-style: normal;
}

.story-pullquote p {
  margin: 0 0 10px
}

.story-pullquote p:last-child {
  margin-bottom: 0
}

.story-pullquote cite,
.story-pullquote em.cite {
  display: block;
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
}

/* ===========================================================
   SECTION 5 — CLAN AMERICA (MacDonald in America)
   =========================================================== */
.america-section {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--parch) 100%);
  padding: 90px 48px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  /* No overflow:hidden — breaks position:sticky in the inner grid.
     The ::before decorative pattern uses inset:0 so it's already contained. */
}

.america-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .04;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, transparent 0, transparent 80px, var(--slate) 80px, var(--slate) 81px);
}

.america-wrap {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1
}

.america-intro {
  text-align: center;
  margin-bottom: 46px
}

.america-intro .sec-eb {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
  display: block;
}

.america-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--onyx);
  font-weight: 600;
  text-align: center;
  margin: 0 0 18px;
  letter-spacing: -.015em;
  line-height: 1.1;
}

.america-intro h2 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500
}

.america-intro p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 18px;
  font-weight: 300;
}

.america-intro p:last-child {
  margin-bottom: 0
}

.america-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  /* align-items defaults to stretch — cells fill the row height, which is
     what sticky needs so the (shorter) left content has room to scroll within. */
}

/* Desktop only: pin the left column while the right (side cards) scrolls past. */
@media (min-width: 901px) {
  .america-content {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

.america-content p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 16px;
}

.america-content p strong {
  color: var(--onyx);
  font-weight: 500
}

.america-content p em {
  font-style: italic;
  color: var(--amber)
}

.america-h3,
.america-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.america-h3 svg {
  color: var(--amber);
  font-size: 18px;
  width: 18px;
  height: 18px
}

/* Auto-inject amber map-pin icon before every H3 in the rich-text body */
.america-content h3::before {
  content: "";
  flex-shrink: 0;
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8520A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0'/><path d='M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.america-content>h3:first-child,
.america-content>p:first-child+h3,
.america-h3:first-child {
  margin-top: 0
}

.america-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.america-stat {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rl);
  padding: 18px 16px;
  text-align: center;
}

.america-stat-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}

.america-stat-label {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}

.america-side {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.america-side-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rl);
  padding: 20px 22px;
  transition: .22s;
}

.america-side-card:hover {
  border-color: var(--amber);
  box-shadow: 0 6px 14px rgba(184, 82, 10, .06);
}

.america-side-eb {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 6px;
}

.america-side-h {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.005em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.america-side-p {
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
}

.america-side-p strong {
  color: var(--onyx);
  font-weight: 500
}

.america-side-p a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(184, 82, 10, .35);
  text-underline-offset: 2px;
}

.america-games {
  margin-top: 20px
}

.america-games .america-h3,
.america-figures .america-h3 {
  margin-bottom: 18px
}

.america-games-list {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.america-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  font-size: 12.5px;
  color: var(--body);
  font-weight: 300;
  transition: .18s;
}

.america-game:hover {
  background: #fff;
  border-color: var(--amber)
}

.america-game-name {
  font-family: 'Playfair Display', serif;
  font-size: 13.5px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.005em;
}

.america-game-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em
}

.america-figures {
  margin-top: 24px
}

.america-figure-grid {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.america-figure {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rl);
}

.america-figure-year {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  color: var(--amber);
  flex-shrink: 0;
  line-height: 1.1;
  width: 50px;
}

.america-figure-body {
  flex: 1;
  min-width: 0
}

.america-figure-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.3;
  margin-bottom: 3px;
}

.america-figure-desc {
  font-size: 11.5px;
  color: var(--body);
  line-height: 1.5;
  font-weight: 300;
}

/* ===========================================================
   SECTION 6 — CLAN SPELLINGS
   =========================================================== */
.spell-section {
  background: var(--ivory);
  padding: 80px 48px;
  border-bottom: 1px solid var(--rule);
}

.spell-wrap {
  max-width: 880px;
  margin: 0 auto
}

.spell-intro {
  text-align: center;
  margin-bottom: 36px
}

.spell-intro .sec-eb {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.spell-intro .sec-h {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--onyx);
  font-weight: 600;
  text-align: center;
  margin: 0 0 0;
  letter-spacing: -.015em;
  line-height: 1.1;
}

.spell-intro .sec-h em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500
}

.spell-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rxl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.spell-card-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--onyx);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -.005em;
}

.spell-card-text h3 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500
}

.spell-card-text p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  font-weight: 300;
  margin: 0 0 12px;
}

.spell-card-text p:last-child {
  margin-bottom: 0
}

.spell-card-text strong {
  color: var(--onyx);
  font-weight: 500
}

.spell-card-text em {
  font-style: italic;
  color: var(--amber)
}

.spell-grid {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.spell-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  font-size: 13.5px;
  transition: .18s;
  gap: 14px;
}

.spell-item:hover {
  border-color: var(--amber);
  background: #fff
}

.spell-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 15.5px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.005em;
}

.spell-item-name strong {
  color: var(--amber);
  font-weight: 600
}

.spell-item-note {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  text-align: right;
}

/* ===========================================================
   SECTION 7 — CONNECTED CLANS
   =========================================================== */
.related-section {
  background: var(--white);
  padding: 90px 48px;
  border-bottom: 1px solid var(--rule);
}

.related-wrap {
  max-width: 1280px;
  margin: 0 auto
}

.related-intro {
  text-align: center;
  margin-bottom: 46px
}

.related-intro .sec-eb {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.related-intro .sec-h {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--onyx);
  font-weight: 600;
  text-align: center;
  margin: 0 0 18px;
  letter-spacing: -.015em;
  line-height: 1.1;
}

.related-intro .sec-h em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500
}

.related-intro .sec-sub {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--rl);
  text-decoration: none;
  color: inherit;
  transition: .25s;
  position: relative;
}

.related-card:hover {
  background: #fff;
  border-color: var(--amber);
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(184, 82, 10, .08);
}

.related-swatch {
  width: 64px;
  height: 64px;
  border-radius: var(--r);
  flex-shrink: 0;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--ivory);
}

.related-swatch .tf-swatch {
  width: 100%;
  height: 100%
}

.related-swatch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-body {
  flex: 1;
  min-width: 0
}

.related-gaelic {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--amber);
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 3px;
  line-height: 1.2;
}

.related-name {
  font-family: 'Playfair Display', serif;
  font-size: 17.5px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.2;
  margin: 0 0 4px;
}

.related-card:hover .related-name {
  color: var(--amber)
}

.related-desc {
  font-size: 12px;
  color: var(--body);
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-desc strong {
  color: var(--onyx);
  font-weight: 500
}

.related-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%) translateX(-4px);
  color: var(--amber);
  opacity: 0;
  transition: .2s;
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.related-arrow svg {
  width: 14px;
  height: 14px
}

.related-card:hover .related-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.related-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
  background: var(--ivory);
  border: 1px dashed var(--rule);
  border-radius: var(--rl);
}

/* ===========================================================
   SECTION 8 — CLAN FAQ
   =========================================================== */
.faq-section {
  background: var(--ivory);
  padding: 90px 48px;
  border-bottom: 1px solid var(--rule);
}

.faq-wrap {
  max-width: 880px;
  margin: 0 auto
}

.faq-intro {
  text-align: center;
  margin-bottom: 40px
}

.faq-intro .sec-eb {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.faq-intro .sec-h {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--onyx);
  font-weight: 600;
  text-align: center;
  margin: 0 0 18px;
  letter-spacing: -.015em;
  line-height: 1.1;
}

.faq-intro .sec-h em {
  font-style: italic;
  color: var(--amber);
  font-weight: 500
}

.faq-intro .sec-sub {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #fff;
  border-radius: var(--rl);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  background: transparent;
}

.faq-item:last-child {
  border-bottom: none
}

.faq-item[open] {
  background: var(--ivory)
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  gap: 18px;
}

.faq-summary::-webkit-details-marker {
  display: none
}

.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 16.5px;
  color: var(--onyx);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.35;
  flex: 1;
}

.faq-item[open] .faq-q {
  color: var(--amber)
}

.faq-chev {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  transition: transform .25s, background .2s;
  border: 1px solid var(--rule);
}

.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}

.faq-a {
  padding: 0 60px 22px 24px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.72;
  font-weight: 300;
}

.faq-a p {
  margin: 0 0 10px;
  white-space: pre-line
}

.faq-a p:last-child {
  margin-bottom: 0
}

.faq-a strong {
  color: var(--onyx);
  font-weight: 500
}

.faq-a a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(184, 82, 10, .35);
  text-underline-offset: 2px;
  font-weight: 400;
}

.faq-a a:hover {
  text-decoration-color: var(--amber)
}

.faq-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: var(--rl);
}

.faq-footer {
  margin-top: 30px;
  padding: 22px 28px;
  background: var(--parch);
  border-radius: var(--rl);
  text-align: center;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.65;
  font-weight: 300;
}

.faq-footer-h {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--onyx);
  font-size: 15.5px;
  letter-spacing: -.005em;
  margin-bottom: 6px;
}

.faq-footer-p {
  margin: 0
}

.faq-footer-link {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(184, 82, 10, .35);
  text-underline-offset: 2px;
  font-weight: 500;
  margin-left: 6px;
}

.faq-footer-link:hover {
  text-decoration-color: var(--amber)
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width:960px) {
  .clan-hero {
    padding: 70px 24px 64px
  }

  .clan-hero h1 {
    font-size: 56px
  }

  .clan-hero-wrap {
    gap: 36px
  }

  .clan-hero-swatch-wrap {
    max-width: 280px
  }

  .qf-section {
    padding: 64px 24px
  }

  .var-section {
    padding: 64px 24px
  }

  .story-section {
    padding: 64px 24px
  }

  .story-body h2 {
    font-size: 32px
  }

  .america-section {
    padding: 64px 24px
  }

  .america-layout {
    grid-template-columns: 1fr;
    gap: 36px
  }

  .america-intro h2 {
    font-size: 32px
  }

  .spell-section {
    padding: 64px 24px
  }

  .spell-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px
  }

  .spell-intro .sec-h {
    font-size: 30px
  }

  .related-section {
    padding: 64px 24px
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
  }

  .related-intro .sec-h {
    font-size: 30px
  }

  .faq-section {
    padding: 64px 24px
  }

  .faq-intro .sec-h {
    font-size: 30px
  }
}

@media (max-width:760px) {
  .clan-hero-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center
  }

  .clan-hero-content {
    text-align: center
  }

  .clan-hero-eb {
    justify-content: center
  }

  .clan-hero-meta {
    justify-content: center
  }

  .clan-hero-actions {
    justify-content: center
  }

  .clan-hero-swatch-wrap {
    margin: 0 auto;
    max-width: 300px
  }

  .clan-hero h1 {
    font-size: 48px
  }

  .qf-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .var-h {
    font-size: 30px
  }
}

@media (max-width:680px) {
  .tartan-grid {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .tartan-card-name {
    font-size: 16.5px
  }

  .story-body h2 {
    font-size: 28px
  }

  .story-body {
    font-size: 15.5px
  }

  .america-intro h2 {
    font-size: 28px
  }

  .america-stat {
    padding: 14px 10px
  }

  .america-stat-num {
    font-size: 22px
  }

  /* Long icon-prefixed headings wrap cleanly with icon top-aligned */
  .america-h3 {
    align-items: flex-start
  }

  .america-h3 svg,
  .america-content h3::before {
    margin-top: 3px
  }

  /* Side cards a touch more breathing room when stacked */
  .america-side-card {
    padding: 18px 20px
  }

  .america-side-h {
    font-size: 14.5px
  }

  .america-side-p {
    font-size: 12.5px
  }

  .america-figure {
    padding: 12px 14px;
    gap: 12px
  }

  .america-figure-year {
    width: 44px;
    font-size: 16px
  }
}

@media (max-width:540px) {
  .clan-hero {
    padding: 56px 16px 48px
  }

  .clan-hero h1 {
    font-size: 38px
  }

  .clan-hero-gaelic {
    font-size: 20px
  }

  .clan-hero-sub {
    font-size: 14.5px
  }

  .clan-hero-actions {
    flex-direction: column;
    width: 100%
  }

  .clan-hero-btn-primary,
  .clan-hero-btn-secondary {
    width: 100%;
    justify-content: center
  }

  .qf-section {
    padding: 50px 16px
  }

  .var-section {
    padding: 50px 16px
  }

  .var-h {
    font-size: 26px
  }

  .story-section {
    padding: 50px 16px
  }

  .story-body h2 {
    font-size: 24px
  }

  .story-body {
    font-size: 15px
  }

  .story-pullquote {
    padding: 18px 22px;
    font-size: 16px
  }

  .america-section {
    padding: 50px 16px
  }

  .america-intro h2 {
    font-size: 24px
  }

  .america-intro p {
    font-size: 14.5px
  }

  .america-content p {
    font-size: 14.5px;
    line-height: 1.7
  }

  .america-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px
  }

  .america-stat-num {
    font-size: 20px
  }

  .america-stat-label {
    font-size: 9.5px
  }

  .america-h3 {
    font-size: 17px;
    line-height: 1.3
  }

  .america-games .america-h3,
  .america-figures .america-h3 {
    margin-bottom: 14px
  }

  .america-game {
    padding: 10px 12px
  }

  .america-game-name {
    font-size: 13px
  }

  .america-game-meta {
    font-size: 10.5px
  }

  .america-figure-name {
    font-size: 13.5px
  }

  .america-figure-desc {
    font-size: 11px
  }

  .spell-section {
    padding: 50px 16px
  }

  .spell-card {
    padding: 22px
  }

  .spell-intro .sec-h {
    font-size: 24px
  }

  .spell-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px
  }

  .spell-item-note {
    text-align: left
  }

  .related-section {
    padding: 50px 16px
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .related-card {
    padding: 18px 20px;
    gap: 14px
  }

  .related-swatch {
    width: 54px;
    height: 54px
  }

  .related-intro .sec-h {
    font-size: 24px
  }

  .faq-section {
    padding: 50px 16px
  }

  .faq-intro .sec-h {
    font-size: 24px
  }

  .faq-summary {
    padding: 18px 18px
  }

  .faq-q {
    font-size: 15px
  }

  .faq-a {
    padding: 0 18px 18px 18px;
    font-size: 13.5px
  }
}

@media (max-width:380px) {
  .clan-hero h1 {
    font-size: 32px
  }

  .qf-grid {
    grid-template-columns: 1fr
  }
}