:root {
    /* onthebrief blue palette — extracted from logo */
    --otb-dark:    #1e5270;   /* "brief" — dark teal-navy */
    --otb-mid:     #2b76a3;   /* "the"  — mid blue        */
    --otb-light:   #5ba8cc;   /* "on"   — light steel blue*/
    --otb-pale:    #e8f4fa;   /* very light blue tint     */
    --otb-pale2:   #f0f8fc;
    --ink:         #1a1a1e;
    --ink-mid:     #3c3c42;
    --ink-light:   #6d6d7a;
    --rule:        #d0dde6;
    --surface:     #ffffff;
    --bg:          #f7fafc;
    --cream-dark:  #e4edf3;
    /* coverage accent colors — kept but re-toned to blue family */
    --highlight-um:   #e8f4fa;
    --highlight-umpd: #e8f5ee;
    --highlight-pip:  #fef9ee;
    --tag-um:   #1e5270;
    --tag-umpd: #2e7fab;
    --tag-pip:  #5ba8cc;
    /* legacy aliases used elsewhere */
    --navy:       var(--otb-dark);
    --navy-deep:  #142e40;
    --navy-mid:   var(--otb-mid);
    --gold:       var(--otb-mid);
    --gold-light: var(--otb-light);
    --gold-pale:  var(--otb-pale);
    --cream:      var(--bg);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.75;
  }


  /* ── SKIP NAV ───────────────────────────────────────────────────────────── */
  .skip-nav {
    position: absolute;
    top: -3rem;
    left: 0;
    background: var(--otb-dark);
    color: white;
    padding: 0.5rem 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 9999;
    transition: top 0.1s;
  }
  .skip-nav:focus { top: 0; }

  /* ── BLOG MASTHEAD ─────────────────────────────────────────────────────── */
  .blog-masthead {
    background: white;
    border-bottom: 1px solid var(--rule);
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .blog-masthead-logo {
    font-family: 'Nunito', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
  }
  .logo-on   { color: var(--otb-light); }
  .logo-the  { color: var(--otb-mid); }
  .logo-brief{ color: var(--otb-dark); }
  .blog-masthead-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--ink-light);
    letter-spacing: 0.01em;
  }
  .blog-masthead-nav {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--ink-light);
    display: flex;
    gap: 0.3rem;
    align-items: center;
    text-transform: uppercase;
  }
  .blog-masthead-nav a {
    color: var(--otb-dark);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 3px;
    transition: background-color 0.12s, color 0.12s;
  }
  .blog-masthead-nav a:hover {
    background: var(--otb-pale);
    color: var(--otb-dark);
  }
  .blog-masthead-nav a.active {
    color: white;
    background: var(--otb-dark);
    font-weight: 500;
    border-bottom: none;
    padding-bottom: 7px;
  }
  /* Section chip dropdowns */
  .blog-masthead-nav .nav-item { position: relative; display: inline-flex; align-items: center; }
  .blog-masthead-nav .nav-item > a::after {
    content: '\25be';
    font-size: 9px;
    margin-left: 5px;
    opacity: 0.55;
    position: relative;
    top: -1px;
  }
  .blog-masthead-nav .nav-submenu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 340px;
    max-width: 460px;
    max-height: 440px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--rule);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(30, 82, 112, 0.14);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.14s, transform 0.14s, visibility 0.14s;
    z-index: 100;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }
  .blog-masthead-nav .nav-item:hover .nav-submenu,
  .blog-masthead-nav .nav-item:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* transparent bridge so the 6px gap doesn't break hover */
  .blog-masthead-nav .nav-submenu::before {
    content: '';
    position: absolute;
    top: -6px; left: 0; right: 0; height: 6px;
  }
  .blog-masthead-nav .nav-submenu a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 14px;
    color: var(--ink-mid);
    background: transparent;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
  }
  .blog-masthead-nav .nav-submenu a:hover {
    background: var(--otb-pale);
    color: var(--otb-dark);
  }
  .blog-masthead-nav .nav-submenu .ors {
    font-family: 'DM Mono', monospace;
    font-size: 11.5px;
    color: var(--otb-dark);
    font-weight: 500;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    min-width: 72px;
  }
  .blog-masthead-nav .nav-submenu .title {
    flex: 1;
    color: var(--ink-mid);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
  }
  /* PIP (17 statutes) renders in two columns */
  .blog-masthead-nav .nav-submenu--wide {
    min-width: 640px;
    max-width: 720px;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 6px;
    row-gap: 0;
    padding: 8px;
  }

  /* ── RESOURCE HEADER ───────────────────────────────────────────────────── */
  header {
    background: var(--otb-dark);
    color: white;
    border-bottom: 4px solid var(--otb-light);
  }
  .sponsor-strip {
    background: var(--otb-pale);
    border-bottom: 1px solid var(--rule);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }
  .sponsor-strip span { font-size: 12px; color: var(--ink-mid); font-family: 'Inter', sans-serif; }
  .sponsor-strip a { display: flex; align-items: center; }
  .sponsor-strip img { height: 28px; width: auto; display: block; }
  .header-inner { max-width: 860px; margin: 0 auto; padding: 2.5rem 2rem 2rem; }
  .header-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    color: var(--otb-light);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .header-eyebrow::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--otb-light);
    border-radius: 1px;
  }
  .presents-line {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 0.7rem;
    text-align: left;
  }
  .presents-line .presents-word {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    margin-left: 0.3rem;
  }
  header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
  }
  header .subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
  }
  .coverage-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
  }
  .pill-um   { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: white; }
  .pill-umpd { background: rgba(255,255,255,0.08); border: 1px solid rgba(100,200,130,0.4); color: #7dcca0; }
  .pill-pip  { background: rgba(255,255,255,0.08); border: 1px solid rgba(220,180,80,0.4); color: #e8c96a; }
  .pill-atty { background: rgba(255,255,255,0.08); border: 1px solid rgba(180,130,240,0.4); color: #c9a8f0; }
  .pill-ucp  { background: rgba(255,255,255,0.08); border: 1px solid rgba(240,130,130,0.4); color: #f0a8a8; }
  .pill:hover { transform: translateY(-1px); filter: brightness(1.15); }
  .pill-dot { width: 6px; height: 6px; border-radius: 50%; }
  .pill-um .pill-dot   { background: var(--otb-light); }
  .pill-umpd .pill-dot { background: #4a9a68; }
  .pill-pip .pill-dot  { background: #c9a030; }
  .pill-atty .pill-dot { background: #9a68cc; }
  .pill-ucp .pill-dot  { background: #cc6868; }

  /* ── LAYOUT ────────────────────────────────────────────────────────────── */
  .layout { max-width: 860px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }

  /* ── HEADER SEARCH ─────────────────────────────────────────────────────── */
  .header-search {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .header-search input {
    flex: 1;
    max-width: 360px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 5px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
  }
  .header-search input:focus {
    border-color: var(--otb-light);
    background: rgba(255,255,255,0.16);
  }
  .header-search input::placeholder { color: rgba(255,255,255,0.4); }
  .search-clear {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 6px;
    display: none;
  }
  .search-clear:hover { color: white; }
  .search-results-count {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--otb-light);
  }

  /* ── INTRO GRID ────────────────────────────────────────────────────────── */
  .intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 4px rgba(30,82,112,0.07);
  }
  .intro-cell {
    background: white;
    padding: 1.1rem 1.4rem;
  }
  .intro-cell-label {
    font-family: 'DM Mono', monospace;
    font-size: 9.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 3px;
  }
  .intro-cell-value {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--otb-dark);
  }
  .intro-cell-sub { font-size: 11.5px; color: var(--ink-light); margin-top: 1px; }

  /* ── STATUTE GROUPS ────────────────────────────────────────────────────── */
  .statute-group { margin-bottom: 3.5rem; scroll-margin-top: 2rem; }
  .subgroup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--otb-light);
  }
  .subgroup-header h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--otb-dark);
    letter-spacing: -0.01em;
  }
  .subgroup-range {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--ink-light);
    margin-left: auto;
    flex-shrink: 0;
  }
  .group-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--otb-dark);
  }
  .group-tag {
    font-family: 'DM Mono', monospace;
    font-size: 9.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    flex-shrink: 0;
  }
  .tag-um   { background: var(--otb-dark);  color: rgba(255,255,255,0.9); }
  .tag-umpd { background: #2e7fab; color: #e8f4fa; }
  .tag-pip  { background: #5ba8cc; color: #0f2e42; }
  .tag-atty { background: #1a4a30; color: #7cc49a; }
  .tag-ucp  { background: #3c3830; color: #b8b0a0; }
  .group-header h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--otb-dark);
    letter-spacing: -0.01em;
  }
  .group-range {
    font-family: 'DM Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-light);
    margin-left: auto;
    flex-shrink: 0;
  }

  /* ── STATUTE CARD ──────────────────────────────────────────────────────── */
  .statute {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 6px;
    margin-bottom: 1rem;
    scroll-margin-top: 2rem;
    transition: box-shadow 0.15s ease;
  }
  .statute:hover { box-shadow: 0 2px 10px rgba(30,82,112,0.09); }
  .statute-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--cream-dark);
    cursor: pointer;
    user-select: none;
  }
  .statute-header:hover .expand-icon { color: var(--otb-mid); }
  /* Static (non-collapsible) statute card — used on per-statute pages where the
     statute body is the page's whole reason for existing, so the toggle is removed. */
  .statute-static .statute-header { cursor: default; user-select: auto; }
  .statute-static:hover { box-shadow: 0 1px 3px rgba(30,82,112,0.05); }
  .statute-static .expand-icon { display: none; }
  .statute-id {
    font-family: 'DM Mono', monospace;
    font-size: 11.5px;
    color: var(--otb-mid);
    flex-shrink: 0;
    font-weight: 400;
  }
  .statute-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    flex: 1;
    line-height: 1.35;
  }
  .expand-icon {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--ink-light);
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
  }
  .statute.open .expand-icon { transform: rotate(90deg); color: var(--otb-mid); }
  .statute-body { display: none; padding: 1.25rem 1.5rem; }
  .statute.open .statute-body { display: block; }
  .statute-body p, .statute-body li {
    font-size: 16px;
    line-height: 1.78;
    color: var(--ink-mid);
    font-family: 'Inter', sans-serif;
  }
  .statute-body .sub   { margin-left: 1.5rem; margin-top: 0.4rem; }
  .statute-body .subsub{ margin-left: 3rem;   margin-top: 0.25rem; }
  .statute-body p + p, .statute-body .sub + .sub { margin-top: 0.4rem; }
  .statute-body .lead  { margin-bottom: 0.7rem; }
  .xref {
    font-family: 'Century Schoolbook', 'Century', Georgia, serif;
    font-size: inherit;
    color: var(--otb-dark);
    background: var(--otb-pale);
    border-bottom: 1px solid var(--otb-light);
    text-decoration: none;
    cursor: pointer;
    padding: 0 2px;
  }
  .xref:hover { background: #c8e6f5; }
  .xref.ext {
    background: #fdf6e3;
    color: #8a6d1a;
    border-bottom-color: #c9a84c;
  }
  .xref.ext:hover { background: #f5e8c8; }
  .xref.ext::after {
    content: '↗';
    font-size: 0.78em;
    margin-left: 1px;
    opacity: 0.7;
    vertical-align: middle;
  }
  .note-box {
    margin-top: 1.1rem;
    padding: 0.8rem 1rem;
    background: var(--otb-pale2);
    border-left: 3px solid var(--otb-light);
    border-radius: 0 4px 4px 0;
  }
  .note-box p { font-size: 13px; color: var(--ink-mid); font-style: italic; }
  .note-box strong {
    font-style: normal;
    font-family: 'DM Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--otb-mid);
    display: block;
    margin-bottom: 3px;
  }
  .history {
    margin-top: 1.1rem;
    font-family: 'DM Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-light);
    padding-top: 0.85rem;
    border-top: 1px solid var(--cream-dark);
  }
  /* Series Note — annotation paragraph appearing immediately above .history,
     used for legislative-action notes (e.g., "742.505 was added to and made a part
     of ORS chapter 742 by legislative action but was not added to any smaller
     series therein"). Treated as a real annotation, not a small italic afterthought. */
  .series-note {
    margin-top: 1.1rem;
    padding: 0.55rem 0.85rem;
    border-left: 3px solid var(--otb-mid);
    background: var(--otb-pale2);
    color: var(--ink);
    font-size: 0.95em;
    line-height: 1.55;
  }
  .series-note .note-label {
    font-weight: 700;
    color: var(--otb-dark);
    margin-right: 0.25rem;
  }
  .xref-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.4rem; }
  .xref-badge {
    font-family: 'DM Mono', monospace;
    font-size: 10.5px;
    padding: 2px 7px;
    background: var(--otb-pale);
    border: 1px solid var(--rule);
    border-radius: 3px;
    color: var(--otb-dark);
    cursor: pointer;
    text-decoration: none;
  }
  .xref-badge:hover { background: #c8e6f5; border-color: var(--otb-light); }

  /* ── FOOTER ────────────────────────────────────────────────────────────── */
  footer {
    border-top: 1px solid var(--rule);
    padding: 2rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--ink-light);
    background: white;
  }
  .footer-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  footer a { color: var(--otb-mid); text-decoration: none; }
  footer a:hover { text-decoration: underline; }

  /* ── HIGHLIGHT ─────────────────────────────────────────────────────────── */
  mark { background: #cde9f7; padding: 0 2px; border-radius: 2px; }
  .search-hidden { display: none !important; }

  /* ── VERSION HISTORY STRIP ─────────────────────────────────────────────── */
  .version-strip {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cream-dark);
  }
  .version-strip-label {
    font-family: 'DM Mono', monospace;
    font-size: 9.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 0.5rem;
  }
  .version-timeline { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .version-btn {
    font-family: 'DM Mono', monospace;
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid var(--rule);
    background: white;
    color: var(--otb-dark);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.12s ease;
    white-space: nowrap;
  }
  .version-btn:hover {
    background: var(--otb-pale);
    border-color: var(--otb-light);
    color: var(--otb-dark);
  }
  .version-btn.current {
    background: var(--otb-dark);
    color: white;
    border-color: var(--otb-dark);
    cursor: default;
  }
  .version-btn.renumbered {
    background: #f0f5fb;
    border-color: #90b4d0;
    color: #1e5270;
  }
  .version-btn.renumbered:hover { background: #ddeaf5; border-color: var(--otb-mid); }
  .version-btn .v-arrow { font-size: 9px; opacity: 0.6; }
  .version-sep {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--rule);
    padding: 0 1px;
    user-select: none;
  }
  .version-note {
    margin-top: 0.45rem;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--ink-light);
    font-style: italic;
  }
  .version-note span {
    display: inline-block;
    background: var(--otb-pale);
    border: 1px solid var(--otb-light);
    color: var(--otb-dark);
    border-radius: 3px;
    padding: 1px 6px;
    margin: 0 2px;
    font-style: normal;
  }

  .edition-badge {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--otb-light);
    background: rgba(91,168,204,0.18);
    border: 1px solid rgba(91,168,204,0.35);
    border-radius: 3px;
    padding: 1px 8px;
    vertical-align: middle;
    margin-left: 0.4rem;
  }

  @media (max-width: 768px) {
    .layout { padding: 1.25rem 1rem 3rem; }
    header  { padding: 1.75rem 1rem 1.5rem; }
    .intro-grid { grid-template-columns: 1fr 1fr; }
    .header-search input { max-width: 100%; }
    .blog-masthead { flex-wrap: nowrap; gap: 0.5rem; }
  }
