/* Styles for /character-limit/ and /character-limit/<slug>/. Same base look as the Character Limit Checker page.
   lr-theme.css is linked after this file and applies the site theme on top. */
:root { color-scheme: light dark; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #f5f6f8; color: #5b6472; margin: 0; line-height: 1.6; }
header, footer { max-width: 800px; margin: 0 auto; padding: 24px; }
main { max-width: 800px; margin: 0 auto; padding: 0 24px 48px; background: #fff; }
.wordmark { display: flex; align-items: center; gap: 8px; font-family: Georgia, serif; font-weight: 700; font-size: 20px; color: #14171f; }
.wordmark .dot { color: #ff5630; }
a { color: #c82400; }
h1 { font-family: Georgia, serif; color: #14171f; font-size: 28px; margin-bottom: 8px; line-height: 1.25; }
h2 { font-family: Georgia, serif; color: #14171f; font-size: 22px; margin-top: 24px; }
h3 { font-family: Georgia, serif; color: #14171f; font-size: 17px; margin: 0; }
.lead { font-size: 16px; line-height: 1.55; margin-top: 0; margin-bottom: 12px; }
.tier-line { font-size: 14px; margin: 0 0 20px; }
.note { font-size: 14px; }
.cta-box { background: #f5f6f8; border-left: 3px solid #ff5630; padding: 14px 20px; margin: 20px 0; border-radius: 4px; }
.cta-box a.button { display: inline-block; background: #ff5630; color: #0b0f19; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; margin-top: 8px; min-height: 24px; }
.faq-item { margin-bottom: 12px; }
.faq-item h3 { margin-bottom: 4px; }
.noscript { background: #fff4e5; border-left: 3px solid #8a6d00; padding: 14px 18px; border-radius: 4px; color: #14171f; }
ul.facts { padding-left: 20px; }
ul.facts li { margin-bottom: 8px; }
a.src-link { font-size: 13px; white-space: nowrap; margin-left: 4px; }
ul.sources, ul.crosslinks { padding-left: 20px; }
ul.sources li, ul.crosslinks li { margin-bottom: 8px; }
a:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 5px #0b0f19; }

table.hub-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
table.hub-table th, table.hub-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(148,163,184,.35); vertical-align: top; }
table.hub-table th { color: #14171f; }

/* Small checker */
.tool { margin: 12px 0; }
.tool label.big-label { display: block; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.mini-text { width: 100%; box-sizing: border-box; min-height: 96px; padding: 12px; font-size: 17px; line-height: 1.5; font-family: inherit; resize: vertical; border-radius: 12px; }
.mini-text:focus-visible, .choice input:focus-visible, .preview:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 5px #0b0f19; }
.controls { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.controls:empty { display: none; }
fieldset.group { flex: 1 1 240px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; margin: 0; padding: 8px 14px 12px; min-width: 0; }
fieldset.group legend { font-weight: 700; padding: 0 6px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.choice input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: #ff5630; }
#mini-summary { font-weight: 600; min-height: 1.6em; margin: 8px 0 12px; }
.row { border: 1px solid rgba(255,255,255,.12); border-left: 6px solid #94a3b8; border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.04); min-width: 0; overflow-wrap: anywhere; }
.row.st-fits { border-left-color: #7ff0b4; }
.row.st-over { border-left-color: #ffb0b1; }
.row.st-cut, .row.st-needs_media { border-left-color: #f7d489; }
.chip { display: inline-block; font-size: 12px; line-height: 1.3; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(148,163,184,.6); }
.chip-reported { border-style: dashed; }
.status { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.glyph { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; font-size: 14px; flex: 0 0 auto; }
.st-fits .status { color: #7ff0b4; }
.st-over .status { color: #ffb0b1; }
.st-cut .status, .st-needs_media .status { color: #f7d489; }
.st-empty .status { color: #cbd5e1; }
.row p { margin: 2px 0; }
.count { font-size: 15px; color: #e6edf8; }
.detail { font-size: 14px; }
.muted { color: #94a3b8; }
.meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); margin: 8px 0; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: #cbd5e1; transition: width .15s linear; }
.st-over .meter-fill { background: #ffb0b1; }
.st-fits .meter-fill { background: #7ff0b4; }
.preview { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: rgba(0,0,0,.25); font-size: 15px; line-height: 1.5; max-height: 12em; overflow: auto; white-space: pre-wrap; color: #e6edf8; }
.kept { color: #fff; }
.cutmark { display: inline-block; margin: 0 4px; padding: 0 6px; border-radius: 6px; border: 1px dashed #f7d489; color: #f7d489; font-size: 13px; font-weight: 700; white-space: nowrap; }
.lost { opacity: .7; text-decoration: line-through; text-decoration-thickness: 1px; }
@media (max-width: 600px) {
  main { padding: 0 14px 40px; }
  h1 { font-size: 27px; }
  .mini-text { font-size: 16px; }
  table.hub-table { font-size: 15px; }
  table.hub-table th, table.hub-table td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { .meter-fill { transition: none; } }
