/*
Theme Name: LSCR
Description: Custom classic theme for the Louisiana Supreme Court Reports Digest, a subscriber legal publication. Four locked-design editor blocks, a gated PDF archive, and a bulk issue importer.
Author: Sideways Designs
Version: 0.18.5
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: lscr
*/

  :root{
    --ink:#1B2A41;
    --paper:#F6F7F8;
    --paper-dim:#ECEEF0;
    --slate:#E7EAEC;
    --slate-dim:#DCE0E3;
    --rule:#C7CCD1;
    --brass:#8A6D3B;
    /* Brass as TEXT, darkened until it clears WCAG AA (4.5:1) on every
       background it appears on. The decorative --brass above is left at
       the approved value: at 11px on the slate band the original was
       4.01:1, which is a real readability problem, but as a rule, border
       or button fill it is fine and changing it would restyle the brand
       for no benefit. Lowest ratio for this value is 4.89:1, on slate. */
    --brass-text:#7A6035;
    /* Input borders are a UI component boundary, so they answer to the
       3:1 rule rather than the 1.51:1 the hairline --rule gives. */
    --field-border:#7E868F;
    --text:#0A0C0E;
    --text-muted:#4A5561;
  }
  *{box-sizing:border-box;}
  body{
    margin:0;
    background:var(--paper);
    color:var(--text);
    font-family:'Source Serif 4', Georgia, serif;
    -webkit-font-smoothing:antialiased;
  }
  .mono{
    font-family:'IBM Plex Mono', monospace;
    letter-spacing:0.02em;
  }
  .wrap{max-width:920px;margin:0 auto;padding:0 28px;}

  /* Masthead */
  .masthead-bar{
    border-bottom:2px solid var(--ink);
    padding:14px 0;
    background:var(--slate);
  }
  .masthead-bar .wrap{
    display:flex;
    justify-content:space-between;
    align-items:center;
  }
  .masthead-date{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--text-muted);
  }
  .masthead-vol{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--text-muted);
  }

  .masthead{
    text-align:center;
    padding:36px 0 26px;
    border-bottom:1px solid var(--rule);
    border-top:3px double var(--ink);
    border-image:none;
    background:var(--slate);
  }
  .masthead-rules{
    border:none;
    border-top:1px solid var(--ink);
    height:4px;
    border-bottom:1px solid var(--ink);
    margin:0;
  }
  .masthead-inner{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:26px;
    padding-top:18px;
  }
  .gavel{
    height:44px;
    width:auto;
    flex-shrink:0;
    opacity:0.85;
    /* The real artwork exports with a hard-coded black fill, which
       render.php strips so this rule owns the colour and the gavels
       stay on the navy token with the rest of the design. */
    fill:var(--ink);
  }
  .masthead h1{
    font-size:38px;
    font-weight:700;
    letter-spacing:0.02em;
    margin:0 0 10px;
    line-height:1.05;
    text-transform:uppercase;
  }
  /* The wordmark is a link everywhere but the homepage. It should look
     like the wordmark, not like a link, so colour and underline are
     inherited; the focus ring is kept because keyboard users need it. */
  .masthead h1 .wordmark-link{
    color:inherit;
    text-decoration:none;
  }
  .masthead h1 .wordmark-link:hover{color:var(--brass-text);}
  .masthead h1 .wordmark-link:focus-visible{
    outline:2px solid var(--brass);
    outline-offset:4px;
  }
  .masthead h1 .cap{
    font-size:1.28em;
  }
  .masthead h1 .rest{
    font-size:0.82em;
    letter-spacing:0.03em;
  }
  .masthead .subtitle{
    font-size:16px;
    font-style:italic;
    color:var(--text-muted);
    margin:0 0 16px;
  }
  .masthead .tagline{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    letter-spacing:0.22em;
    text-transform:uppercase;
    color:var(--brass-text);
  }

  /* Nav */
  nav.primary{
    border-bottom:1px solid var(--ink);
    background:var(--paper);
  }
  nav.primary ul{
    list-style:none;
    display:flex;
    gap:0;
    margin:0;
    padding:0;
    justify-content:center;
    flex-wrap:wrap;
  }
  nav.primary li{border-left:1px solid var(--rule);}
  nav.primary li:first-child{border-left:none;}
  nav.primary a{
    display:block;
    padding:13px 22px;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--ink);
    text-decoration:none;
  }
  nav.primary a:hover{color:var(--brass-text);}
  /* Two selectors on purpose. The theme's own fallback menu puts the
     class on the link; wp_nav_menu puts a menu item's custom class on
     the <li>, so an assigned menu would otherwise lose the highlight. */
  nav.primary a.login,
  nav.primary li.login > a{color:var(--brass-text);}

  /* Mobile nav toggle.

     Hidden at every width by default and revealed by the script in
     header.php, which also sets data-collapsible on the nav. Both halves
     are required for the menu to collapse, so with the script blocked
     the nav falls back to the plain visible list. */
  .nav-toggle{
    display:none;
    width:100%;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:13px 0;
    margin:0;
    background:none;
    border:0;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--ink);
    cursor:pointer;
  }
  .nav-toggle:hover{color:var(--brass-text);}
  .nav-toggle:focus-visible{
    outline:2px solid var(--brass);
    outline-offset:-2px;
  }
  .nav-toggle-icon{
    display:block;
    width:20px;
    flex-shrink:0;
  }
  .nav-toggle-icon i{
    display:block;
    height:1px;
    background:currentColor;
    margin:4px 0;
    transition:transform .15s ease, opacity .15s ease;
  }
  /* Open state folds the three bars into a cross, so the control says
     "close" rather than showing a hamburger that has lost a line. */
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(1){transform:translateY(5px) rotate(45deg);}
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2){opacity:0;}
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(3){transform:translateY(-5px) rotate(-45deg);}

  @media (prefers-reduced-motion:reduce){
    .nav-toggle-icon i{transition:none;}
  }

  /* Hero / value prop */
  .hero{
    padding:52px 0 40px;
    border-bottom:1px solid var(--rule);
  }
  .hero-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:48px;
    align-items:start;
    max-width:920px;
    margin-left:auto;
    margin-right:auto;
    padding-left:28px;
    padding-right:28px;
    box-sizing:border-box;
  }
  /* Without this a grid item refuses to shrink below its min-content
     width, and the citation line (which does not wrap) drags the whole
     column, and the page, wider than a phone screen. */
  .hero-grid > *{min-width:0;}
  .hero p.lede{
    font-size:19px;
    line-height:1.6;
    color:var(--text);
    margin:0 0 20px;
    font-weight:500;
  }
  .hero .cite-example{
    font-size:12.5px;
    color:var(--text-muted);
    border-left:2px solid var(--brass);
    padding:2px 0 2px 14px;
    margin:0 0 6px;
    white-space:nowrap;
    overflow-x:auto;
  }
  .hero .support{
    font-size:14.5px;
    color:var(--text-muted);
    margin:16px 0 0;
  }
  .cta-row{
    margin-top:24px;
    display:flex;
    gap:14px;
    flex-wrap:wrap;
  }

  .btn{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.06em;
    text-transform:uppercase;
    text-decoration:none;
    padding:12px 20px;
    display:inline-block;
    border:1px solid var(--ink);
  }
  .btn.primary{background:var(--ink);color:var(--paper);}
  .btn.primary:hover{background:var(--brass);border-color:var(--brass);}
  .btn.ghost{color:var(--ink);}
  .btn.ghost:hover{border-color:var(--brass);color:var(--brass-text);}

  .hero-stat-box{
    border:1px solid var(--rule);
    padding:22px 24px;
    background:var(--paper-dim);
  }
  .hero-stat-box .num{
    font-size:34px;
    font-weight:700;
    line-height:1;
    display:block;
  }
  .hero-stat-box .label{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.06em;
    color:var(--text-muted);
    margin-top:6px;
    display:block;
  }
  .hero-stat-box .rule{
    border:none;
    border-top:1px solid var(--rule);
    margin:16px 0;
  }


  
  
  
  

  
  
  
  
  
  
  
  

  footer{
    border-top:2px solid var(--ink);
    padding:24px 0;
    text-align:center;
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    color:var(--text-muted);
    letter-spacing:0.04em;
    background:var(--slate);
  }
  footer p{margin:0;}

  /* Courtesy credit. Subordinate to the copyright line above it, but
     kept on the same muted token rather than being faded further: at
     10px, dropping the contrast as well is what turns "quiet" into
     "unreadable". Size and weight do the work instead.

     No underline at rest so it does not read as a call to action; it
     appears on hover and focus so the link is still discoverable and
     operable by keyboard. */
  .footer-credit{
    margin-top:7px;
    font-size:10px;
    letter-spacing:0.05em;
  }
  .footer-credit a{
    color:inherit;
    text-decoration:none;
  }
  .footer-credit a:hover,
  .footer-credit a:focus-visible{
    color:var(--brass-text);
    text-decoration:underline;
    text-underline-offset:2px;
  }
  .footer-credit a:focus-visible{
    outline:2px solid var(--brass);
    outline-offset:3px;
  }

  
  

  /* Subscribe page */
  .page-title{
    padding:30px 0 6px;
    text-align:center;
  }
  .page-title h2{
    font-size:26px;
    margin:0 0 8px;
    text-transform:uppercase;
    letter-spacing:0.03em;
  }
  .page-title p{
    font-size:15px;
    color:var(--text-muted);
    max-width:560px;
    margin:0 auto;
  }
  .tier-group{padding:26px 0 6px;}
  .tier-group h3{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color:var(--text-muted);
    border-bottom:1px solid var(--rule);
    padding-bottom:8px;
    margin:0 0 14px;
  }
  /* Both selectors are load-bearing.

     A core Group block whose serialized markup carries no layout
     attribute is rendered by WordPress with an extra
     .wp-block-group__inner-container between the group and its children.
     When that happens the grid is applied to a box holding exactly one
     child, so every card stretches full width and they stack instead of
     sitting side by side. Styling both means the cards lay out correctly
     whether or not WordPress inserts the wrapper, which also makes this
     survive Krystil re-saving the page in a future WordPress version. */
  .tier-cards,
  .tier-cards > .wp-block-group__inner-container{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:16px;
    margin-bottom:8px;
  }
  .tier-card{
    border:1px solid var(--rule);
    background:var(--paper-dim);
    padding:18px 20px;
  }
  .tier-card .tier-name{
    font-size:15.5px;
    font-weight:600;
    margin:0 0 4px;
  }
  .tier-card .tier-delivery{
    font-family:'IBM Plex Mono', monospace;
    font-size:10.5px;
    letter-spacing:0.06em;
    text-transform:uppercase;
    color:var(--brass-text);
    margin:0 0 12px;
  }
  .tier-card .tier-price{
    font-size:26px;
    font-weight:700;
  }
  .tier-card .tier-price span{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    font-weight:400;
    color:var(--text-muted);
    text-transform:uppercase;
  }
  .tier-card .tier-note{
    font-size:12.5px;
    color:var(--text-muted);
    margin-top:8px;
    line-height:1.4;
  }
  .subscribe-cta{
    text-align:center;
    padding:36px 0 50px;
  }

  /* Retrieve Issues / archive page */
  .archive-search{
    display:flex;
    gap:0;
    max-width:520px;
    margin:0 auto 8px;
    border:1px solid var(--ink);
  }
  .archive-search input{
    flex:1;
    border:none;
    padding:12px 14px;
    font-family:'Source Serif 4', Georgia, serif;
    font-size:14px;
    background:var(--paper);
    color:var(--text);
  }
  .archive-search button{
    border:none;
    border-left:1px solid var(--ink);
    background:var(--ink);
    color:var(--paper);
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    padding:0 20px;
    cursor:pointer;
  }
  /* Search results.

     A locked result deliberately shows the issue and month and nothing
     else. The snippet is the one place search could hand over what the
     subscription is for, so there is no styling here for "faded" or
     "truncated" summary text: for a non-subscriber the text is never
     rendered at all, not hidden with CSS. */
  .archive-results{
    margin:0 0 30px;
  }
  .archive-results-count{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.04em;
    color:var(--text-muted);
    border-bottom:1px solid var(--rule);
    padding-bottom:10px;
    margin:0 0 4px;
  }
  .archive-results-count a{
    color:var(--brass-text);
    margin-left:10px;
  }
  .archive-results-note{
    font-size:12.5px;
    color:var(--text-muted);
    margin:8px 0 0;
  }
  .archive-result-list{
    list-style:none;
    margin:0;
    padding:0;
  }
  .archive-result{
    padding:14px 0;
    border-bottom:1px solid var(--rule);
  }
  .archive-result-title{
    font-weight:600;
    font-size:16px;
    color:var(--ink);
    text-decoration:none;
  }
  .archive-result-title:hover{color:var(--brass-text);text-decoration:underline;}
  .archive-result-snippet{
    font-size:14px;
    line-height:1.55;
    color:var(--text-muted);
    margin:6px 0 0;
  }
  .archive-result-locked{
    font-size:11px;
    letter-spacing:0.06em;
    text-transform:uppercase;
    color:var(--brass-text);
    margin:6px 0 0;
  }

  .archive-hint{
    text-align:center;
    font-size:12.5px;
    color:var(--text-muted);
    margin:0 0 30px;
  }
  .volume-block{padding:0 0 8px;}
  .volume-head{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    border-top:1px solid var(--ink);
    padding:14px 0 10px;
  }
  .volume-head h3{
    font-size:17px;
    margin:0;
    text-transform:uppercase;
    letter-spacing:0.02em;
  }
  .volume-head span{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    color:var(--text-muted);
  }
  .issue-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
    gap:8px;
    padding-bottom:22px;
  }
  .issue-chip{
    border:1px solid var(--rule);
    background:var(--paper-dim);
    padding:9px 12px;
    font-family:'IBM Plex Mono', monospace;
    font-size:11.5px;
    color:var(--ink);
    text-decoration:none;
    display:block;
  }
  .issue-chip:hover{border-color:var(--brass);color:var(--brass);}
  .issue-chip .m{
    display:block;
    font-family:'Source Serif 4', Georgia, serif;
    font-size:13.5px;
    color:var(--text);
    margin-top:2px;
  }
  .login-note{
    text-align:center;
    font-size:12.5px;
    color:var(--text-muted);
    padding:8px 0 40px;
  }


