/*
 * OptinPlot Resource Engine
 *
 * Inherits the theme's brand — indigo #667eea into violet #764ba2, ink
 * #1a1a2e, Inter — and adds the documentation layout on top. Nothing
 * here restyles the header, footer or nav; the theme keeps those.
 */

.opr-guides {
    --opr-ink: #1a1a2e;
    --opr-body: #3d4160;
    --opr-muted: #6b7191;
    --opr-line: #e6e8f5;
    --opr-tint: #f7f8fe;
    --opr-brand: #667eea;
    --opr-brand-deep: #764ba2;
    --opr-shell: 1200px;
}

/* The shell owns the horizontal gutter and nothing else.
 *
 * This was a shorthand — `padding: 0 24px` — and because the selector
 * carries two classes it outranked `.opr-section`'s own `padding`, which
 * meant every vertical gap on a hub, pillar and article page was
 * silently set to zero. The prose started flush against the hero and the
 * last band sat flush against the footer.
 *
 * Longhands on separate properties cannot cancel each other at any
 * specificity, which is a stronger fix than matching the selector
 * weight and hoping the next rule does the same. */
.opr-guides .opr-shell {
    max-width: var(--opr-shell);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------------- */
.opr-crumbs {
    border-bottom: 1px solid var(--opr-line);
    background: #fff;
}

.opr-crumbs ol {
    list-style: none;
    margin: 0;
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    color: var(--opr-muted);
}

.opr-crumbs li {
    display: inline-flex;
    align-items: center;
}

.opr-crumbs a {
    color: var(--opr-muted);
    text-decoration: none;
}

.opr-crumbs a:hover {
    color: var(--opr-brand);
    text-decoration: underline;
}

.opr-crumb-sep {
    margin: 0 8px;
    color: #c3c7de;
}

.opr-crumbs [aria-current] {
    color: var(--opr-ink);
    font-weight: 500;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.opr-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2350 48%, #4a3a86 100%);
    color: #fff;
    padding: 56px 0 52px;
    position: relative;
    overflow: hidden;
}

.opr-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.7;
    pointer-events: none;
}

.opr-hero > .opr-shell {
    position: relative;
    z-index: 1;
}

.opr-hero-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.opr-hero-eyebrow a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.opr-hero-eyebrow a:hover {
    color: #fff;
    text-decoration: underline;
}

.opr-hero-eyebrow span {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.45);
}

.opr-hero-title {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 20ch;
}

.opr-hero-hub .opr-hero-title {
    max-width: 22ch;
}

.opr-hero-index {
    text-align: center;
    padding-top: 66px;
}

.opr-hero-index .opr-hero-title {
    max-width: 24ch;
    margin-left: auto;
    margin-right: auto;
}

.opr-hero-index .opr-hero-dek {
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

.opr-hero-dek {
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 62ch;
}

.opr-hero-meta {
    margin: 26px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.opr-hero-meta span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 5px 13px;
    color: rgba(255, 255, 255, 0.92);
}

.opr-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    color: #fff;
}

.opr-hero-icon svg {
    width: 26px;
    height: 26px;
}

/* Index structure map — the signature device. It states what the
   library is (three subjects, fifteen topics, one question per guide)
   rather than decorating the hero with generic counters. */
.opr-map {
    margin: 38px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    overflow: hidden;
}

.opr-map-step {
    padding: 22px 22px 24px;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.opr-map-step:last-child {
    border-right: 0;
}

.opr-map-value {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.opr-map-label {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.opr-map-note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */
.opr-section {
    padding-top: 52px;
    padding-bottom: 88px;
}

/* The intro column and its sticky companion.
 *
 * Prose is capped at a comfortable measure, which used to leave the
 * right third of every hub and pillar page empty. The aside occupies it
 * with something useful rather than widening the text past the point
 * where it is readable. */
.opr-with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.opr-with-aside-main {
    min-width: 0;
}

.opr-aside {
    position: sticky;
    top: 92px;
}

.opr-aside-card {
    border: 1px solid var(--opr-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 22px rgba(26, 26, 46, 0.06);
}

.opr-aside-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 22px 22px;
}

.opr-aside-eyebrow {
    margin: 0 0 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.opr-aside-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.opr-aside-body {
    padding: 18px 22px 22px;
}

.opr-aside-text {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--opr-body);
}

.opr-aside-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.opr-aside-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.34);
}

.opr-aside-facts {
    list-style: none;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--opr-line);
}

