/* Helpful Resources (/study-argentina-helpful-resources.html).
   Tokens follow the brand manual (docs/11-etapa-2/manual-de-marca-resumen.md §6) with the same --ma-* names
   as the shared design system, scoped to .ma-hr so they never leak into the legacy layout. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/ma-ds/outfit-latin-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/ma-ds/plus-jakarta-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.ma-hr {
  --ma-navy: #08405b;
  --ma-cyan: #009ad2;
  --ma-teal: #26c8b9;
  --ma-mist: #ddedec;
  --ma-white: #ffffff;
  --ma-cyan-text: #007bb0;
  --ma-navy-hover: #0b5578;
  --ma-teal-soft: #e6f7f5;
  --color-text: var(--ma-navy);
  --color-text-muted: #4a6573;
  --color-border: rgba(8, 64, 91, .14);
  --color-surface: #f4f9f9;
  --font-display: "Outfit", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(8, 64, 91, .06), 0 1px 1px rgba(8, 64, 91, .04);
  --shadow-md: 0 10px 30px rgba(8, 64, 91, .12);
  --tap: 44px;
  --hr-sticky-top: 60px;

  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  padding-bottom: 64px;
  -webkit-font-smoothing: antialiased;
}

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

.ma-hr h1, .ma-hr h2, .ma-hr h3, .ma-hr h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  background: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  text-shadow: none;
}
.ma-hr p { margin: 0 0 12px; font-size: 1rem; }
.ma-hr a { color: var(--ma-cyan-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ma-hr a:hover { color: var(--ma-navy); }
.ma-hr :focus-visible { outline: 3px solid var(--ma-cyan); outline-offset: 2px; border-radius: 6px; }
.ma-hr [hidden] { display: none !important; }

.hr-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hr-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hr-ic--xs { width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; }
.hr-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Hero */
.hr-hero {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  border-radius: var(--radius-lg);
  color: var(--ma-white);
  background:
    radial-gradient(520px 260px at 92% 12%, rgba(38, 200, 185, .32), transparent 70%),
    radial-gradient(420px 300px at 70% 120%, rgba(0, 154, 210, .45), transparent 70%),
    linear-gradient(135deg, #08405b 0%, #0a4f70 55%, #0b5f84 100%);
}
.hr-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 36px solid rgba(221, 237, 236, .07);
  pointer-events: none;
}
.hr-hero__inner { position: relative; z-index: 1; padding: 40px 48px 88px; max-width: 900px; }
.hr-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .875rem; color: rgba(255, 255, 255, .82); }
.hr-crumbs li { margin: 0; font-size: .875rem; }
.hr-crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .55); }
.ma-hr .hr-crumbs a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.ma-hr .hr-crumbs a:hover { color: #fff; text-decoration: underline; }
.ma-hr .hr-eyebrow { display: inline-block; margin: 0 0 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ma-teal); }
.ma-hr .hr-hero__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; font-weight: 700; max-width: 18ch; margin-bottom: 16px; }
@media (min-width: 992px) {
  .hr-hero__inner { max-width: none; }
  .ma-hr .hr-hero__title { max-width: none; white-space: nowrap; }
}
.ma-hr .hr-hero__lead { color: rgba(255, 255, 255, .9); font-size: 1.0625rem; line-height: 1.7; max-width: 64ch; margin-bottom: 24px; }

.hr-search { position: relative; display: flex; align-items: center; max-width: 640px; }
.hr-search > .hr-ic { position: absolute; left: 20px; color: var(--ma-navy); pointer-events: none; }
.ma-hr .hr-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 96px 0 52px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ma-navy);
  font: 500 1rem/1.2 var(--font-body);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  -webkit-appearance: none;
  appearance: none;
}
.ma-hr .hr-search input::placeholder { color: #5b7480; }
.ma-hr .hr-search input:focus-visible { outline: 3px solid var(--ma-teal); outline-offset: 2px; }
.hr-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ma-hr .hr-search__clear {
  position: absolute;
  right: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ma-mist);
  color: var(--ma-navy);
  font: 600 .875rem var(--font-body);
  cursor: pointer;
}
.ma-hr .hr-search__status { min-height: 1.5em; margin: 10px 0 0; font-size: .9375rem; color: #fff; font-weight: 600; }

/* Quick access */
.hr-quick { position: relative; z-index: 2; margin: -56px 24px 0; }
.hr-quick__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.hr-quick__grid li { margin: 0; }
.ma-hr .hr-quick__card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--ma-navy);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ma-hr .hr-quick__card:hover { transform: translateY(-2px); border-color: var(--ma-cyan); color: var(--ma-navy); }
.hr-quick__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ma-teal-soft); color: var(--ma-navy); flex: none; }
.hr-quick__icon .hr-ic { width: 22px; height: 22px; }
.hr-quick__text { display: flex; flex-direction: column; min-width: 0; }
.hr-quick__title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.hr-quick__desc { font-size: .875rem; line-height: 1.4; color: var(--color-text-muted); }
.hr-quick__arrow { margin-left: auto; color: var(--ma-cyan-text); transition: transform .18s ease; }
.ma-hr .hr-quick__card:hover .hr-quick__arrow { transform: translateX(3px); }