/* ---------------------------------------------------------------------
   Additions for the build: accessibility helper, archive empty/missing
   states, and the inline PDF viewer. Everything above this point is the
   design-concept port.
   ------------------------------------------------------------------ */

  .screen-reader-text{
    position:absolute;
    width:1px;height:1px;
    margin:-1px;padding:0;border:0;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .screen-reader-text:focus{
    position:static;
    width:auto;height:auto;
    margin:0;padding:.6rem 1rem;
    clip-path:none;
    background:var(--paper);
    color:var(--ink);
  }

  .archive-empty{
    padding:1.5rem 0;
    color:var(--text-muted);
  }

  /* An issue with no file attached: present, but not a link. */
  .issue-chip.is-missing{
    opacity:.45;
    cursor:not-allowed;
  }

  /* The issue currently loaded into the viewer. */
  .issue-chip.is-current{
    background:var(--ink);
    color:var(--paper);
    border-color:var(--ink);
  }
  .issue-chip.is-current .m{color:var(--paper);opacity:.75;}

  /* --- inline PDF viewer --- */

  .lscr-viewer{
    margin:0 0 2.5rem;
    border:1px solid var(--rule);
    background:var(--paper);
  }

  .lscr-viewer-label{
    margin:0;
    padding:.7rem 1rem;
    border-bottom:1px solid var(--rule);
    font-size:.8rem;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:var(--text-muted);
  }

  .lscr-viewer-frame{
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--paper-dim);
  }

  .lscr-viewer-frame object{
    display:block;
    width:100%;
    border:0;
  }

  .lscr-viewer-empty,
  .lscr-viewer-fallback,
  .lscr-viewer-locked{
    margin:0;
    padding:2rem 1rem;
    text-align:center;
    color:var(--text-muted);
    font-size:.95rem;
  }

  .lscr-viewer-actions{
    margin:0;
    padding:.7rem 1rem;
    border-top:1px solid var(--rule);
    font-size:.8rem;
    display:flex;
    gap:1.25rem;
  }

  .lscr-viewer-actions a{
    color:var(--ink);
    text-decoration:none;
    border-bottom:1px solid var(--brass);
    padding-bottom:1px;
  }
  .lscr-viewer-actions a:hover{color:var(--brass);}
  .lscr-viewer-actions a[hidden]{display:none;}

  @media (max-width:640px){
    .lscr-viewer-frame{min-height:420px !important;}
    .lscr-viewer-frame object{height:420px !important;}
  }