.opr-aside-facts li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--opr-muted);
}

.opr-aside-facts strong {
    color: var(--opr-ink);
    font-weight: 600;
}

/* The rail variant. It sits between the contents list and the pillar
   list, so it has to stay short — the full card measured 867px down a
   rail that never exceeds about 980px, which meant no reader ever saw it. */
.opr-aside-compact {
    box-shadow: none;
    padding: 16px 18px 18px;
    background: linear-gradient(135deg, #f6f4fe 0%, #f3f5ff 100%);
    border-color: #d5d9f5;
}

.opr-aside-compact .opr-aside-eyebrow {
    color: var(--opr-brand-deep);
    margin-bottom: 6px;
}

.opr-aside-compact .opr-aside-title {
    color: var(--opr-ink);
    font-size: 15.5px;
    line-height: 1.35;
    margin-bottom: 14px;
}

.opr-aside-compact .opr-aside-btn {
    font-size: 13.5px;
    padding: 10px 14px;
}

.opr-layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding-top: 44px;
    padding-bottom: 88px;
}

.opr-body {
    min-width: 0;
}

/* ---------------------------------------------------------------
   Rail
   --------------------------------------------------------------- */
.opr-rail {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 4px;
}

.opr-rail-block {
    margin-bottom: 30px;
}

.opr-rail-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--opr-muted);
}

.opr-rail-pillar {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rail;
    border-left: 2px solid var(--opr-line);
}

.opr-rail-pillar li {
    counter-increment: rail;
    position: relative;
    padding: 6px 0 6px 16px;
    font-size: 13.5px;
    line-height: 1.45;
}

.opr-rail-pillar li::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
}

.opr-rail-pillar li.is-current::before {
    background: var(--opr-brand);
}

.opr-rail-pillar a {
    color: var(--opr-body);
    text-decoration: none;
}

.opr-rail-pillar a:hover {
    color: var(--opr-brand);
}

.opr-rail-pillar li.is-current span {
    color: var(--opr-ink);
    font-weight: 600;
}

.opr-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--opr-line);
}

.opr-toc li {
    padding: 5px 0 5px 16px;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
}

.opr-toc li.opr-toc-l3 {
    padding-left: 30px;
    font-size: 13px;
}

.opr-toc a {
    color: var(--opr-body);
    text-decoration: none;
}

.opr-toc a:hover {
    color: var(--opr-brand);
}

.opr-toc li.is-active::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--opr-brand);
}

.opr-toc li.is-active > a {
    color: var(--opr-ink);
    font-weight: 600;
}

.opr-toc-mobile {
    display: none;
    border: 1px solid var(--opr-line);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 28px;
    background: var(--opr-tint);
}

.opr-toc-mobile summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--opr-ink);
}

.opr-toc-mobile ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.opr-toc-mobile li {
    padding: 5px 0;
    font-size: 14px;
}

.opr-toc-mobile li.opr-toc-l3 {
    padding-left: 16px;
    font-size: 13px;
}

.opr-toc-mobile a {
    color: var(--opr-body);
    text-decoration: none;
}

/* ---------------------------------------------------------------
   Prose
   --------------------------------------------------------------- */
.opr-prose {
    color: var(--opr-body);
    font-size: 17px;
    line-height: 1.72;
}

.opr-prose-narrow {
    max-width: 72ch;
    margin-bottom: 44px;
}

/* Inside the aside grid the column is already the measure, so this only
   carries the trailing gap. Capping the width a second time here made the
   text narrower than intended and reopened the empty right edge. */