/* Two-column layout */
.hr-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; margin-top: 48px; align-items: start; }
.hr-toc { position: sticky; top: calc(var(--hr-sticky-top) + 16px); max-height: calc(100vh - var(--hr-sticky-top) - 32px); overflow: auto; }
.ma-hr .hr-toc__label { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.hr-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ma-mist); }
.hr-toc li { margin: 0; }
.ma-hr .hr-toc a {
  display: block;
  margin-left: -2px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: var(--color-text-muted);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.ma-hr .hr-toc a:hover { color: var(--ma-navy); border-left-color: var(--ma-teal); }
.ma-hr .hr-toc a[aria-current="true"] { color: var(--ma-navy); font-weight: 700; border-left-color: var(--ma-cyan); }

.hr-content { min-width: 0; }

/* Sections */
.ma-hr [id] { scroll-margin-top: calc(var(--hr-sticky-top) + 24px); }
.hr-section { scroll-margin-top: calc(var(--hr-sticky-top) + 24px); padding-top: 8px; margin-bottom: 56px; }
.hr-section__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hr-section__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ma-navy); color: var(--ma-teal); flex: none; }
.hr-section__icon .hr-ic { width: 22px; height: 22px; }
.ma-hr .hr-section__title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.ma-hr .hr-section__lead { font-size: 1.0625rem; color: var(--color-text-muted); max-width: 72ch; margin-bottom: 16px; }
.ma-hr .hr-section__sub { font-size: .9375rem; color: var(--color-text-muted); max-width: 72ch; margin-bottom: 20px; }

/* Accordion (native details) */
.hr-faq { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.hr-q { scroll-margin-top: calc(var(--hr-sticky-top) + 24px); }
.hr-q + .hr-q { border-top: 1px solid var(--color-border); }
.hr-q__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  transition: background-color .15s ease;
}
.hr-q__summary::-webkit-details-marker { display: none; }
.hr-q__summary::marker { content: ""; }
.hr-q__summary:hover { background: var(--color-surface); }
.ma-hr .hr-q__summary:focus-visible { outline: 3px solid var(--ma-cyan); outline-offset: -3px; border-radius: 0; }
.ma-hr .hr-q__title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.hr-q__chev { color: var(--ma-cyan-text); transition: transform .2s ease; }
.hr-q[open] > .hr-q__summary { background: var(--color-surface); }
.hr-q[open] > .hr-q__summary .hr-q__chev { transform: rotate(180deg); }
.hr-q__body { padding: 4px 20px 22px; max-width: 78ch; }
.hr-q__body > :last-child { margin-bottom: 0; }
.ma-hr .hr-q__body h4 { font-size: 1.0625rem; font-weight: 600; margin: 20px 0 8px; }
.ma-hr .hr-q__body h4:first-child { margin-top: 8px; }

