:root {
  --ink: #161616;
  --muted: #62676f;
  --line: #e5e7eb;
  --paper: #ffffff;
  --canvas: #ffffff;
  --teal: #3e92b5;
  --teal-dark: #28667e;
  --soft-teal: #f1f7f9;
  --orange: #f2644b;
  font-family: "Inter", Arial, sans-serif;
}

body { font-family: "Inter", Arial, sans-serif; letter-spacing: -.015em; }
a { color: #bd4e3c; }
a:hover { color: #a33d2d; }
a:focus-visible { outline-color: var(--orange); }
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; }
.brand { gap: .8rem; }
.brand img { display: block; width: 112px; height: 32px; object-fit: contain; }
.brand-divider { height: 1.55rem; border-color: #d6d8dc; }
.brand-label { font: 700 1.35rem/1 "Inter", Arial, sans-serif; letter-spacing: -.02em; }
.header-nav a { color: #282828; }
.header-nav .yarra-link { padding: .65rem 1rem; border: 1px solid var(--orange); border-radius: 999px; color: var(--orange); }
.header-nav .yarra-link:hover { background: #fff3ef; }
.eyebrow { color: var(--orange); font-weight: 700; }
.breadcrumb a { color: var(--muted); }

.home-hero { border-color: #e4e6e8; }
.home-hero h1, .article-header h1 {
  font-weight: 700;
  letter-spacing: -.04em;
  background: linear-gradient(95deg, #5b89a7 20%, #a66b9f 75%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.home-hero h1 { font-family: "Inter", Arial, sans-serif; font-size: clamp(2.7rem, 5.2vw, 5rem); line-height: 1.07; }
.home-hero p { font-family: "Inter", Arial, sans-serif; line-height: 1.7; }
.section-heading { font: 700 1.9rem/1.25 "Inter", Arial, sans-serif; letter-spacing: -.02em; }
.section-kicker { margin: 4.5rem 0 .6rem; color: var(--orange); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
#subjects-title { margin: 0; }
.section-intro { max-width: none; margin: .8rem auto 0; color: var(--muted); line-height: 1.6; text-align: center; }
@media (min-width: 1100px) { .all-articles .section-intro { white-space: nowrap; } }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.directory-card { display: flex; flex-direction: column; min-height: 0; padding: 1.5rem; border: 1px solid transparent; border-radius: 18px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #3e92b5 0%, #8264ab 30%, #bd5c85 60%, #f2644b 90%) border-box; box-shadow: 0 2px 12px -10px #171717; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.directory-card:hover { box-shadow: 0 10px 24px -18px #171717; color: var(--ink); transform: translateY(-2px); }
.directory-card-label { color: var(--orange); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.directory-card h3 { position: relative; margin: 1rem 0 .65rem; padding-right: 1.5rem; font: 700 1.125rem/1.25 "Inter", Arial, sans-serif; letter-spacing: -.025em; }
.directory-card-arrow { position: absolute; top: 0; right: 0; color: var(--orange); font-weight: 600; }
.directory-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.all-articles .section-heading { text-align: center; }
.all-articles { margin-top: 6rem; padding-top: 4.5rem; border-top: 1px solid #e5e7eb; scroll-margin-top: 1rem; }
.all-articles .section-kicker { margin: 0 0 .6rem; }
.all-articles .section-heading { margin: 0; }
.home-hero + .page-shell .all-articles { margin-top: 0; padding-top: 5rem; border-top: 0; }
.article-search[hidden], .show-more[hidden] { display: none; }
.article-search { width: 50vw; max-width: 100%; margin: 3.75rem auto 4rem; }
.article-search label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.article-search-ring { padding: 1px; border-radius: 999px; background: linear-gradient(90deg, #3e92b5 0%, #8264ab 30%, #bd5c85 60%, #f2644b 90%); }
.article-search-inner { position: relative; border-radius: 999px; background: #fff; }
.article-search svg { position: absolute; top: 50%; left: 1.25rem; width: 1.25rem; height: 1.25rem; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.article-search input { display: block; width: 100%; height: 3.25rem; padding: 0 1.25rem 0 3.25rem; border: 0; border-radius: 999px; background: transparent; color: #000; font: 400 1.125rem/1.45 "Inter", Arial, sans-serif; outline: none; }
.article-search-ring:focus-within { box-shadow: 0 0 0 3px rgb(242 100 75 / 18%); }
.category-carousel { position: relative; width: 50vw; max-width: 100%; margin: 2.5rem auto clamp(4.5rem, 8vh, 6rem); }
.category-filters { display: block; width: 100%; margin: 0; overflow: hidden; scrollbar-width: none; }
.category-filters::-webkit-scrollbar { display: none; }
.category-filter-track { display: flex; width: max-content; }
.category-filter-set { display: flex; flex: 0 0 auto; align-items: center; gap: .6rem; padding-right: .6rem; white-space: nowrap; }
.category-filter-set button { flex: 0 0 auto; }
.category-scroll-arrow[hidden] { display: none; }
.category-scroll-arrow { position: absolute; z-index: 1; top: 50%; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 10%); color: var(--orange); font: 400 1.9rem/1 Arial, sans-serif; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .15s; }
.category-scroll-arrow[data-scroll="previous"] { left: .25rem; }
.category-scroll-arrow[data-scroll="next"] { right: .25rem; }
.category-carousel:hover .category-scroll-arrow, .category-carousel:focus-within .category-scroll-arrow, .category-scroll-arrow:focus-visible { opacity: 1; pointer-events: auto; }
.category-scroll-arrow:hover { background: #fff3ef; }
.category-scroll-arrow:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sort-control[hidden] { display: none; }
.browse-tools { display: contents; }
.sort-control { display: flex; justify-content: flex-end; align-items: center; gap: .65rem; margin: -2rem 0 1.5rem; color: var(--muted); font: 500 .9rem "Inter", Arial, sans-serif; }
.sort-control select { max-width: 100%; padding: .55rem 2rem .55rem .8rem; border: 1px solid #d7dce0; border-radius: 10px; background: #fff; color: var(--ink); font: 500 .9rem "Inter", Arial, sans-serif; cursor: pointer; }
.sort-control select:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.view-switch[hidden], .catalogue-index[hidden] { display: none; }
.view-switch { display: none; }
.catalogue-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: start; gap: 2.5rem; }
.catalogue-index, .catalogue-cards { min-width: 0; }
.catalogue-index[hidden] + .catalogue-cards { grid-column: 1 / -1; }
.catalogue-index { position: sticky; top: 1rem; }
.catalogue-index h3, .catalogue-cards > h3 { margin: 0 0 1.25rem; color: #202328; font: 700 1rem/1.4 "Inter", Arial, sans-serif; }
.catalogue-index-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem 1rem; margin-bottom: 1.25rem; }
.catalogue-index-heading h3 { margin: 0; }
.catalogue-index-heading .filter-status { margin: 0; white-space: nowrap; }
.catalogue-categories { max-height: min(70vh, 42rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.catalogue-category > button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .95rem .6rem; border: 0; background: transparent; color: var(--ink); text-align: left; font: 400 .95rem/1.4 "Inter", Arial, sans-serif; cursor: pointer; scroll-margin-top: 1rem; }
.catalogue-category > button:not([data-category="all"])::after { content: "+"; margin-left: .5rem; color: var(--orange); font-size: 1.25rem; }
.catalogue-category > button[aria-expanded="true"] { color: #b44e3b; }
.catalogue-category > button[aria-expanded="true"]::after { content: "−"; }
.catalogue-category button:hover, .catalogue-category button:focus-visible { background: #fff3ef; color: #b44e3b; }
.catalogue-category button:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.catalogue-title-panel { padding-left: .65rem; }
.catalogue-index-list { margin: 0; padding: 0; list-style: none; }
.catalogue-item-title { display: block; width: 100%; padding: .75rem .6rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; font: 500 .9rem/1.4 "Inter", Arial, sans-serif; cursor: pointer; }
.catalogue-item-title[aria-pressed="true"] { background: #fff3ef; color: #b44e3b; font-weight: 700; }
.catalogue-more-titles { width: 100%; padding: .85rem .6rem; border: 0; background: transparent; color: #b44e3b; text-align: left; font: 700 .85rem/1.4 "Inter", Arial, sans-serif; cursor: pointer; }
.show-more { display: block; margin: 2.5rem auto 0; padding: .85rem 1.5rem; border: 1px solid var(--orange); border-radius: 999px; background: #fff; color: #b44e3b; font: 700 .9rem "Inter", Arial, sans-serif; cursor: pointer; }
.back-to-top[hidden] { display: none; }
.back-to-top { display: none; }
.show-more:hover { background: #fff3ef; }
.show-more:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.search-empty[hidden] { display: none; }
.search-empty { grid-column: 2; margin: 2rem auto; padding: 2rem; max-width: 36rem; border: 1px solid #e5e0dc; border-radius: 18px; background: #fffaf7; text-align: center; color: var(--muted); }
.search-empty p { margin: 0 0 1rem; }
.search-empty button { border: 1px solid var(--orange); border-radius: 999px; padding: .7rem 1.2rem; background: #fff; color: #b44e3b; font: 700 .9rem "Inter", Arial, sans-serif; cursor: pointer; }
.search-empty button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.subject-card { border: 1px solid transparent; border-radius: 18px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #3e92b5 0%, #8264ab 30%, #bd5c85 60%, #f2644b 90%) border-box; box-shadow: 0 2px 12px -10px #171717; }
.all-articles .subject-grid { column-gap: 3rem; row-gap: clamp(5rem, 9vh, 11rem); }
.all-articles .catalogue-layout .subject-grid { column-gap: 1.5rem; row-gap: 2.5rem; }
.subject-card .subject-number { color: var(--orange); }
.subject-card h3 { font: 700 1.125rem/1.25 "Inter", Arial, sans-serif; letter-spacing: -.025em; }
.subject-card h3::after { content: ""; display: block; width: 5rem; height: 3px; margin-top: .85rem; border-radius: 999px; background: linear-gradient(90deg, #3e92b5 0%, #8264ab 30%, #bd5c85 60%, #f2644b 90%); }
.subject-card a { color: var(--orange); }
.subject-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.subject-card.is-quiet { background: #f7f7f5; }

.article-header h1 { font-family: "Inter", Arial, sans-serif; font-size: clamp(2.7rem, 4.8vw, 4.5rem); line-height: 1.1; }
.article-deck { font: 400 clamp(1.02rem, 1.4vw, 1.18rem)/1.7 "Inter", Arial, sans-serif; color: #40444a; }
.article-summary { position: relative; overflow: hidden; border: 1px solid #161616; border-left: 0; border-radius: 16px; background: #fff; }
.article-summary::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, #3e92b5 0%, #8264ab 30%, #bd5c85 60%, #f2644b 90%); }
.article-summary h2 { font: 700 1.18rem "Inter", Arial, sans-serif; color: #1f1f1f; }
.article-summary p { font-size: 1rem; line-height: 1.7; }
.article-body { font: 400 1.08rem/1.86 "Inter", Arial, sans-serif; letter-spacing: -.012em; }
.article-body h2 { font: 700 2rem/1.25 "Inter", Arial, sans-serif; letter-spacing: -.02em; }
.article-body h3 { font: 700 1.35rem/1.35 "Inter", Arial, sans-serif; letter-spacing: -.01em; }
.article-body h4 { font: 700 1.08rem/1.4 "Inter", Arial, sans-serif; }
.article-body strong { font-weight: 700; }
.article-body blockquote { padding: 1.15rem 1.4rem; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: #fff5f0; color: #363636; font-size: 1.08rem; }
.article-body .table-wrap { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.article-body table { font-family: "Inter", Arial, sans-serif; }
.article-body th { background: #f8f8f6; }
.article-body .process { border-radius: 12px; background: #fff1ed; font-family: "Inter", Arial, sans-serif; }
.article-end { font-family: "Inter", Arial, sans-serif; }
.article-main { width: 100%; }
.article-header { width: min(100%, 46rem); margin-inline: auto; }
.article-summary { width: 100%; margin: 0 0 3rem; }
.article-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46rem) minmax(0, 1fr); align-items: start; margin-top: 3rem; }
.article-reading-content { min-width: 0; }
.article-left-rail { position: sticky; grid-column: 1; top: 1.5rem; width: min(100%, 16rem); max-height: calc(100vh - 3rem); overflow-y: auto; padding: .2rem .75rem .2rem 0; scrollbar-width: thin; }
.article-reading-content { grid-column: 2; }
.article-right-rail { position: sticky; grid-column: 3; top: 1.5rem; width: min(100%, 17rem); min-width: 0; max-height: calc(100vh - 3rem); overflow-y: auto; justify-self: end; scrollbar-width: thin; }
.article-yarra-action { text-align: center; }
.article-yarra-image { display: block; width: 100%; height: auto; margin: 0 auto 1rem; }
.article-yarra-action h2 { margin: 0 0 .7rem; font: 700 .95rem/1.35 "Inter", Arial, sans-serif; }
.article-yarra-action p { margin: 0 0 1.15rem; color: var(--muted); font: 400 .86rem/1.55 "Inter", Arial, sans-serif; }
.article-yarra-action a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.7rem; padding: .55rem .9rem; border-radius: 999px; background: var(--orange); color: #fff; font: 700 .85rem/1.3 "Inter", Arial, sans-serif; text-decoration: none; }
.article-yarra-action a:hover { background: #cc4a34; color: #fff; }
.article-yarra-action a:focus-visible, .article-recommendations a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.article-recommendations { margin-top: 2rem; }
.article-recommendations ul { margin: 0; padding: 0; list-style: none; }
.article-toc-desktop h2, .article-recommendations h2 { margin: 0 0 1.1rem; font: 700 .9rem/1.4 "Inter", Arial, sans-serif; }
.article-toc-desktop ol, .article-toc-mobile ol { margin: 0; padding: 0; list-style: none; }
.article-toc-desktop li + li, .article-toc-mobile li + li, .article-recommendations li + li { margin-top: .3rem; }
.article-toc-desktop a, .article-toc-mobile a, .article-recommendations a { display: block; padding: .7rem .8rem; border-radius: 9px; color: var(--muted); font: 500 .88rem/1.5 "Inter", Arial, sans-serif; text-decoration: none; overflow-wrap: anywhere; }
.article-toc-desktop a span, .article-toc-mobile a span { color: var(--orange); }
.article-toc-desktop a:hover, .article-toc-mobile a:hover, .article-recommendations a:hover, .article-toc-desktop a[aria-current="location"], .article-toc-mobile a[aria-current="location"] { background: #fff3ef; color: #a84635; }
.article-toc-desktop a[aria-current="location"], .article-toc-mobile a[aria-current="location"] { font-weight: 700; }
.article-toc-mobile { display: none; }
.section-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: "Inter", Arial, sans-serif; }
.section-navigation a { display: block; max-width: 48%; color: #b44e3b; font-size: .88rem; line-height: 1.5; text-decoration: none; }
.section-navigation a:last-child { margin-left: auto; text-align: right; }
.section-navigation a span { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .75rem; }
.section-navigation a strong { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.reading-progress[hidden] { display: none; }
.reading-progress { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 4px; background: #f3f4f4; }
.reading-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #3e92b5, #8264ab, #bd5c85, #f2644b); }
.site-footer { border-color: var(--line); }

@media (max-width: 1350px) {
  .article-main { width: min(100%, 44rem); }
  .article-header { width: 100%; }
  .article-reading-layout { display: flex; flex-direction: column; }
  .article-reading-content { order: 1; width: 100%; }
  .article-left-rail { position: static; order: 3; width: 100%; max-height: none; overflow: visible; padding: 0; }
  .article-toc-desktop { display: none; }
  .article-right-rail { position: static; order: 2; width: 100%; max-height: none; overflow: visible; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
  .article-toc-mobile { display: block; margin: 0 0 2.75rem; border: 1px solid var(--line); border-radius: 12px; }
  .article-toc-mobile summary { padding: 1rem 1.2rem; color: var(--ink); font: 700 .95rem/1.4 "Inter", Arial, sans-serif; cursor: pointer; }
  .article-toc-mobile summary::marker { color: var(--orange); }
  .article-toc-mobile nav { padding: 0 .5rem .7rem; }
}

@media (max-width: 900px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .view-switch { display: flex; width: fit-content; margin: 0 auto 2rem; padding: .25rem; border: 1px solid #e5e7eb; border-radius: 999px; background: #f8f8f7; }
  .view-switch button { padding: .55rem 1.35rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 .88rem "Inter", Arial, sans-serif; cursor: pointer; }
  .view-switch button[aria-pressed="true"] { background: #fff; color: #b44e3b; box-shadow: 0 1px 5px rgb(0 0 0 / 10%); }
  .view-switch button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
  .catalogue-layout { display: block; }
  .catalogue-layout[data-view="cards"] .catalogue-index, .catalogue-layout[data-view="list"] .catalogue-cards { display: none; }
  .catalogue-index { position: static; max-width: 48rem; margin: 0 auto; }
  .catalogue-categories { max-height: none; overflow: visible; }
  .catalogue-layout .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home-hero + .page-shell .all-articles { margin-top: 0; padding-top: 2rem; }
  .article-search { margin-top: 2rem; margin-bottom: 2.25rem; }
  .article-search { width: 100%; }
  .category-carousel { width: 100%; margin-top: 1.75rem; margin-bottom: 1.5rem; }
  .category-filters { overflow-x: auto; overflow-y: hidden; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
  .category-scroll-arrow { display: none; }
  .browse-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
  .sort-control { margin: 0; min-width: 0; }
  .sort-control label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .sort-control select { width: 100%; min-width: 0; }
  .view-switch { margin: 0; white-space: nowrap; }
  .view-switch button { padding: .55rem .8rem; }
  .catalogue-cards > h3 { display: none; }
  .back-to-top { display: block; width: fit-content; margin: 1.5rem auto 0; padding: .5rem; color: #b44e3b; font: 700 .9rem "Inter", Arial, sans-serif; text-align: center; }
  .all-articles .subject-grid { row-gap: 2.5rem; }
  .catalogue-layout .subject-grid { grid-template-columns: 1fr; }
  .all-articles { margin-top: 4rem; padding-top: 3rem; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-card { min-height: 0; }
  .brand img { width: 93px; height: 27px; }
  .brand-label { font-size: 1.15rem; }
  .header-nav a:not(.yarra-link) { display: none; }
  .home-hero h1 { font-size: clamp(2rem, 9vw, 4rem); }
  .article-header h1 { font-size: 2.65rem; }
  .article-body { font-size: 1rem; line-height: 1.8; }
  .article-body h2 { font-size: 1.7rem; }
}