.opr-prose-intro {
    margin-bottom: 44px;
}

.opr-prose p {
    margin: 0 0 20px;
}

.opr-prose .opr-h2 {
    margin: 46px 0 18px;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--opr-ink);
    letter-spacing: -0.015em;
    scroll-margin-top: 96px;
}

.opr-prose .opr-block:first-child .opr-h2 {
    margin-top: 0;
}

.opr-prose .opr-h3 {
    margin: 32px 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--opr-ink);
    scroll-margin-top: 96px;
}

.opr-prose a {
    color: var(--opr-brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.opr-prose a:hover {
    color: var(--opr-brand-deep);
}

.opr-prose strong {
    color: var(--opr-ink);
    font-weight: 600;
}

.opr-prose code {
    background: var(--opr-tint);
    border: 1px solid var(--opr-line);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.9em;
}

.opr-list {
    margin: 0 0 22px;
    padding-left: 22px;
}

.opr-list li {
    margin-bottom: 9px;
}

/* ---------------------------------------------------------------
   Takeaways
   --------------------------------------------------------------- */
.opr-takeaways {
    border: 1px solid var(--opr-line);
    border-left: 4px solid var(--opr-brand);
    border-radius: 10px;
    background: var(--opr-tint);
    padding: 22px 26px 8px;
    margin-bottom: 40px;
}

.opr-takeaways-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--opr-brand-deep);
}

.opr-takeaways ul {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--opr-body);
    font-size: 16px;
    line-height: 1.62;
}

.opr-takeaways li {
    margin-bottom: 8px;
}

/* ---------------------------------------------------------------
   Callouts
   --------------------------------------------------------------- */
.opr-callout {
    border-radius: 10px;
    padding: 18px 22px 4px;
    margin: 28px 0;
    border: 1px solid var(--opr-line);
    background: var(--opr-tint);
}

.opr-callout-label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--opr-brand-deep);
}

.opr-callout-body p {
    margin: 0 0 14px;
    font-size: 16px;
}

.opr-callout-tip {
    border-color: #cfe8dc;
    background: #f2faf6;
}

.opr-callout-tip .opr-callout-label {
    color: #17795a;
}

.opr-callout-warning {
    border-color: #f2ddc0;
    background: #fdf8ef;
}

.opr-callout-warning .opr-callout-label {
    color: #a8620d;
}

.opr-callout-important {
    border-color: #f0cfd4;
    background: #fdf3f4;
}

.opr-callout-important .opr-callout-label {
    color: #a52b3d;
}

.opr-callout-takeaway {
    border-color: #d5d9f5;
    background: #f5f6fe;
}

.opr-callout-product {
    border-color: #d5d9f5;
    background: linear-gradient(135deg, #f6f4fe 0%, #f3f5ff 100%);
}

/* ---------------------------------------------------------------
   Tables
   --------------------------------------------------------------- */
.opr-table-wrap {
    margin: 30px 0;
}

.opr-table-caption {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--opr-muted);
    letter-spacing: 0.01em;
}

.opr-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--opr-line);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.opr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 520px;
}

.opr-table th,
.opr-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--opr-line);
    vertical-align: top;
}

.opr-table thead th {
    background: var(--opr-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 0;
    white-space: nowrap;
}

.opr-table tbody th {
    font-weight: 600;
    color: var(--opr-ink);
}

.opr-table tbody tr:last-child th,
.opr-table tbody tr:last-child td {
    border-bottom: 0;
}

.opr-table tbody tr:nth-child(even) {
    background: #fbfbff;
}

.opr-table tbody tr.is-highlight {
    background: #f2f0fd;
    box-shadow: inset 3px 0 0 var(--opr-brand);
}

.opr-table-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--opr-muted);
    line-height: 1.55;
}

/* ---------------------------------------------------------------
   Steps
   --------------------------------------------------------------- */
.opr-steps {
    list-style: none;
    margin: 26px 0;
    padding: 0;
    counter-reset: opr-step;
}

