/* Corrections pages, the /digest/ landing and the per-page "Report an error" link. Tokens from style.css (:root). */
.cx,.dgl{color:var(--ink);font-family:var(--sans)}
.cx *,.dgl *{box-sizing:border-box}
.cx ::selection,.dgl ::selection{background:var(--ink);color:var(--bg)}
.cx{max-width:640px;padding:28px 0 40px}
.cx-kicker,.dgl-kicker{margin:0 0 8px;font-size:13px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
.cx h1,.dgl-h{margin:0 0 10px;border:0;padding:0;font-family:var(--serif);font-weight:500;font-size:clamp(32px,4.4vw,48px);line-height:1.05;letter-spacing:-.02em;text-wrap:balance;color:var(--ink)}
.cx-lede,.dgl-lede{margin:0 0 24px;max-width:52ch;font-size:17px;line-height:1.5;color:var(--mut);text-wrap:pretty}
.cx-form{margin:0;padding:22px;border:1px solid var(--line);background:var(--bg-raised)}

/* "About this page": one row of fixed height, there from first paint. Until corrections.js fills it the row is
   invisible but still takes its space, so revealing it moves nothing. A long path is cut with an ellipsis, not wrapped. */
.cx-about{display:flex;align-items:center;gap:.35em;height:44px;margin:-8px 0 14px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.4;color:var(--mut);white-space:nowrap}
.cx-about[hidden]{display:flex;visibility:hidden}
.cx-about span{flex:none}
.cx-about a{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;line-height:44px;color:var(--ink)}

.cx-field{margin:0 0 16px}
.cx-field label{display:block;margin:0 0 6px;font-size:14px;font-weight:650;line-height:1.3}
.cx-opt{font-weight:400;color:var(--faint)}
.cx select,.cx textarea,.cx input[type="url"]{display:block;width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--ink);border-radius:0;background:var(--bg);color:var(--ink);font:16px/1.4 var(--sans);caret-color:var(--buy);appearance:none}
.cx input::placeholder{color:#6a6156;opacity:1}
.cx select{background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:40px;cursor:pointer}
.cx textarea{min-height:150px;resize:vertical}
.cx select:focus-visible,.cx textarea:focus-visible,.cx input:focus-visible,.cx-btn:focus-visible,.cx a:focus-visible,.corr-link a:focus-visible{outline:2px solid #6f4b2d;outline-offset:2px}
/* invalid: a heavier rule as well as the colour, and the status line says "Error:" in words */
.cx [aria-invalid="true"]{border-color:var(--sell);box-shadow:inset 0 0 0 2px var(--sell)}
.cx-hint{margin:6px 0 0;font-size:14px;line-height:1.45;color:var(--faint)}

/* status line: the space for the longest message is always reserved (one line here, more on narrow screens below) */
.cx-status{min-height:1.45em;margin:0 0 12px;font-size:15px;line-height:1.45;text-wrap:pretty}
.cx-err{color:var(--sell);font-weight:650}
.cx-err b{font-weight:650;text-transform:uppercase;letter-spacing:.06em;font-size:13px}

.cx-btn{min-height:48px;padding:0 22px;border:1px solid var(--ink);border-radius:0;background:var(--ink);color:var(--bg);font:650 16px/1 var(--sans);letter-spacing:0;text-transform:none;cursor:pointer}
.cx-btn:hover{background:#3a342c;border-color:#3a342c;color:var(--bg)}
.cx-btn:active{background:#000}
.cx-fine{margin:14px 0 0;font-size:14px;line-height:1.45;color:var(--faint);text-wrap:pretty}
/* links inside running text keep the line height; the 44px tap target is the ::after box */
.cx-fine a{position:relative;color:var(--ink);text-underline-offset:3px}
.cx-fine a::after{content:"";position:absolute;inset:-12.5px -8px}
.cx-next{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;margin:0 0 24px;font-size:16px}
.cx-next a{display:inline-block;padding:10px 0;line-height:24px;color:var(--ink);text-underline-offset:3px}
.cx-guard,.dgl-guard{margin:28px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:14px;line-height:1.5;color:var(--faint)}

/* /digest/ landing: the chart leads, the form sits beside it (stacked on phones).
   digest.css styles body[data-page="digest"] for the short Worker pages (a centred flex column); this page is a
   normal document page, so that is undone here. */
body[data-page="digest"] main.wrap:has(> .dgl){display:block;padding-top:36px;padding-bottom:72px}
.dgl{padding:28px 0 40px}
.dgl-head{max-width:760px}
.dgl-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:32px;align-items:stretch;margin:4px 0 44px}
.dgl-chart{display:flex}
.dgl-chart .dg-preview{flex:1 1 auto;margin:0;padding:22px 24px 20px}
.dgl-chart .dg-tiles dd{font-size:clamp(40px,4.4vw,52px)}
.dgl-chart .dg-cap{margin-top:18px}
.dgl-chart .dg-bars li{padding:5px 0;font-size:15px}
.dgl-chart .dg-track,.dgl-chart .dg-bar{height:12px}
.dgl .dg-page{display:flex;flex-direction:column;justify-content:center;max-width:none;padding:22px;border:1px solid var(--ink);background:var(--bg-raised)}

/* "In each issue": the full width of the page under one ink rule, heading in the margin column, the three
   items on the same hairline grid as the tiles above */
.dgl-what{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3.6fr);gap:0 32px;border-top:2px solid var(--ink);padding-top:16px}
.dgl-what h2{margin:0 0 12px;border:0;padding:0;font-family:var(--serif);font-weight:500;font-size:26px;line-height:1.15;text-transform:none;letter-spacing:-.01em}
.dgl-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:6px 0 18px}
.dgl-list div{border-top:1px solid var(--line);padding-top:10px}
.dgl-list dt{font-weight:650;font-size:15px;line-height:1.35;margin:0 0 4px}
.dgl-list dd{margin:0;font-size:15px;line-height:1.5;color:var(--mut);text-wrap:pretty}
.dgl-note{margin:0;max-width:68ch;font-size:15px;line-height:1.5;color:var(--mut);text-wrap:pretty}
@media (max-width:900px){
  .dgl-what{grid-template-columns:minmax(0,1fr)}
  .dgl-list{margin-top:0}
}
@media (max-width:760px){
  .dgl-grid{grid-template-columns:minmax(0,1fr);gap:20px;margin-bottom:36px}
  .dgl-chart .dg-preview{padding:16px 16px 14px}
  .dgl-list{grid-template-columns:minmax(0,1fr);gap:12px}
  .cx-form,.dgl .dg-page{padding:16px}
  .cx-about{margin-top:-6px}
  .cx-status{min-height:2.9em}
}
@media (max-width:480px){
  /* label over link, both still fixed height */
  .cx-about{display:block;height:auto;padding-bottom:0}
  .cx-about[hidden]{display:block}
  .cx-about span{display:block;height:24px;line-height:24px;margin-top:6px}
  .cx-about a{display:block;height:44px}
  .cx-status{min-height:4.35em}
  .cx-btn{width:100%}
  .dgl-chart .dg-tiles dd{font-size:36px}
  .dgl-chart .dg-bars li{font-size:14px}
}
@media (prefers-reduced-motion:no-preference){
  .cx-btn{transition:background-color .15s cubic-bezier(.16,1,.3,1)}
}
@media (forced-colors:active){
  .cx select{background-image:none;appearance:auto}
  .cx [aria-invalid="true"]{outline:2px solid Mark;outline-offset:-4px}
}

/* per-page link (filing, ticker, politician, insider pages): 44px tall target */
.corr-link{margin:20px 0 0;font-size:14px}
.corr-link a{display:inline-block;padding:11px 0;line-height:22px;color:var(--faint);text-underline-offset:3px}
.corr-link a:hover{color:var(--ink)}