/* ---------------------------------------------------------------------
   Full-bleed masthead (v0.5.0)

   The masthead is a block placed in page content, so it renders inside
   <main>. When <main> itself carried the .wrap max-width, the masthead's
   slate background and its rule lines stopped at 920px and read as a
   floating panel rather than a page-header band.

   Fix: <main> is now full width (.site-main) and the measure is applied
   to its direct children instead. The masthead's own band elements opt
   out and go edge to edge, while the content inside them is re-contained
   by .masthead-bar .wrap and .masthead-inner.

   Deliberately no 100vw here. vw includes the scrollbar, so the usual
   `margin-left: calc(50% - 50vw)` full-bleed trick overflows by the
   scrollbar's width and adds a horizontal scrollbar on Windows. Letting
   a full-width parent do the work avoids the problem outright.
   ------------------------------------------------------------------ */

  /* Written as main.site-main, not .site-main, on purpose.

     Moving the measure onto the children meant any component that sets
     the `margin` shorthand for its own vertical spacing (margin:0 0 2rem)
     silently reset margin-left/right to 0 and dropped out of the centred
     column. Equal specificity, later in the file, so the component won.
     That is how the contact form, the address block and the Subscribe
     page's enquiry panel each ended up pinned to the left edge.

     The tag selector wins that tie for the container, so a component
     written the ordinary way stays centred. Components in this theme
     also use margin-block for their own spacing (below), which is the
     half of the fix that stops the problem being reintroduced. */
  .site-main > *{
    max-width:920px;
    padding-left:28px;
    padding-right:28px;
    box-sizing:border-box;
  }

  /* Only the centring is tag-qualified. Keeping max-width at the plain
     specificity above lets a component narrow itself (the contact form
     is 560px); raising only the side margins is what stops a component
     from accidentally un-centring itself. */
  main.site-main > *{
    margin-left:auto;
    margin-right:auto;
  }

  /* The band elements: full width background and rules. */
  .site-main > .masthead-bar,
  .site-main > .masthead,
  .site-main > .masthead-rules,
  .site-main > .hero{
    max-width:none;
    padding-left:0;
    padding-right:0;
  }

  /* The concept set the section below the hero 44px clear of its rule.
     Nothing else in the page flow supplies that gap. */
  main.site-main > .hero + *{
    margin-top:44px;
  }

  /* Re-contain the masthead's own content at the same measure. */
  .masthead-inner{
    max-width:920px;
    margin-left:auto;
    margin-right:auto;
    padding-left:28px;
    padding-right:28px;
    box-sizing:border-box;
  }