.opr-step {
    display: flex;
    gap: 16px;
    padding: 0 0 20px 0;
    position: relative;
}

.opr-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: var(--opr-line);
}

.opr-step-num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--opr-brand), var(--opr-brand-deep));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.opr-step-body {
    min-width: 0;
    padding-top: 3px;
}

.opr-step-title {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--opr-ink);
    font-size: 17px;
}

.opr-step-body p {
    margin: 0 0 12px;
}

/* ---------------------------------------------------------------
   Stats
   --------------------------------------------------------------- */
.opr-stats {
    display: grid;
    gap: 16px;
    margin: 28px 0;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.opr-stat {
    border: 1px solid var(--opr-line);
    border-top: 3px solid var(--opr-brand);
    border-radius: 10px;
    padding: 18px 20px;
    background: #fff;
}

.opr-stat-value {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--opr-ink);
    letter-spacing: -0.02em;
}

.opr-stat-label {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--opr-body);
    line-height: 1.45;
}

.opr-stat-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--opr-muted);
    line-height: 1.5;
}

/* ---------------------------------------------------------------
   Figures and charts
   --------------------------------------------------------------- */
.opr-figure {
    margin: 30px 0;
    border: 1px solid var(--opr-line);
    border-radius: 12px;
    padding: 22px 24px 18px;
    background: #fff;
}

.opr-figure-caption {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--opr-ink);
    line-height: 1.45;
}

.opr-figure-canvas {
    overflow-x: auto;
}

.opr-svg {
    width: 100%;
    height: auto;
    display: block;
    min-width: 480px;
    font-family: inherit;
}

.opr-figure-source {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--opr-muted);
    line-height: 1.5;
}

/* ---------------------------------------------------------------
   Checklist and comparison
   --------------------------------------------------------------- */
.opr-checklist {
    list-style: none;
    margin: 24px 0;
    padding: 20px 24px;
    border: 1px solid var(--opr-line);
    border-radius: 10px;
    background: var(--opr-tint);
}

.opr-checklist li {
    position: relative;
    padding: 6px 0 6px 30px;
    font-size: 16px;
}

.opr-checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--opr-brand);
    border-bottom: 2px solid var(--opr-brand);
    transform: rotate(-45deg);
}

.opr-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 28px 0;
}

.opr-compare-col {
    border: 1px solid var(--opr-line);
    border-radius: 10px;
    padding: 20px 22px;
    background: #fff;
}

.opr-compare-a {
    border-top: 3px solid var(--opr-brand);
}

.opr-compare-b {
    border-top: 3px solid var(--opr-brand-deep);
}

.opr-compare-title {
    margin: 0 0 4px;
    font-weight: 700;
    color: var(--opr-ink);
    font-size: 17px;
}

.opr-compare-note {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--opr-muted);
}

.opr-compare ul {
    margin: 0;
    padding-left: 20px;
    font-size: 15.5px;
}

.opr-compare li {
    margin-bottom: 8px;
}

/* ---------------------------------------------------------------
   Definition and quote
   --------------------------------------------------------------- */
.opr-definition {
    border-left: 3px solid var(--opr-brand);
    padding: 4px 0 4px 20px;
    margin: 26px 0;
}

.opr-definition-term {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--opr-ink);
}

.opr-quote {
    margin: 28px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--opr-line);
    font-size: 18px;
    font-style: italic;
    color: var(--opr-ink);
}

.opr-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-style: normal;
    color: var(--opr-muted);
}

/* ---------------------------------------------------------------
   FAQ
   --------------------------------------------------------------- */
.opr-faqs {
    border: 1px solid var(--opr-line);
    border-radius: 10px;
    overflow: hidden;
}

.opr-faq {
    border-bottom: 1px solid var(--opr-line);
}

.opr-faq:last-child {
    border-bottom: 0;
}

.opr-faq summary {
    cursor: pointer;
    padding: 16px 22px;
    font-weight: 600;
    color: var(--opr-ink);
    font-size: 16px;
    list-style: none;
    position: relative;
    padding-right: 46px;
}