/* ── PRINT FEATURE ──────────────────────────────────────────────────────── */
.otp-print-menu {
  position: fixed;
  background: #fff;
  border: 1px solid #c8d8e4;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(30,82,112,0.18);
  padding: 0.3rem 0;
  min-width: 230px;
  z-index: 9999;
}
.otp-print-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  color: #1e5270;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.otp-print-menu-item:hover { background: #eef4f9; }
.otp-print-menu-item.divider { border-top: 1px solid #e0e8ee; margin-top: 0.2rem; padding-top: 0.55rem; }
.layout-toggle .otp-print-trigger {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: white;
  color: var(--otb-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  transition: all 0.12s ease;
}
.layout-toggle .otp-print-trigger:hover {
  background: var(--otb-pale);
  border-color: var(--otb-light);
}
.otp-era-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,45,65,0.45);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.otp-era-picker-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(20,45,65,0.22);
  padding: 1.4rem 1.6rem 1.6rem;
  max-width: 340px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.otp-era-picker-heading {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e5270;
  margin-bottom: 1rem;
  padding-right: 1.5rem;
}
.otp-era-picker-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
}
.otp-era-picker-close:hover { color: #1e5270; }
.otp-era-picker-list { display: flex; flex-direction: column; gap: 0.35rem; }
.otp-era-picker-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.75rem;
  background: #f2f7fb;
  border: 1px solid #d4e4ef;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #1e5270;
  font-family: inherit;
}
.otp-era-picker-btn:hover { background: #ddeef7; border-color: #2e7fab; }

/* ── Statute-page prev/next + hub nav (inside header) ───────────────────── */
.snav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.snav-btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--otb-light);
  background: rgba(91,168,204,0.18);
  border: 1px solid rgba(91,168,204,0.35);
  border-radius: 3px;
  padding: 2px 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.snav-btn:hover {
  background: rgba(91,168,204,0.32);
  border-color: rgba(91,168,204,0.65);
  color: #fff;
}
.snav-btn.snav-active {
  background: rgba(91,168,204,0.42);
  border-color: var(--otb-light);
  color: #fff;
}
.snav-hubs {
  display: flex;
  gap: 0.3rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

/* ──────── secondary block (version panel + leg-history modal) ──────── */

/* ─── INLINE VERSION PANEL (dark navy + gold, restored from older site) ─── */
.version-inline-panel {
  background: var(--navy-deep);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--gold);
}
.vip-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem 0.85rem;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.3);
}
.vip-ors {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--otb-light);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.vip-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  color: white;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.vip-subtitle {
  font-size: 12px;
  color: #8fa4c8;
  margin-top: 4px;
  font-style: italic;
  line-height: 1.4;
}
.vip-close {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #8fa4c8;
  background: none;
  border: 1px solid rgba(143,164,200,0.3);
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}
.vip-close:hover { color: var(--gold-light); border-color: var(--gold); }
.vip-change-alert {
  margin: 0.75rem 1.25rem;
  padding: 0.7rem 1rem;
  background: rgba(201,168,76,0.12);
  border-left: 3px solid var(--gold);
  border-radius: 0 3px 3px 0;
  font-size: 12.5px;
  color: #c8d8f0;
  line-height: 1.6;
}
.vip-change-alert strong {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 4px;
}
.vip-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.78;
  color: #c8d8f0;
  padding: 1.25rem 1.5rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  background: transparent;
}
.vip-hist-line {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #6a86a8;
  padding: 0 1.5rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.75rem;
}
.vip-sources {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #8fa4c8;
  padding: 0.6rem 1.5rem 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}