/* ---------------------------------------------------------------------
   Subscribe: per-tier checkout buttons and the bottom enquiry CTA
   ------------------------------------------------------------------ */

  .tier-card{
    display:flex;
    flex-direction:column;
  }

  .tier-card .tier-note{
    margin-bottom:1rem;
  }

  .tier-cta{
    margin-top:auto;
    padding-top:1rem;
  }

  .tier-cta a{
    display:block;
    text-align:center;
    padding:.6rem 1rem;
    background:var(--ink);
    color:var(--paper);
    text-decoration:none;
    font-family:'IBM Plex Mono', ui-monospace, monospace;
    font-size:.78rem;
    letter-spacing:.06em;
    text-transform:uppercase;
    border:1px solid var(--ink);
  }
  .tier-cta a:hover{
    background:transparent;
    color:var(--ink);
  }

  .subscribe-help{
    margin-block:2.5rem 0;
    padding:1.75rem 1.5rem;
    border:1px solid var(--rule);
    background:var(--paper-dim);
    text-align:center;
  }
  .subscribe-help p{margin:0 0 1rem;}
  .subscribe-help p:last-child{margin-bottom:0;}

/* ---------------------------------------------------------------------
   Contact form
   ------------------------------------------------------------------ */

  .lscr-form{
    /* margin-block, not the margin shorthand: the shorthand would
       reset the auto side margins that centre this in main.site-main. */
    margin-block:0 2.5rem;
  }
  /* The form keeps the page measure so it lines up with the headings and
     address block around it; the fields are what get narrowed, because a
     920px-wide text input is uncomfortable to read back. */
  .lscr-form p{
    margin:0 0 1.1rem;
    max-width:560px;
  }
  .lscr-form label{
    display:block;
    margin-bottom:.35rem;
    font-family:'IBM Plex Mono', ui-monospace, monospace;
    font-size:.72rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--text-muted);
  }
  .lscr-form input[type=text],
  .lscr-form input[type=email],
  .lscr-form textarea{
    width:100%;
    padding:.6rem .7rem;
    border:1px solid var(--field-border);
    background:var(--paper);
    font-family:'Source Serif 4', Georgia, serif;
    font-size:1rem;
    color:var(--text);
    box-sizing:border-box;
  }
  .lscr-form input:focus,
  .lscr-form textarea:focus{
    outline:2px solid var(--brass);
    outline-offset:1px;
  }
  .lscr-form textarea{min-height:160px;resize:vertical;}
  .lscr-form button{
    padding:.65rem 1.6rem;
    background:var(--ink);
    color:var(--paper);
    border:1px solid var(--ink);
    font-family:'IBM Plex Mono', ui-monospace, monospace;
    font-size:.78rem;
    letter-spacing:.06em;
    text-transform:uppercase;
    cursor:pointer;
  }
  .lscr-form button:hover{background:transparent;color:var(--ink);}

  /* Honeypot: off-screen rather than display:none, since some bots skip
     hidden fields but will happily fill a visually-positioned one. */
  .lscr-hp{
    position:absolute!important;
    left:-9999px!important;
    width:1px;height:1px;overflow:hidden;
  }

  .lscr-form-notice{
    margin-block:0 1.5rem;
    padding:.9rem 1.1rem;
    border-left:3px solid var(--brass);
    background:var(--paper-dim);
  }
  .lscr-form-notice.is-error{border-left-color:#b32d2e;}
  .lscr-form-notice.is-success{border-left-color:#1a7f37;}

  .lscr-contact-details{
    margin-block:0 2rem;
    font-size:.95rem;
    line-height:1.7;
  }
  .lscr-contact-details .mono{display:block;}

/* ---------------------------------------------------------------------
   Responsive (v0.6.0)

   The approved design concept had no media queries at all: it was drawn
   at desktop width only. Everything below is new work rather than a
   correction, and it keeps the desktop rendering byte-identical by
   changing nothing above the breakpoints.
   ------------------------------------------------------------------ */

  /* Hero stacks before the two columns get too narrow to read. */
  @media (max-width:760px){
    .hero{padding:34px 0 30px;}
    .hero-grid{
      grid-template-columns:1fr;
      gap:26px;
    }
    .hero p.lede{font-size:17.5px;}
    /* Below this width the citation has to be allowed to wrap; keeping
       it on one line would mean a sideways scroll to read it. */
    .hero .cite-example{white-space:normal;}
  }

  /* The six nav items stop fitting on one row at about 845px, and a
     wrapped three-row list with hanging dividers reads as broken. Below
     that width the list collapses behind a toggle instead. */
  @media (max-width:880px){
    nav.primary[data-collapsible] .nav-toggle{display:flex;}

    nav.primary[data-collapsible] ul{display:none;}
    nav.primary[data-collapsible][data-open="true"] ul{
      display:block;
      padding-bottom:8px;
    }

    nav.primary[data-collapsible] li,
    nav.primary[data-collapsible] li:first-child{
      border-left:none;
      border-top:1px solid var(--rule);
    }
    nav.primary[data-collapsible] a{padding:12px 0;}
  }

  @media (max-width:640px){
    /* "VOL. 34, JULY 2026" and the domain cannot share a row at phone
       width without one of them breaking mid-phrase, so they stack and
       each stays on a single line. */
    .masthead-bar{padding:10px 0;}
    .masthead-bar .wrap{
      flex-direction:column;
      align-items:center;
      gap:3px;
    }
    .masthead-date,
    .masthead-vol{
      font-size:10.5px;
      letter-spacing:0.05em;
      white-space:nowrap;
    }

    /* At 38px the wordmark broke to four lines and the gavels floated
       beside the middle of the stack. Smaller type and smaller gavels
       bring it back to a masthead shape. */
    .masthead{padding:24px 0 20px;}
    .masthead-inner{gap:14px;padding-top:12px;}
    .masthead h1{font-size:26px;}
    .gavel{height:30px;}
    .masthead .subtitle{font-size:14.5px;margin-bottom:12px;}
    .masthead .tagline{font-size:10px;letter-spacing:0.16em;}

    .page-title{padding:24px 0 4px;}
    .page-title h2{font-size:22px;}
  }

  @media (max-width:420px){
    .masthead h1{font-size:22px;}
    .masthead-inner{gap:10px;}
    .gavel{height:24px;}
    .cta-row .btn{width:100%;text-align:center;}
  }
