@layer rna-base, rna-layout, rna-components, rna-responsive;

@layer rna-base {
  :root {
    color-scheme: light;
    --rna-ink: #172338;
    --rna-muted: #5b687a;
    --rna-blue: #2549d8;
    --rna-blue-deep: #1733ad;
    --rna-yellow: #f4d34f;
    --rna-paper: #f5f6f8;
    --rna-white: #fff;
    --rna-line: #dce1ea;
    --rna-container: 1180px;
  }
  .rna-site,
  .rna-site * { box-sizing: border-box; }
  .rna-site {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    overflow-x: clip;
    background: var(--rna-paper);
    color: var(--rna-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
  }
  .rna-site a { color: inherit; }
  .rna-site a:focus-visible,
  .rna-site input:focus-visible,
  .rna-site button:focus-visible {
    outline: 3px solid var(--rna-yellow);
    outline-offset: 3px;
  }
  .rna-container {
    width: min(var(--rna-container), calc(100% - 64px));
    margin-inline: auto;
  }
  .rna-site h1,
  .rna-site h2,
  .rna-site h3,
  .rna-site p { margin-top: 0; }
  .rna-site h1,
  .rna-site h2,
  .rna-site h3 { text-wrap: balance; }
  .rna-site img,
  .rna-site video,
  .rna-site canvas { max-width: 100%; height: auto; }
  .rna-site a { overflow-wrap: anywhere; }
}

@layer rna-layout {
  .rna-header {
    background: var(--rna-blue);
    color: var(--rna-white);
    border-bottom: 5px solid var(--rna-yellow);
  }
  .rna-brand-row {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .rna-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    color: var(--rna-white);
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -.045em;
    text-decoration: none;
  }
  .rna-brand-mark {
    position: relative;
    display: inline-block;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    border: 2px solid var(--rna-yellow);
    border-radius: 9px 9px 9px 2px;
    transform: rotate(-8deg);
  }
  .rna-brand-mark::before,
  .rna-brand-mark::after {
    position: absolute;
    content: "";
    background: var(--rna-yellow);
  }
  .rna-brand-mark::before { width: 13px; height: 3px; top: 8px; left: 6px; }
  .rna-brand-mark::after { width: 9px; height: 3px; top: 15px; left: 6px; }
  .rna-brand-note {
    color: #e4eaff;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .14em;
    text-align: right;
  }
  .rna-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    width: 100%;
  }
  .rna-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .rna-nav li { margin: 0; padding: 0; }
  .rna-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: inherit;
    font-size: .83rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  }
  .rna-header-nav { padding: 0 0 17px; }
  .rna-header-nav a:hover,
  .rna-header-nav a[aria-current="page"],
  .rna-header-nav .current-menu-item > a,
  .rna-header-nav .current-cat > a {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.13);
    color: var(--rna-yellow);
  }
  .rna-main { min-height: 55vh; }
  .rna-intro {
    position: relative;
    overflow: hidden;
    padding: 76px 0 70px;
    background: var(--rna-blue);
    color: var(--rna-white);
  }
  .rna-intro::after {
    position: absolute;
    right: max(4vw, calc((100vw - var(--rna-container)) / 2));
    bottom: -96px;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.035);
    content: "";
    pointer-events: none;
  }
  .rna-intro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 48px; }
  .rna-intro-copy { max-width: 760px; }
  .rna-eyebrow {
    margin-bottom: 13px;
    color: var(--rna-blue);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.45;
    text-transform: uppercase;
  }
  .rna-eyebrow span { padding-inline: 5px; color: #aeb7c7; }
  .rna-intro .rna-eyebrow { color: #e6ebff; }
  .rna-intro h1,
  .rna-archive h1,
  .rna-article-header h1 {
    margin-bottom: 20px;
    font-size: clamp(2.35rem, 5.5vw, 4.6rem);
    font-weight: 830;
    letter-spacing: -.065em;
    line-height: 1.04;
  }
  .rna-lead {
    max-width: 690px;
    margin-bottom: 25px;
    color: var(--rna-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.65;
  }
  .rna-intro .rna-lead { color: #e4eaff; }
  .rna-text-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 10px 17px;
    border-radius: 8px;
    background: var(--rna-yellow);
    color: var(--rna-ink);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
  }
  .rna-text-link:hover { background: #ffe474; }
  .rna-intro-stamp {
    z-index: 1;
    display: flex;
    min-height: 188px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    color: #e5eaff;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .18em;
    transform: rotate(9deg);
  }
  .rna-intro-stamp strong { color: var(--rna-yellow); font-size: 1.3rem; letter-spacing: .04em; }
  .rna-home-content { padding-block: 65px 86px; }
  .rna-topic-section { padding-bottom: 49px; border-bottom: 1px solid var(--rna-line); }
  .rna-section-heading { margin-bottom: 21px; }
  .rna-section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.18;
  }
  .rna-topic-nav { justify-content: flex-start; gap: 8px; }
  .rna-topic-nav ul { justify-content: flex-start; gap: 8px; }
  .rna-topic-nav a {
    border-color: var(--rna-line);
    background: var(--rna-white);
    color: var(--rna-ink);
    font-size: .85rem;
  }
  .rna-topic-nav a:hover,
  .rna-topic-nav a[aria-current="page"],
  .rna-topic-nav .current-menu-item > a,
  .rna-topic-nav .current-cat > a {
    border-color: var(--rna-blue);
    background: var(--rna-blue);
    color: var(--rna-white);
  }
  .rna-material-section { padding-top: 51px; }
  .rna-section-heading-lined {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
  }
  .rna-section-index { padding-bottom: 4px; color: var(--rna-muted); font-size: .75rem; font-weight: 750; letter-spacing: .1em; }
  .rna-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .rna-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--rna-line);
    border-radius: 13px;
    background: var(--rna-white);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .rna-card:hover { transform: translateY(-3px); border-color: #aebcf1; box-shadow: 0 12px 30px rgba(23,35,56,.09); }
  .rna-card-link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
  .rna-card-media {
    position: relative;
    display: grid;
    min-height: 86px;
    place-items: center;
    overflow: hidden;
    background: #e9edfb;
  }
  .rna-card-media::before {
    position: absolute;
    top: -36px;
    right: 31px;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(37,73,216,.2);
    border-radius: 50%;
    content: "";
  }
  .rna-card-media img { display: block; width: 100%; height: auto; object-fit: cover; }
  .rna-card-arrow {
    position: absolute;
    right: 14px;
    bottom: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--rna-yellow);
    color: var(--rna-ink);
    font-size: 1.1rem;
    font-weight: 800;
  }
  .rna-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 20px 18px; }
  .rna-card-category { margin-bottom: 9px; color: var(--rna-blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .rna-card h2 { margin-bottom: 11px; font-size: 1.25rem; font-weight: 790; letter-spacing: -.035em; line-height: 1.28; }
  .rna-card-excerpt { margin-bottom: 20px; color: var(--rna-muted); font-size: .93rem; line-height: 1.6; }
  .rna-card-read { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; color: var(--rna-blue); font-size: .85rem; font-weight: 800; }
  .rna-card-link:hover .rna-card-read { color: var(--rna-blue-deep); }
  .rna-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 38px; }
  .rna-pagination a,
  .rna-pagination span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--rna-line);
    border-radius: 8px;
    background: var(--rna-white);
    color: var(--rna-ink);
    text-decoration: none;
  }
  .rna-pagination a:hover,
  .rna-pagination [aria-current="page"] { border-color: var(--rna-blue); background: var(--rna-blue); color: var(--rna-white); }
  .rna-archive { padding-block: 64px 86px; }
  .rna-archive h1 { max-width: 900px; }
  .rna-archive-lead { margin-bottom: 30px; }
  .rna-category-rule { width: 100%; height: 5px; margin-bottom: 34px; background: linear-gradient(90deg, var(--rna-yellow) 0 88px, var(--rna-blue) 88px 100%); }
  .rna-single-main { padding-block: 62px 90px; }
  .rna-article { width: min(100%, 820px); margin-inline: auto; }
  .rna-article-header { margin-bottom: 38px; padding-bottom: 26px; border-bottom: 1px solid var(--rna-line); }
  .rna-article-header h1 { font-size: clamp(2.1rem, 4.7vw, 3.8rem); }
  .rna-article-dates { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--rna-muted); font-size: .88rem; }
  .rna-article-body { color: #283448; font-size: 1.06rem; line-height: 1.82; overflow-wrap: anywhere; }
  .rna-article-body > * { max-width: 100%; }
  .rna-article-body h2,
  .rna-article-body h3,
  .rna-article-body h4 { margin: 2.1em 0 .65em; color: var(--rna-ink); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
  .rna-article-body h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
  .rna-article-body h3 { font-size: 1.4rem; }
  .rna-article-body h4 { font-size: 1.15rem; }
  .rna-article-body p { margin-bottom: 1.35em; }
  .rna-article-body a { color: var(--rna-blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .rna-article-body ul,
  .rna-article-body ol { margin: 0 0 1.5em; padding-left: 1.5em; }
  .rna-article-body li { margin-block: .45em; padding-left: .25em; }
  .rna-article-body blockquote { margin: 1.8em 0; padding: 7px 0 7px 22px; border-left: 4px solid var(--rna-yellow); color: #3c4b62; }
  .rna-article-body figure { margin: 1.8em 0; }
  .rna-article-body img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
  .rna-article-body figcaption { margin-top: 9px; color: var(--rna-muted); font-size: .85rem; }
  .rna-article-body table { display: block; width: 100%; max-width: 100%; margin: 1.8em 0; overflow-x: auto; border-collapse: collapse; border-spacing: 0; font-size: .91rem; line-height: 1.5; }
  .rna-article-body thead { background: var(--rna-blue); color: var(--rna-white); }
  .rna-article-body th,
  .rna-article-body td { min-width: 130px; padding: 12px 14px; border: 1px solid var(--rna-line); text-align: left; vertical-align: top; }
  .rna-article-body tbody tr:nth-child(even) { background: #edf0f5; }
  .rna-article-body pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 8px; background: #e9edf5; font-size: .9rem; }
  .rna-article-body hr { margin-block: 2em; border: 0; border-top: 1px solid var(--rna-line); }
  .rna-footer { padding: 34px 0 22px; background: #172338; color: var(--rna-white); }
  .rna-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
  .rna-footer-top p { margin: 0; color: #c7d0df; font-size: .9rem; }
  .rna-footer-brand { font-size: 1.12rem; }
  .rna-footer-brand .rna-brand-mark { transform: rotate(-8deg); }
  .rna-footer-nav { justify-content: flex-start; padding-block: 16px; border-top: 1px solid #39465a; border-bottom: 1px solid #39465a; }
  .rna-footer-nav ul { justify-content: flex-start; }
  .rna-footer-nav a { color: #e0e6f0; }
  .rna-footer-nav a:hover { background: #2a3850; color: var(--rna-yellow); }
  .rna-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding-top: 18px; color: #c7d0df; font-size: .82rem; }
  .rna-footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; color: var(--rna-white); text-decoration: none; }
}

@layer rna-components {
  .rna-site :where(button, input, select, textarea) { font: inherit; }
  .rna-site :where(p, li, td, th) { text-wrap: pretty; }
  .rna-site ::selection { background: var(--rna-yellow); color: var(--rna-ink); }
  .rna-card-link:focus-visible { outline-offset: -4px; }
}

@layer rna-responsive {
  @media (min-width: 768px) and (max-width: 1023px) {
    .rna-container { width: calc(100% - 48px); }
    .rna-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .rna-intro-layout { grid-template-columns: minmax(0, 1fr) 170px; gap: 28px; }
    .rna-intro-stamp { min-height: 160px; }
  }
  @media (max-width: 767px) {
    .rna-container { width: calc(100% - 36px); }
    .rna-brand-row { min-height: 70px; }
    .rna-brand { gap: 10px; font-size: 1.16rem; }
    .rna-brand-note { max-width: 125px; font-size: .58rem; line-height: 1.5; }
    .rna-header-nav { padding-bottom: 13px; }
    .rna-nav { gap: 5px; }
    .rna-nav ul { gap: 5px; }
    .rna-nav a { min-height: 44px; padding: 8px 10px; font-size: .78rem; }
    .rna-intro { padding: 53px 0 48px; }
    .rna-intro-layout { display: block; }
    .rna-intro h1 { max-width: 620px; font-size: clamp(2.2rem, 10vw, 3.2rem); }
    .rna-intro .rna-lead { font-size: 1.02rem; }
    .rna-intro-stamp { display: none; }
    .rna-intro::after { right: -150px; bottom: -180px; width: 260px; height: 260px; }
    .rna-home-content { padding-block: 43px 60px; }
    .rna-topic-section { padding-bottom: 34px; }
    .rna-topic-nav { justify-content: center; }
    .rna-topic-nav ul { justify-content: center; }
    .rna-material-section { padding-top: 35px; }
    .rna-section-heading-lined { align-items: start; }
    .rna-section-index { padding-top: 7px; white-space: nowrap; }
    .rna-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .rna-card-media { min-height: 72px; }
    .rna-card-copy { padding: 18px; }
    .rna-archive { padding-block: 43px 62px; }
    .rna-archive h1 { font-size: clamp(2.15rem, 9vw, 3.1rem); }
    .rna-single-main { padding-block: 42px 65px; }
    .rna-article-header { margin-bottom: 27px; }
    .rna-article-header h1 { font-size: clamp(2rem, 8.7vw, 3rem); }
    .rna-article-body { font-size: 1rem; line-height: 1.75; }
    .rna-footer-top { align-items: flex-start; flex-direction: column; gap: 10px; }
    .rna-footer-nav,
    .rna-footer-nav ul { justify-content: center; }
  }
  @media (max-width: 390px) {
    .rna-container { width: calc(100% - 28px); }
    .rna-brand-note { max-width: 102px; font-size: .53rem; letter-spacing: .1em; }
    .rna-nav a { padding-inline: 8px; font-size: .75rem; }
    .rna-section-heading-lined { gap: 8px; }
    .rna-section-index { font-size: .67rem; }
    .rna-card h2 { font-size: 1.16rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .rna-site *, .rna-site *::before, .rna-site *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  }
}