.vip-sources strong {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 0.45rem;
}
.vip-sources a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px dotted rgba(201,168,76,0.4);
}
.vip-sources a:hover { color: white; border-bottom-color: var(--gold); }
.vip-source-note {
  color: #8fa4c8;
}

/* Optional per-version editor's-note block (kept as fallback for v.noteHtml) */
.vip-ed-note-block {
  margin: 0 1.25rem 0.75rem;
  padding: 0.7rem 0.95rem;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--gold-light);
  border-radius: 0 3px 3px 0;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #c8d8f0;
  line-height: 1.55;
}
.vip-ed-note-block strong {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 4px;
}

/* legacy caveat strong — kept for safety */
.vip-caveat strong {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--otb-mid);
  display: block;
  margin-bottom: 3px;
}

/* ─── ED-NOTE HOVER TOOLTIP (singleton, body-anchored) ──────────────────── */
.ed-note {
  border-bottom: 1px dotted var(--gold-light);
  cursor: help;
  color: inherit;
  background: rgba(201,168,76,0.10);
  padding: 0 1px;
  border-radius: 2px;
  text-decoration: none;
}
.ed-note:hover, .ed-note:focus {
  background: rgba(201,168,76,0.22);
  outline: none;
}
.ed-note-tooltip {
  position: fixed;
  display: none;
  max-width: 360px;
  padding: 0.55rem 0.75rem;
  background: var(--ink);
  color: #fdf6e3;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
  border-radius: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  pointer-events: none;
}
.ed-note-tooltip-arrow {
  position: fixed;
  display: none;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--ink);
  z-index: 10000;
  pointer-events: none;
}
.ed-note-tooltip-arrow.below {
  border-top: none;
  border-bottom: 6px solid var(--ink);
}