.opr-faq summary::-webkit-details-marker {
    display: none;
}

.opr-faq summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--opr-brand);
}

.opr-faq[open] summary::after {
    content: "−";
}

.opr-faq summary:hover {
    background: var(--opr-tint);
}

.opr-faq-answer {
    padding: 0 22px 18px;
}

.opr-faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.68;
}

/* ---------------------------------------------------------------
   CTA
   --------------------------------------------------------------- */
.opr-cta {
    margin: 52px 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.opr-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.opr-cta-inner {
    position: relative;
    z-index: 1;
    padding: 36px 40px 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
}

.opr-cta-copy {
    min-width: 0;
}

.opr-cta-action {
    flex: 0 0 auto;
    text-align: center;
}

.opr-cta-eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.opr-cta-title {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #fff;
}

.opr-cta-text {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 68ch;
}

.opr-cta-note {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.opr-cta-btn {
    display: inline-block;
    white-space: nowrap;
    background: #fff;
    color: #4a3a86;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.opr-cta-btn:hover {
    text-decoration: none;
    color: #4a3a86;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* ---------------------------------------------------------------
   Cards and grids
   --------------------------------------------------------------- */
.opr-grid {
    display: grid;
    gap: 18px;
}

.opr-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opr-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opr-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--opr-line);
    border-radius: 12px;
    padding: 22px 22px 18px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.opr-card:hover {
    text-decoration: none;
    border-color: #c7cdf3;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(26, 26, 46, 0.08);
}

.opr-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--opr-tint);
    color: var(--opr-brand-deep);
    margin-bottom: 14px;
}

.opr-card-icon svg {
    width: 20px;
    height: 20px;
}

.opr-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--opr-ink);
    line-height: 1.35;
}

.opr-card-dek {
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--opr-body);
}

.opr-card-foot {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--opr-muted);
}

.opr-card-go {
    color: var(--opr-brand);
    font-size: 15px;
}

/* ---------------------------------------------------------------
   Hub and pillar blocks
   --------------------------------------------------------------- */
.opr-hub-block {
    padding-bottom: 46px;
    margin-bottom: 46px;
    border-bottom: 1px solid var(--opr-line);
}

.opr-hub-block:last-of-type {
    border-bottom: 0;
}

.opr-hub-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.opr-hub-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--opr-brand), var(--opr-brand-deep));
    color: #fff;
}

.opr-hub-icon svg {
    width: 22px;
    height: 22px;
}

.opr-hub-title {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.opr-hub-title a {
    color: var(--opr-ink);
    text-decoration: none;
}

.opr-hub-title a:hover {
    color: var(--opr-brand);
}

.opr-hub-dek {
    margin: 8px 0 0;
    color: var(--opr-body);
    font-size: 16px;
    line-height: 1.6;
    max-width: 72ch;
}

.opr-hub-all,
.opr-pillar-all {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--opr-brand);
    text-decoration: none;
    white-space: nowrap;
    padding-top: 6px;
}

.opr-pillar-block {
    padding: 26px 0;
    border-bottom: 1px solid var(--opr-line);
}

.opr-pillar-block:last-of-type {
    border-bottom: 0;
}

.opr-pillar-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.opr-pillar-title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.opr-pillar-title a {
    color: var(--opr-ink);
    text-decoration: none;
}

.opr-pillar-title a:hover {
    color: var(--opr-brand);
}

.opr-pillar-dek {
    margin: 6px 0 0;
    color: var(--opr-body);
    font-size: 15px;
    line-height: 1.6;
    max-width: 72ch;
}

.opr-pillar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 28px;
}

.opr-pillar-links li {
    padding: 7px 0;
    border-bottom: 1px solid #f1f2fa;
    font-size: 15px;
}

.opr-pillar-links a {
    color: var(--opr-body);
    text-decoration: none;
}

.opr-pillar-links a:hover {
    color: var(--opr-brand);
    text-decoration: underline;
}