.ma-hr .hr-list { margin: 0 0 14px; padding-left: 0; list-style: none; }
.ma-hr .hr-list li { position: relative; margin: 0 0 8px; padding-left: 22px; font-size: 1rem !important; }
.ma-hr .hr-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ma-teal); }
.ma-hr .hr-list--num { counter-reset: hrnum; }
.ma-hr .hr-list--num li { padding-left: 32px; counter-increment: hrnum; }
.ma-hr .hr-list--num li::before { content: counter(hrnum); top: .1em; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ma-teal-soft); color: var(--ma-navy); font: 700 .75rem/22px var(--font-body); text-align: center; }
.ma-hr .hr-list--check li::before { content: "✓"; width: auto; height: auto; top: 0; left: 0; background: none; color: #0f7a70; font-weight: 700; }

.ma-hr .hr-callout { padding: 14px 16px; margin: 16px 0; border-left: 4px solid var(--ma-teal); border-radius: var(--radius-sm); background: var(--ma-teal-soft); }

.ma-hr .hr-steps { counter-reset: hrstep; list-style: none; margin: 8px 0 16px; padding: 0; }
.ma-hr .hr-steps > li { position: relative; margin: 0; padding: 0 0 16px 48px; counter-increment: hrstep; }
.ma-hr .hr-steps > li::before { content: counter(hrstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ma-navy); color: #fff; font: 700 .9375rem/32px var(--font-display); text-align: center; }
.ma-hr .hr-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--ma-mist); }
.ma-hr .hr-steps__title { margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }

.hr-countries { margin: 16px 0; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.ma-hr .hr-countries__label { display: block; margin-bottom: 10px; font-weight: 600; font-size: .9375rem; }
.hr-countries__search { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.hr-countries__search .hr-ic { position: absolute; left: 14px; color: var(--color-text-muted); }
.ma-hr .hr-countries__search input { width: 100%; min-height: var(--tap); padding: 0 14px 0 42px; border: 1px solid rgba(8, 64, 91, .28); border-radius: var(--radius-pill); background: #fff; color: var(--ma-navy); font: 500 1rem var(--font-body); }
.ma-hr .hr-countries__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; max-height: 260px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.ma-hr .hr-countries__list li { margin: 0; padding: 4px 0; font-size: .9375rem !important; border-bottom: 1px dashed rgba(8, 64, 91, .1); }
.ma-hr .hr-countries__empty { margin: 8px 0 0; font-weight: 600; }

.hr-linkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }

.ma-hr .hr-resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ma-hr .hr-resource-list li { display: flex; flex-direction: column; margin: 0; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: .9375rem !important; }
.ma-hr .hr-resource-list a { font-weight: 600; }
.ma-hr .hr-resource-list span { color: var(--color-text-muted); }

.ma-hr .hr-table { width: 100%; max-width: 560px; margin: 4px 0 16px; border-collapse: collapse; font-size: .9375rem; }
.ma-hr .hr-table th { text-align: left; padding: 8px 12px; border-bottom: 2px solid var(--ma-navy); font-weight: 700; }
.ma-hr .hr-table td { padding: 8px 12px; border-bottom: 1px solid var(--color-border); }
.ma-hr .hr-table td:last-child, .ma-hr .hr-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.ma-hr .hr-seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ma-hr .hr-seasons p { margin: 0; padding: 14px; border-radius: var(--radius-sm); background: var(--color-surface); font-size: .9375rem; }

.ma-hr .hr-figure { display: block; width: 100%; max-width: 640px; height: auto; margin: 8px 0 16px; border-radius: var(--radius-md); }

.ma-hr .hr-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 16px; padding: 0; list-style: none; }
.ma-hr .hr-feature { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; }
.ma-hr .hr-feature img { width: 28px; height: 28px; object-fit: contain; flex: none; margin-top: 2px; }
.ma-hr .hr-feature__title { margin: 0 0 2px; font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.ma-hr .hr-feature__note { margin: 0; color: var(--color-text-muted); font-size: .875rem; line-height: 1.5; }
.ma-hr .hr-feature-list--muted .hr-feature { background: var(--color-surface); }

/* Program directory */
.hr-dir { display: grid; gap: 12px; }
.hr-dir__group { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.hr-dir__group[hidden] { display: none !important; }
.hr-dir__head {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  border-radius: var(--radius-md); color: var(--ma-navy); cursor: pointer; transition: background-color .18s ease, box-shadow .18s ease;
}
.hr-dir__head:hover { background: var(--color-surface); }
.ma-hr .hr-dir__heading { margin: 0; font-size: inherit; line-height: inherit; scroll-margin-top: calc(var(--hr-sticky-top) + 24px); }
.ma-hr .hr-dir__toggle {
  display: inline; margin: 0; padding: 0; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.ma-hr .hr-dir__toggle::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ma-hr .hr-dir__toggle:focus-visible { outline: none; }
.ma-hr .hr-dir__toggle:focus-visible::after { outline: 3px solid var(--ma-cyan); outline-offset: -3px; }
.hr-dir__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ma-teal-soft); color: var(--ma-navy); flex: none; }
.hr-dir__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.hr-dir__title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.ma-hr .hr-dir__blurb { margin: 0; font-size: .875rem; line-height: 1.45; color: var(--color-text-muted); font-weight: 400; }
.hr-dir__count {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: var(--radius-pill);
  background: var(--ma-teal-soft); font-size: .75rem; font-weight: 700; line-height: 1.6; color: var(--ma-navy); white-space: nowrap; vertical-align: 1px;
}
.hr-dir__chev { flex: none; margin-top: 10px; color: var(--ma-cyan-text); transition: transform .2s ease; }
.hr-dir__group.is-open .hr-dir__chev { transform: rotate(180deg); }
.hr-dir__group.is-open .hr-dir__icon { background: var(--ma-navy); color: var(--ma-teal); }
.hr-dir__panel { padding: 4px 16px 16px; }
.hr-dir__panel[hidden] { display: none; }
.ma-hr .hr-dir__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 20px; margin: 0 0 8px; padding: 0; list-style: none; }
.ma-hr .hr-dir__list li { margin: 0; }
.ma-hr .hr-dir__link { display: block; height: 100%; padding: 10px 12px; margin: 0 -12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ma-navy); }
.ma-hr .hr-dir__link:hover { background: #fff; color: var(--ma-navy); }
.hr-dir__name { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--ma-cyan-text); }
.hr-dir__link:hover .hr-dir__name { text-decoration: underline; text-underline-offset: 3px; }
.hr-dir__summary { display: block; margin-top: 2px; font-size: .875rem; line-height: 1.5; color: var(--color-text-muted); }
.ma-hr .hr-dir__more { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 600; font-size: .9375rem; color: var(--ma-navy); }
.hr-dir__group.is-open .hr-dir__panel { background: var(--color-surface); border-top: 1px solid var(--color-border); border-radius: 0 0 var(--radius-md) var(--radius-md); padding-top: 12px; }
.hr-dir__group.is-open .hr-dir__head { border-radius: var(--radius-md) var(--radius-md) 0 0; }