/* ─── LEGISLATIVE HISTORY BUTTON ────────────────────────────────────────── */
.leg-history-btn {
  background: var(--otb-pale);
  border-color: var(--otb-light);
  color: var(--otb-dark);
  font-style: normal;
}
.leg-history-btn:hover {
  background: #c8e6f5;
  border-color: var(--otb-mid);
  color: var(--otb-dark);
}

/* ─── LEGISLATIVE HISTORY MODAL (popup overlay, restored from older site) ─ */
.lhm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,25,40,0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lhm-modal {
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--rule);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(10,25,40,0.3);
}
.lhm-head {
  background: var(--otb-dark);
  padding: 1.1rem 1.4rem 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 3px solid var(--otb-light);
  position: sticky;
  top: 0;
}
.lhm-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  flex: 1;
}
.lhm-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
}
.lhm-close {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  flex-shrink: 0;
  line-height: 1;
}
.lhm-close:hover { color: white; }
.lhm-section {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.lhm-section:last-child { border-bottom: none; }
.lhm-section-head {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--otb-mid);
  margin-bottom: 0.65rem;
}
.lhm-section-body {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-mid);
  font-family: 'Inter', sans-serif;
  margin: 0;
}
.lhm-chron-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--cream-dark);
}
.lhm-chron-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.lhm-chron-year {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--otb-mid);
  padding-top: 2px;
  flex-shrink: 0;
}
.lhm-chron-text {
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-mid);
  font-family: 'Inter', sans-serif;
}
.lhm-caveat-section { background: var(--otb-pale2); }
.lhm-caveat-section .lhm-section-body {
  font-size: 12px;
  color: var(--ink-light);
  font-style: italic;
}
.lhm-sources-section { background: #fafaf6; }
.lhm-sources-subhead {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--otb-dark);
  margin: 0.7rem 0 0.3rem;
  letter-spacing: 0.02em;
}
.lhm-sources-subhead:first-of-type { margin-top: 0; }
.lhm-sources-list {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.9;
  color: var(--ink-light);
  word-spacing: 0.1em;
}
.lhm-sources-list a {
  color: var(--otb-mid);
  text-decoration: none;
  border-bottom: 1px dotted var(--otb-light);
  padding: 0 1px;
}
.lhm-sources-list a:hover { color: var(--otb-dark); border-bottom-color: var(--otb-mid); }
.lhm-sources-list .vip-source-note { color: var(--otb-mid); }
.lhm-sources-list .ed-note { color: var(--otb-mid); }

