:root {
      --paper: #f4f1e8;
      --panel: #fffdf7;
      --ink: #20252b;
      --muted: #6e746f;
      --line: #d9d2c3;
      --blue: #1b5eaa;
      --blue-dark: #12467f;
      --orange: #ef6d22;
      --orange-dark: #c84c0b;
      --olive: #7d8f35;
      --shadow: 0 2px 0 rgba(0,0,0,.06);
      --radius: 7px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background:
        linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)),
        repeating-linear-gradient(0deg, rgba(90,70,30,.025) 0, rgba(90,70,30,.025) 1px, transparent 1px, transparent 4px),
        var(--paper);
      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 14px;
      line-height: 1.5;
    }

    a { color: var(--blue); }
    button, input, select, textarea { font: inherit; }

    .top-strip {
      background: #27313b;
      color: #d9e2ea;
      font-size: 12px;
      border-bottom: 1px solid #12171c;
    }

    .top-strip .inner,
    header .inner,
    main,
    footer .inner {
      width: min(1120px, calc(100% - 28px));
      margin: 0 auto;
    }

    .top-strip .inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 34px;
      gap: 18px;
    }

    .tiny-links {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .tiny-links a {
      color: #d9e2ea;
      text-decoration: none;
    }

    header {
      background: linear-gradient(#fffefb, #f3eee2);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow);
    }

    header .inner {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 24px;
      min-height: 92px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--ink);
    }

    .brand-mark {
      width: 48px;
      height: 48px;
      border-radius: 10px;
      background: var(--orange);
      border: 3px solid #fff;
      box-shadow: 0 0 0 1px var(--orange-dark), 0 3px 0 rgba(0,0,0,.08);
      display: grid;
      place-items: center;
      color: white;
      font-weight: 900;
      font-size: 21px;
      letter-spacing: -2px;
      transform: rotate(-2deg);
    }

    .brand-copy strong {
      display: block;
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 28px;
      line-height: 1;
      letter-spacing: -1px;
    }

    .brand-copy span {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
    }

    .header-message {
      color: #4e5559;
      max-width: 560px;
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 16px;
    }

    .submit-btn {
      border: 1px solid var(--orange-dark);
      background: linear-gradient(#ff8d46, var(--orange));
      color: white;
      border-radius: 6px;
      padding: 11px 16px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 2px 0 rgba(144,52,5,.22);
      text-shadow: 0 1px 0 rgba(0,0,0,.2);
    }

    .submit-btn:hover { background: linear-gradient(#ff9859, #f4782e); }

    .nav-bar {
      border-top: 1px solid #eee7d8;
      background: #ece6d9;
    }

    .nav-bar .inner {
      display: flex;
      align-items: center;
      gap: 6px;
      min-height: 42px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .nav-bar .inner::-webkit-scrollbar { display: none; }

    .nav-link {
      border: 0;
      background: transparent;
      padding: 8px 12px;
      color: #41484e;
      font-weight: 700;
      font-size: 13px;
      border-radius: 5px;
      white-space: nowrap;
      cursor: pointer;
    }

    .nav-link:hover,
    .nav-link.active {
      color: white;
      background: var(--blue);
    }

    main {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 300px;
      gap: 24px;
      padding-top: 28px;
      padding-bottom: 46px;
    }

    .hero-note {
      background: #fff8da;
      border: 1px solid #dbc978;
      border-left: 5px solid #d7b72e;
      border-radius: var(--radius);
      padding: 15px 17px;
      margin-bottom: 17px;
      color: #544b29;
    }

    .hero-note strong { color: #3d3519; }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 12px;
      margin: 0 0 12px;
      padding: 0 2px 9px;
      border-bottom: 3px solid #27313b;
    }

    .section-head h1 {
      margin: 0;
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 23px;
      letter-spacing: -.4px;
    }

    .section-head span {
      color: var(--muted);
      font-size: 12px;
    }

    .story-list {
      display: grid;
      gap: 11px;
    }

    .story-card {
      display: grid;
      grid-template-columns: 78px minmax(0, 1fr);
      gap: 14px;
      padding: 14px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      position: relative;
    }

    .story-card:hover { border-color: #c8bfad; }

    .vote-box {
      align-self: start;
      border: 1px solid #aab1b7;
      border-radius: 6px;
      overflow: hidden;
      background: #f1f3f4;
      text-align: center;
      box-shadow: inset 0 1px 0 white;
    }

    .vote-count {
      display: block;
      padding: 8px 4px 5px;
      font-size: 22px;
      font-weight: 900;
      line-height: 1;
      color: #39424a;
    }

    .vote-label {
      display: block;
      margin-top: 3px;
      color: #717980;
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: .8px;
    }

    .vote-button {
      display: block;
      width: 100%;
      min-height: 29px;
      overflow: hidden;
      border: 0;
      border-top: 1px solid #b94209;
      background: linear-gradient(#fa7b32, #e35b12);
      color: white;
      padding: 7px 1px;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 9px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: 0;
      white-space: nowrap;
      cursor: pointer;
      text-transform: uppercase;
      text-shadow: 0 1px 0 rgba(0,0,0,.2);
    }

    .vote-button:hover { background: linear-gradient(#ff8a48, #eb671e); }
    .vote-button.voted {
      background: linear-gradient(#92a84b, #728631);
      border-top-color: #58691f;
    }

    .story-main { min-width: 0; }

    .story-meta-top {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-bottom: 5px;
      font-size: 11px;
      color: var(--muted);
      flex-wrap: wrap;
    }

    .year-pill,
    .category-pill {
      display: inline-flex;
      align-items: center;
      min-height: 20px;
      border-radius: 10px;
      padding: 2px 8px;
      font-weight: 700;
    }

    .year-pill {
      background: #27313b;
      color: white;
    }

    .category-pill {
      color: #47531f;
      background: #e9efce;
      border: 1px solid #cbd69a;
    }

    .story-title {
      margin: 0 0 5px;
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 21px;
      line-height: 1.2;
      letter-spacing: -.25px;
    }

    .story-title a {
      color: var(--blue-dark);
      text-decoration: none;
    }

    .story-title a:hover { text-decoration: underline; }

    .story-excerpt {
      margin: 0 0 9px;
      color: #40474c;
      font-size: 13px;
      line-height: 1.55;
    }

    .story-footer {
      display: flex;
      gap: 13px;
      align-items: center;
      flex-wrap: wrap;
      font-size: 11px;
      color: #777c7f;
    }

    .story-footer a {
      font-weight: 700;
      text-decoration: none;
    }

    .story-footer a:hover { text-decoration: underline; }

    .featured-ribbon {
      position: absolute;
      top: 12px;
      right: -5px;
      background: var(--olive);
      color: white;
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: .6px;
      font-weight: 900;
      padding: 5px 9px;
      box-shadow: 0 2px 0 rgba(0,0,0,.08);
    }

    .featured-ribbon::after {
      content: '';
      position: absolute;
      right: 0;
      bottom: -5px;
      border-top: 5px solid #4e5e1d;
      border-right: 5px solid transparent;
    }

    .sidebar {
      display: grid;
      align-content: start;
      gap: 16px;
    }

    .side-card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .side-card h2 {
      margin: 0;
      padding: 10px 13px;
      color: white;
      background: #27313b;
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 17px;
      letter-spacing: -.2px;
    }

    .side-card .content { padding: 13px; }
    .side-card p { margin: 0 0 10px; }
    .side-card p:last-child { margin-bottom: 0; }

    .about-line {
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 15px;
      color: #3d4448;
    }

    .stat-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }

    .stat {
      padding: 10px;
      border: 1px solid #ded8c9;
      background: #f7f3e8;
      border-radius: 5px;
    }

    .stat strong {
      display: block;
      font-size: 20px;
      line-height: 1.1;
      color: var(--orange-dark);
    }

    .stat span {
      display: block;
      color: #777b76;
      font-size: 10px;
      margin-top: 4px;
      text-transform: uppercase;
      letter-spacing: .4px;
    }

    .category-list,
    .rules-list,
    .top-users {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .category-list li,
    .top-users li {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      padding: 7px 0;
      border-bottom: 1px dotted #d4cdbc;
    }

    .category-list li:last-child,
    .top-users li:last-child { border-bottom: 0; }

    .category-list button {
      border: 0;
      padding: 0;
      background: none;
      color: var(--blue);
      cursor: pointer;
      text-align: left;
    }

    .category-list button:hover { text-decoration: underline; }

    .category-list span,
    .top-users span { color: var(--muted); font-size: 11px; }

    .rules-list li {
      position: relative;
      padding: 0 0 8px 16px;
      color: #51575b;
      font-size: 12px;
    }

    .rules-list li::before {
      content: '›';
      position: absolute;
      left: 2px;
      color: var(--orange);
      font-weight: 900;
    }

    .newsletter {
      background: #e9f0f7;
      border-color: #bdcddd;
    }

    .newsletter h2 { background: var(--blue-dark); }

    .newsletter form { display: grid; gap: 8px; }
    .newsletter input {
      width: 100%;
      border: 1px solid #aebaca;
      border-radius: 4px;
      padding: 9px;
      background: white;
    }

    .newsletter button {
      border: 1px solid #113d6c;
      border-radius: 4px;
      padding: 8px;
      background: linear-gradient(#2c78c4, var(--blue));
      color: white;
      font-weight: 700;
      cursor: pointer;
    }

    .load-more {
      width: 100%;
      margin-top: 14px;
      padding: 11px;
      border: 1px solid #c4bcab;
      border-radius: 5px;
      background: linear-gradient(#fff, #eee9dd);
      color: #394047;
      font-weight: 700;
      cursor: pointer;
    }

    .load-more:hover { background: white; }

    footer {
      border-top: 1px solid #cfc6b4;
      background: #ded7c8;
      color: #5d625f;
      font-size: 12px;
    }

    footer .inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px 16px;
      padding-top: 18px;
      padding-bottom: 18px;
      flex-wrap: wrap;
    }

    .micro-buttons {
      display: flex;
      flex-basis: 100%;
      flex-wrap: wrap;
      gap: 4px;
      padding-top: 2px;
    }

    .hit-counter {
      box-sizing: border-box;
      display: inline-flex;
      height: 15px;
      overflow: hidden;
      border: 1px solid #111;
      background: #c7c7c7;
      color: #111;
      font: 700 8px/13px Verdana, Arial, sans-serif;
      text-decoration: none;
      box-shadow: inset 0 1px rgba(255,255,255,.6);
    }

    .hit-counter > b {
      display: block;
      height: 13px;
      padding: 0 4px;
      border-right: 1px solid #111;
      background: linear-gradient(#f4f4f4, #a9a9a9);
      line-height: 13px;
    }

    .hit-digits {
      display: inline-flex;
      height: 13px;
      background: #090c09;
    }

    .hit-digits i {
      display: block;
      width: 9px;
      height: 13px;
      border-left: 1px solid #263126;
      color: #8cff6a;
      font: normal 700 9px/13px "Courier New", monospace;
      text-align: center;
      text-shadow: 0 0 3px rgba(111,255,86,.7);
    }

    .hit-digits i:first-child { border-left: 0; }

    .micro-button {
      box-sizing: border-box;
      display: inline-flex;
      width: 80px;
      height: 15px;
      overflow: hidden;
      border: 1px solid #111;
      color: #fff;
      background: #555;
      font: 700 8px/13px Verdana, Arial, sans-serif;
      letter-spacing: -.2px;
      text-decoration: none;
      text-shadow: 0 1px rgba(0,0,0,.45);
      box-shadow: inset 0 1px rgba(255,255,255,.35);
      image-rendering: pixelated;
    }

    .micro-button b,
    .micro-button i {
      display: block;
      height: 13px;
      overflow: hidden;
      white-space: nowrap;
      text-align: center;
      font: inherit;
      font-style: normal;
    }

    .micro-button b { width: 27px; border-right: 1px solid rgba(0,0,0,.55); }
    .micro-button i { flex: 1; font-size: 7px; letter-spacing: -.35px; }
    .micro-button:hover { color: #fff; filter: brightness(1.13); }
    .php-button b { background: #6979a8; }
    .php-button i { background: #3c4771; }
    .html-button b { background: #e85b27; }
    .html-button i { background: #963619; }
    .sqlite-button b { background: #1688b7; }
    .sqlite-button i { background: #075776; }
    .rss-button b { background: #f58b22; }
    .rss-button i { background: #ad4d08; }
    .flash-button b { background: #b52e2e; }
    .flash-button i { background: #252525; }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      display: none;
      place-items: center;
      padding: 18px;
      background: rgba(20, 25, 30, .68);
      z-index: 20;
    }

    .modal-backdrop.open { display: grid; }

    .modal {
      width: min(580px, 100%);
      background: #fffdf8;
      border-radius: 9px;
      border: 1px solid #8e8e8e;
      box-shadow: 0 18px 60px rgba(0,0,0,.28);
      overflow: hidden;
    }

    .modal-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      color: white;
      background: #27313b;
    }

    .modal-head h2 { margin: 0; font-family: Georgia, serif; }
    .close-modal {
      border: 0;
      background: transparent;
      color: white;
      font-size: 24px;
      cursor: pointer;
    }

    .story-form {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 17px;
    }

    .field { display: grid; gap: 5px; }
    .field.full { grid-column: 1 / -1; }
    .field label { font-weight: 700; font-size: 12px; }
    .field input,
    .field select,
    .field textarea {
      width: 100%;
      border: 1px solid #bbb4a7;
      border-radius: 4px;
      padding: 9px;
      background: white;
    }
    .field textarea { min-height: 130px; resize: vertical; }

    .form-note {
      grid-column: 1 / -1;
      padding: 10px;
      color: #625b41;
      background: #fff8da;
      border: 1px solid #dbc978;
      border-radius: 4px;
      font-size: 12px;
    }

    .form-actions {
      grid-column: 1 / -1;
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .secondary-btn,
    .primary-btn {
      border-radius: 4px;
      padding: 9px 13px;
      font-weight: 700;
      cursor: pointer;
    }

    .secondary-btn { border: 1px solid #aaa; background: #eee; }
    .primary-btn { border: 1px solid var(--orange-dark); background: var(--orange); color: white; }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%) translateY(18px);
      opacity: 0;
      pointer-events: none;
      background: #27313b;
      color: white;
      border-radius: 6px;
      padding: 10px 14px;
      z-index: 30;
      transition: .2s ease;
      box-shadow: 0 8px 24px rgba(0,0,0,.25);
    }

    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    @media (max-width: 880px) {
      header .inner { grid-template-columns: 1fr auto; }
      .header-message { grid-column: 1 / -1; grid-row: 2; padding-bottom: 14px; }
      main { grid-template-columns: 1fr; }
      .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .sidebar .side-card:first-child { grid-column: 1 / -1; }
    }

    @media (max-width: 620px) {
      .top-strip .inner { align-items: flex-start; padding: 8px 0; }
      .top-strip .inner > span { display: none; }
      header .inner { gap: 12px; min-height: 78px; }
      .brand-copy strong { font-size: 23px; }
      .brand-copy span { display: none; }
      .brand-mark { width: 42px; height: 42px; }
      .submit-btn { padding: 9px 10px; font-size: 12px; }
      .story-card { grid-template-columns: 62px minmax(0,1fr); gap: 10px; padding: 11px; }
      .vote-count { font-size: 18px; }
      .story-title { font-size: 18px; }
      .featured-ribbon { display: none; }
      .sidebar { grid-template-columns: 1fr; }
      .story-form { grid-template-columns: 1fr; }
      .field.full, .form-note, .form-actions { grid-column: 1; }
      footer .inner { display: block; }
      footer .inner > span { display:block; margin-bottom:6px; }
      .micro-buttons { margin-top:10px; }
    }

/* Real-site additions. Hand-written, because view source should still be useful. */
.flash-stack { display:grid; gap:8px; margin:0 0 16px; }
.flash { padding:11px 13px; border-radius:5px; border:1px solid; }
.flash-success { color:#355216; background:#eef6d4; border-color:#b8cb77; }
.flash-error { color:#6d261c; background:#fff0eb; border-color:#dda08e; }
.flash-info { color:#29455f; background:#eaf3fb; border-color:#abc5dc; }

.vote-form { margin:0; }
.vote-button[disabled] { cursor:wait; opacity:.75; }
.vote-box .vote-label.story-not-found { color:#b94209; font-weight:700; }

.story-link {
  display:inline-flex; align-items:center; gap:5px; margin:0 0 10px; padding:4px 8px;
  border:1px solid #c7d4df; border-radius:4px; background:#eef5fa; color:var(--blue-dark);
  font-size:11px; font-weight:700; text-decoration:none;
}
.story-link:hover { background:#fff; text-decoration:underline; }
.story-link::after { content:'↗'; font-size:10px; }

.page-panel, .article-panel {
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px;
}
.page-panel h1, .article-panel h1 { margin-top:0; font-family:Georgia,'Times New Roman',serif; }
.page-panel h2, .article-panel h2 { font-family:Georgia,'Times New Roman',serif; }
.page-panel p, .article-body p { line-height:1.75; }

.article-kicker { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:9px; }
.article-title { margin:0 0 12px; font-size:34px; line-height:1.12; letter-spacing:-.6px; }
.article-byline { color:var(--muted); font-size:12px; margin-bottom:18px; }
.article-body { font-family:Georgia,'Times New Roman',serif; font-size:18px; color:#34393d; }
.article-body p:first-child::first-letter { float:left; font-size:49px; line-height:.82; padding:7px 7px 0 0; color:var(--orange-dark); }
.article-vote { float:left; width:86px; margin:4px 18px 10px 0; }
.related-link-box { clear:both; margin-top:22px; padding:14px; border:1px solid #b9cbd9; border-left:5px solid var(--blue); background:#eef5fa; }
.related-link-box strong { display:block; margin-bottom:4px; }

.comment-section { margin-top:18px; }
.comment-list { display:grid; gap:10px; margin:12px 0 20px; }
.comment { padding:13px 14px; border:1px solid var(--line); border-radius:6px; background:var(--panel); }
.comment-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:7px; font-size:11px; color:var(--muted); }
.comment-body { margin:0; white-space:pre-wrap; }
.comment-empty { padding:18px; border:1px dashed #bcb3a2; color:var(--muted); text-align:center; background:rgba(255,255,255,.35); }

.form-panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.form-panel-head { padding:16px 18px; color:#fff; background:#27313b; }
.form-panel-head h1, .form-panel-head h2 { margin:0; font-family:Georgia,'Times New Roman',serif; }
.form-panel-head p { margin:5px 0 0; color:#d7e0e7; }
.story-form.static-form { padding:20px; }
.field small { color:var(--muted); font-size:11px; }
.required { color:var(--orange-dark); }
.honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

.pagination { display:flex; justify-content:space-between; gap:10px; margin-top:14px; }
.pagination a { padding:10px 13px; border:1px solid #c4bcab; border-radius:5px; background:linear-gradient(#fff,#eee9dd); font-weight:700; text-decoration:none; }
.pagination .disabled { visibility:hidden; }

.install-wrap { width:min(720px,calc(100% - 28px)); margin:40px auto; }
.install-checks { display:grid; gap:8px; margin:14px 0; }
.install-check { display:flex; justify-content:space-between; gap:12px; padding:9px 11px; border:1px solid var(--line); background:#f7f3e8; border-radius:5px; }
.pass { color:#4f6d20; font-weight:700; }
.fail { color:#a53822; font-weight:700; }

.admin-shell { width:min(1180px,calc(100% - 28px)); margin:26px auto 50px; }
.admin-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; }
.admin-head h1 { margin:0; font-family:Georgia,'Times New Roman',serif; }
.admin-grid { display:grid; gap:18px; }
.admin-card { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.admin-card h2 { margin:0; padding:11px 14px; color:#fff; background:#27313b; font-family:Georgia,'Times New Roman',serif; font-size:18px; }
.admin-card .content { padding:14px; }
.queue-item { padding:12px 0; border-bottom:1px dotted #cfc6b5; }
.queue-item:last-child { border-bottom:0; }
.queue-item h3 { margin:0 0 4px; font-size:16px; }
.queue-meta { color:var(--muted); font-size:11px; margin-bottom:7px; }
.inline-actions { display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.inline-actions form { margin:0; }
.small-btn { display:inline-block; border:1px solid #a9a394; border-radius:4px; padding:6px 9px; background:#eee9dd; color:#333; font-size:11px; font-weight:700; text-decoration:none; cursor:pointer; }
.small-btn.approve { color:#fff; background:#758b34; border-color:#596c22; }
.small-btn.reject { color:#fff; background:#ad4932; border-color:#853522; }
.small-btn.delete { color:#fff; background:#74271f; border-color:#4f1813; }
.small-btn.delete:hover { background:#5f1e18; }
.small-btn.primary { color:#fff; background:var(--blue); border-color:var(--blue-dark); }
.status-pill { display:inline-block; padding:2px 7px; border-radius:10px; font-size:10px; font-weight:700; text-transform:uppercase; }
.status-published { color:#415518; background:#e9efce; }
.status-pending { color:#6a5520; background:#fff1b9; }
.status-rejected { color:#7d2f20; background:#f7d7ce; }

.empty-queue { color:var(--muted); font-style:italic; }
.code-note { font-family:Consolas,Monaco,monospace; background:#272f37; color:#dbe4ea; border-radius:5px; padding:10px 12px; overflow:auto; }

.not-found { text-align:center; padding:50px 22px; }
.not-found .error-code { display:block; color:var(--orange); font-size:88px; line-height:1; font-weight:900; letter-spacing:-7px; }
.not-found h1 { margin:8px 0; }

.source-nudge { color:#8a897f; font-size:10px; }
.no-results { padding:30px; text-align:center; border:1px dashed #bdb4a4; border-radius:6px; background:rgba(255,255,255,.35); }
.admin-link { color:#d9e2ea; text-decoration:none; }

@media (max-width:620px) {
  .article-title { font-size:27px; }
  .article-vote { float:none; width:82px; margin:0 0 15px; }
  .article-body { font-size:17px; }
  .admin-head { align-items:flex-start; flex-direction:column; }
}
.global-flashes { width:min(1120px,calc(100% - 28px)); margin:16px auto -8px; }
.nav-link { text-decoration:none; }
.submit-btn { display:inline-block; text-decoration:none; text-align:center; }
.category-pill { text-decoration:none; }
.category-pill:hover { text-decoration:underline; }
.secondary-btn { display:inline-block; color:#333; text-decoration:none; }
.checkbox-line { display:flex; align-items:flex-start; gap:8px; }
.checkbox-line input { width:auto; margin-top:3px; }
.admin-login { width:min(520px,calc(100% - 28px)); margin:36px auto 70px; }

/* SEO-friendly navigation that still looks like it arrived by FTP. */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
  color: #6b6254;
  font-size: 12px;
  line-height: 1.45;
}

.breadcrumbs a {
  color: #285b8f;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-stories {
  margin: 18px 0;
}

.related-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-story-card {
  border: 1px solid #cfc4b1;
  border-radius: 5px;
  background: #fffdf8;
  padding: 13px;
  box-shadow: 0 1px 0 rgba(72, 55, 33, 0.05);
}

.related-story-card h3 {
  margin: 8px 0 6px;
  font-size: 15px;
  line-height: 1.3;
}

.related-story-card h3 a {
  color: #1f4f80;
  text-decoration: none;
}

.related-story-card h3 a:hover {
  text-decoration: underline;
}

.related-story-card p {
  margin: 0;
  color: #736958;
  font-size: 11px;
}

footer a {
  color: inherit;
}

@media (max-width: 680px) {
  .related-story-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumbs span[aria-current="page"] {
    white-space: normal;
  }
}