/* Desktop/tablet: category cards in a row, the open one expands full width under its row */
@media (min-width: 768px) {
  .hr-dir.is-enhanced { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .hr-dir.is-enhanced .hr-dir__group { display: contents; }
  .hr-dir.is-enhanced .hr-dir__head { flex-direction: column; gap: 10px; padding: 16px 16px 14px; border: 1px solid var(--color-border); background: #fff; box-shadow: var(--shadow-sm); }
  .hr-dir.is-enhanced .hr-dir__head:hover { background: var(--color-surface); }
  .hr-dir.is-enhanced .hr-dir__chev { position: absolute; top: 16px; right: 14px; margin: 0; }
  .hr-dir.is-enhanced .hr-dir__group.is-open .hr-dir__head { border-color: var(--ma-navy); box-shadow: 0 0 0 1px var(--ma-navy), var(--shadow-sm); border-radius: var(--radius-md); background: var(--ma-teal-soft); }
  .hr-dir.is-enhanced .hr-dir__group.is-open .hr-dir__count { background: #fff; }
  .hr-dir.is-enhanced .hr-dir__panel { grid-column: 1 / -1; padding: 16px 20px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
  .hr-dir.is-enhanced .hr-dir__group.is-open .hr-dir__panel { border-top: 1px solid var(--color-border); border-radius: var(--radius-md); padding-top: 16px; }
}

/* Search country hint, price-table label */
.ma-hr .hr-search__note { max-width: 640px; margin: 6px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .14); color: #fff; font-size: .9375rem; }
.ma-hr .hr-search__note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ma-hr .hr-table__meta { margin: 12px 0 4px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--color-text-muted); }

/* Panels, buttons, CTA */
.hr-panel { padding: 24px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); }
.ma-hr .hr-panel > p { max-width: 72ch; }
.ma-hr .hr-panel p a:not(.hr-btn) { color: var(--ma-navy); }
.ma-hr .hr-panel__q { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-top: 4px; }
.hr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ma-hr .hr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ma-hr .hr-btn--primary { background: var(--ma-navy); color: #fff; border: 2px solid var(--ma-navy); }
.ma-hr .hr-btn--primary:hover { background: var(--ma-navy-hover); border-color: var(--ma-navy-hover); color: #fff; }
.ma-hr .hr-btn--ghost { background: #fff; color: var(--ma-navy); border: 2px solid var(--ma-navy); }
.ma-hr .hr-btn--ghost:hover { background: var(--ma-navy); color: #fff; }
.ma-hr .hr-btn--light { background: #fff; color: var(--ma-navy); border: 2px solid #fff; }
.ma-hr .hr-btn--light:hover { background: var(--ma-mist); border-color: var(--ma-mist); color: var(--ma-navy); }
.ma-hr .hr-btn--outline-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .8); }
.ma-hr .hr-btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.hr-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(360px 200px at 100% 0%, rgba(38, 200, 185, .35), transparent 70%),
    linear-gradient(135deg, #08405b 0%, #0b5f84 100%);
}
.ma-hr .hr-cta__title { color: #fff; font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-bottom: 6px; }
.ma-hr .hr-cta p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.0625rem; }
.hr-cta .hr-actions { margin-top: 0; flex: none; }

.hr-empty { padding: 24px; margin-bottom: 32px; border: 1px dashed rgba(8, 64, 91, .3); border-radius: var(--radius-md); background: var(--color-surface); }
.ma-hr .hr-empty__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.ma-hr.is-searching .hr-quick { display: none; }
.ma-hr.is-searching .hr-layout { margin-top: 32px; }

@media (min-width: 992px) {
  .hr-dir.is-enhanced { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tablet */
@media (max-width: 1100px) {
  .hr-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hr-toc {
    position: sticky;
    top: var(--hr-sticky-top);
    z-index: 5;
    max-height: none;
    overflow: visible;
    margin: 0 -12px 24px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--color-border);
    -webkit-backdrop-filter: saturate(1.4) blur(6px);
    backdrop-filter: saturate(1.4) blur(6px);
  }
  .ma-hr .hr-toc__label { display: none; }
  .hr-toc ul { display: flex; gap: 8px; overflow-x: auto; border-left: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hr-toc ul::-webkit-scrollbar { display: none; }
  .ma-hr .hr-toc a { margin: 0; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: .875rem; background: #fff; }
  .ma-hr .hr-toc a:hover { border-color: var(--ma-cyan); }
  .ma-hr .hr-toc a[aria-current="true"] { background: var(--ma-navy); border-color: var(--ma-navy); color: #fff; }
  .ma-hr [id], .hr-section, .hr-q { scroll-margin-top: calc(var(--hr-sticky-top) + 80px); }
  .hr-quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 767px) {
  .ma-hr { --hr-sticky-top: 52px; }
  .hr-hero { margin: 0 -12px; border-radius: 0; }
  .hr-hero::after { display: none; }
  .hr-hero__inner { padding: 24px 20px 72px; }
  .ma-hr .hr-hero__lead { font-size: 1rem; }
  .hr-quick { margin: -48px 0 0; }
  .hr-quick__grid { gap: 8px; }
  .ma-hr .hr-quick__card { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; box-shadow: var(--shadow-sm); }
  .hr-quick__icon { width: 36px; height: 36px; border-radius: 10px; }
  .hr-quick__icon .hr-ic { width: 20px; height: 20px; }
  .hr-quick__title { font-size: .9375rem; }
  .hr-quick__desc { display: none; }
  .hr-quick__arrow { display: none; }
  .hr-layout { margin-top: 28px; }
  .hr-section { margin-bottom: 44px; }
  .hr-section__icon { width: 40px; height: 40px; }
  .hr-q__summary { padding: 14px 16px; min-height: 56px; }
  .ma-hr .hr-q__title { font-size: 1rem; }
  .hr-q__body { padding: 2px 16px 18px; }
  .hr-linkgrid, .ma-hr .hr-resource-list, .ma-hr .hr-feature-list, .ma-hr .hr-seasons { grid-template-columns: minmax(0, 1fr); }
  .hr-dir__head { padding: 14px; }
  .hr-dir__panel { padding: 4px 14px 12px; }
  .ma-hr .hr-dir__list { grid-template-columns: minmax(0, 1fr); }
  .hr-cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .hr-cta .hr-actions, .hr-cta .hr-btn { width: 100%; }
  .hr-panel { padding: 18px; }
  .hr-panel .hr-btn { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.ma-hr) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .ma-hr *, .ma-hr *::before, .ma-hr *::after { transition: none !important; }
}
@media print {
  .hr-quick, .hr-toc, .hr-search, .hr-cta { display: none !important; }
  .hr-layout { display: block; }
}