/* About dropdown is a single-column list of short labels — let the menu hug
   its content instead of inheriting the wide statute-dropdown minimum. */
.blog-masthead-nav .nav-dd-menu--about {
  min-width: 0;
  width: max-content;
}
.blog-masthead-nav .nav-dd-menu--about a {
  white-space: nowrap;
  padding-right: 1.4rem;
}

/* ────────── side-by-side version-history layout ────────── */
/* Toggle bar — between .statute-header and .statute-body */
.layout-toggle {
  padding: 0.55rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.layout-toggle-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: white;
  color: var(--otb-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s ease;
}
.layout-toggle-btn:hover {
  background: var(--otb-pale);
  border-color: var(--otb-light);
}
.layout-toggle-btn.active {
  background: var(--otb-dark);
  color: white;
  border-color: var(--otb-dark);
}
.layout-toggle-icon {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1;
}

/* Side-by-side mode — splits the layout 50/50, removes the centered 860px
   column. Grid is on .statute itself so the version panel's title bar
   aligns with .statute-header on the left. */
body.side-by-side .layout {
  max-width: none;
  padding: 1.5rem 2rem 3rem;
}
body.side-by-side .statute.statute-static.open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2rem;
  align-items: start;
}
body.side-by-side .statute.statute-static.open > .statute-header,
body.side-by-side .statute.statute-static.open > .layout-toggle,
body.side-by-side .statute.statute-static.open > .statute-body {
  grid-column: 1;
  min-width: 0;
}