/* ---------------------------------------------------------------
   Numbered pillar index
   --------------------------------------------------------------- */
.opr-section-title,
.opr-related-title {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 700;
    color: var(--opr-ink);
    letter-spacing: -0.01em;
}

.opr-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--opr-line);
    border-radius: 12px;
    overflow: hidden;
}

.opr-index-list li {
    border-bottom: 1px solid var(--opr-line);
}

.opr-index-list li:last-child {
    border-bottom: 0;
}

.opr-index-list a {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.opr-index-list a:hover {
    background: var(--opr-tint);
    text-decoration: none;
}

.opr-index-num {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--opr-brand);
    padding-top: 3px;
    font-variant-numeric: tabular-nums;
}

.opr-index-main {
    flex: 1 1 auto;
    min-width: 0;
}

.opr-index-title {
    display: block;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--opr-ink);
    line-height: 1.4;
}

.opr-index-dek {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--opr-body);
    line-height: 1.55;
}

.opr-index-meta {
    flex: 0 0 auto;
    font-size: 12.5px;
    color: var(--opr-muted);
    padding-top: 4px;
    white-space: nowrap;
}

/* ---------------------------------------------------------------
   Prev / next
   --------------------------------------------------------------- */
.opr-pagenav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 44px 0;
}

.opr-pagenav-item {
    border: 1px solid var(--opr-line);
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.opr-pagenav-item:hover {
    border-color: #c7cdf3;
    background: var(--opr-tint);
    text-decoration: none;
}

.opr-pagenav-next {
    text-align: right;
}

.opr-pagenav-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--opr-muted);
    margin-bottom: 6px;
}

.opr-pagenav-title {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--opr-ink);
    line-height: 1.4;
}

.opr-related {
    margin-top: 52px;
}

.opr-empty {
    color: var(--opr-muted);
    font-size: 16px;
    padding: 20px 0;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
    .opr-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .opr-with-aside {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .opr-aside {
        position: static;
        max-width: 520px;
    }

    .opr-rail {
        display: none;
    }

    .opr-toc-mobile {
        display: block;
    }
}

@media (max-width: 1240px) {
    .opr-with-aside .opr-pillar-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .opr-cta-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .opr-cta-action {
        text-align: left;
    }

    .opr-cta-note {
        white-space: normal;
    }

    .opr-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .opr-map {
        grid-template-columns: 1fr;
    }

    .opr-map-step {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .opr-map-step:last-child {
        border-bottom: 0;
    }

    .opr-pillar-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .opr-hero {
        padding: 40px 0 38px;
    }

    .opr-section {
        padding-top: 36px;
        padding-bottom: 64px;
    }

    .opr-layout {
        padding-top: 32px;
        padding-bottom: 64px;
    }

    .opr-guides .opr-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .opr-grid-2,
    .opr-grid-3,
    .opr-compare,
    .opr-pagenav {
        grid-template-columns: 1fr;
    }

    .opr-pagenav-next {
        text-align: left;
    }

    .opr-hub-head,
    .opr-pillar-head {
        flex-wrap: wrap;
    }

    .opr-hub-all,
    .opr-pillar-all {
        margin-left: 0;
        padding-top: 0;
    }

    .opr-prose {
        font-size: 16.5px;
    }

    .opr-prose .opr-h2 {
        font-size: 23px;
    }

    .opr-cta-inner {
        padding: 26px 22px 28px;
    }

    .opr-hero-index {
        padding-top: 44px;
    }

    .opr-index-list a {
        flex-wrap: wrap;
        gap: 10px;
    }

    .opr-index-meta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .opr-card,
    .opr-cta-btn,
    .opr-pagenav-item {
        transition: none;
    }

    .opr-card:hover,
    .opr-cta-btn:hover {
        transform: none;
    }
}

.opr-guides a:focus-visible,
.opr-guides summary:focus-visible {
    outline: 2px solid var(--opr-brand);
    outline-offset: 2px;
    border-radius: 3px;
}