/* Side-pane slot — col 2, stretches to full grid row height. The version
   panel inside is sticky so it locks at top: 1rem and stays visible no
   matter how far the user scrolls through the statute on the left. */
.statute-side-pane { display: none; }
body.side-by-side .statute.statute-static.open > .statute-side-pane {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 9999;
  align-self: stretch;
  min-width: 0;
}
body.side-by-side .statute.statute-static.open > .statute-side-pane > .version-inline-panel {
  position: sticky;
  top: 1rem;
  margin: 0;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
body.side-by-side .statute.statute-static.open > .statute-side-pane:empty::before {
  content: 'Click an era button below to view that version here';
  display: block;
  position: sticky;
  top: 1rem;
  padding: 1.5rem;
  border: 1px dashed var(--rule);
  border-radius: 6px;
  color: var(--ink-light);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-align: center;
  background: var(--otb-pale2);
}

/* Rotate-to-landscape hint shown near the side-by-side toggle when a phone in
   portrait taps it (side-by-side needs the width; landscape works fine).
   Injected by initSideBySideToggle(); dismissible. */
.sbs-rotate-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 1.2rem 0.7rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--otb-light);
  border-left: 3px solid var(--otb-mid);
  border-radius: 5px;
  background: var(--otb-pale);
  color: var(--otb-dark);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.35;
}
.sbs-rotate-note .sbs-rotate-text { flex: 1; }
.sbs-rotate-note .sbs-rotate-dismiss {
  flex: none;
  border: none;
  background: transparent;
  color: var(--otb-mid);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.sbs-rotate-note .sbs-rotate-dismiss:hover { color: var(--otb-dark); }

/* Defensive fallback: if side-by-side is somehow active on a phone in portrait
   (e.g. rotated from landscape before the JS handler fires), un-grid back to a
   single column so the statute text is never crushed. */
@media (max-width: 600px) and (orientation: portrait) {
  body.side-by-side .statute.statute-static.open {
    display: block;
  }
}

/* ────────── Edition History strip moved to top of statute body ────────── */
/* On per-statute sub-pages with version data, the page-load JS reparents the
   .version-strip from its default position (after the [Formerly...] history
   line at the bottom) to the top of .statute-body, sitting flush under the
   side-by-side toggle bar. The .version-strip--top class persists even when
   an era panel pushes the strip down to second-child, so the divider stays. */
.statute.statute-static.open > .statute-body.statute-body--strip-on-top {
  padding-top: 0;
}
.statute.statute-static.open > .statute-body > .version-strip--top {
  margin-top: 0;
  padding-top: 1rem;
  border-top: none;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 1.25rem;
}

/* ──────── masthead nav dropdowns (multi-page site) ──────── */
.blog-masthead-nav .nav-dd { position: relative; }
.blog-masthead-nav .nav-dd-trigger { font-family: 'Inter', sans-serif; }
.blog-masthead-nav > a { font-family: 'Inter', sans-serif; font-weight: 600; }
.blog-masthead-nav .nav-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(30, 82, 112, 0.12);
  padding: 0.45rem 0;
  min-width: 340px;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 200;
  /* override .blog-masthead-nav's uppercase + letter-spacing inheritance */
  text-transform: none;
  letter-spacing: 0;
}
.blog-masthead-nav .nav-dd:hover .nav-dd-menu,
.blog-masthead-nav .nav-dd:focus-within .nav-dd-menu { display: block; }
.blog-masthead-nav .nav-dd-menu a {
  display: flex;
  gap: 0.7rem;
  padding: 0.42rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 0;
  align-items: baseline;
  border-radius: 0;
}
.blog-masthead-nav .nav-dd-menu a:hover { background: var(--otb-pale); color: var(--otb-dark); }
.blog-masthead-nav .nav-dd-id {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--otb-mid);
  flex-shrink: 0;
  min-width: 78px;
}
.blog-masthead-nav .nav-dd-title {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

/* About dropdown is a single-column list of short labels — let the menu hug
   its content instead of inheriting the wide statute-dropdown minimum. */
.blog-masthead-nav .nav-dd-menu--about {
  min-width: 0;
  width: max-content;
}
.blog-masthead-nav .nav-dd-menu--about a {
  white-space: nowrap;
  padding-right: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
}

/* ──────── masthead hamburger + mobile accordion (multi-page site) ──────── */
.blog-masthead-nav .nav-dd-trigger::after { content: '\25be'; margin-left: 0.4em; }
.nav-toggle {
  display: none;            /* shown only <=900px */
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px; height: 34px;
  padding: 0 8px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 5px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--otb-dark); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .blog-masthead { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .blog-masthead-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--rule);
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
  }
  .blog-masthead-nav.open { display: flex; }
  .blog-masthead-nav > a,
  .blog-masthead-nav .nav-dd-trigger {
    display: block;
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--cream-dark);
  }
  .blog-masthead-nav .nav-dd { position: static; }
  .blog-masthead-nav .nav-dd-trigger::after { float: right; display: inline-block; transition: transform 0.15s; }
  .blog-masthead-nav .nav-dd.open .nav-dd-trigger::after { transform: rotate(180deg); }
  .blog-masthead-nav .nav-dd:hover .nav-dd-menu,
  .blog-masthead-nav .nav-dd:focus-within .nav-dd-menu { display: none; }
  .blog-masthead-nav .nav-dd-menu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    min-width: 0;
    max-height: none;
    background: var(--otb-pale);
  }
  .blog-masthead-nav .nav-dd.open .nav-dd-menu { display: block; }
}
