/* SPF ZERO's stylesheet (news/web/style.css), so complaints matches the SPF ZERO apps. Complaints additions at the end. */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --surface: #ffffff;
  --bg: #eef1f5;
  --text: #1a1a1a;
  --muted: #5f6368;
  --border: #dcdfe3;
  --error: #b71c1c;
  --pending: #e65100;
  --why-bg: #f1f5fa;
  --row-hover: #f5f8fc;
  --detail-bg: #fafbfc;
  --future-bg: #fff59d;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 13px; }
main { max-width: 1000px; margin: 0 auto; padding: 12px 16px 120px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; font-weight: 500; margin: 16px 0 12px; }
h2 { font-size: 15px; font-weight: 500; margin: 0 0 10px; }
p, li { line-height: 1.6; }
.subtitle { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
nav.subnav { display: flex; gap: 16px; font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; }
.card { background: var(--surface); border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.15); padding: 12px 16px; margin-bottom: 16px; }
.why { border-left: 3px solid var(--primary); background: var(--why-bg); padding: 8px 12px; margin: 10px 0; font-size: 12px; line-height: 1.6; color: #333; }
.why b:first-child { color: var(--primary); }
.future { background: var(--future-bg); }
.back { display: inline-block; margin: 8px 0 0; }

input[type=text], textarea, select { font-family: inherit; font-size: 12px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); }
textarea { width: 100%; min-height: 120px; resize: vertical; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.row label { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.grow { flex: 1; }
button.md-btn { background: var(--primary); color: #fff; border: none; border-radius: 4px; padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
button.md-btn:hover { background: var(--primary-dark); }
button.md-btn:disabled { opacity: .5; cursor: default; }
button.md-btn.secondary { background: transparent; color: var(--primary); padding: 6px 8px; }
button.md-btn.secondary:hover { background: var(--why-bg); }
.char-count { color: var(--muted); font-size: 12px; }
.error-note { color: var(--error); font-size: 12px; margin-top: 6px; min-height: 1em; }
.muted { color: var(--muted); }

/* session banner */
.session-banner { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 12px; }
.session-banner .inner { max-width: 1000px; margin: 0 auto; padding: 6px 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.session-banner code { font-size: 11px; color: var(--muted); }

/* title tiles */
.tile-title { display: flex; justify-content: space-between; padding: 0 16px; margin: 12px 0 2px; align-items: flex-end; }
.tile-title img { width: 9%; max-width: 92px; cursor: pointer; transition: transform .5s ease, filter .5s ease; transform-origin: 50% 100%; }
.tile-title img.knocked-left { transform: rotate(-85deg); filter: brightness(.55); cursor: default; }
.tile-title img.knocked-right { transform: rotate(85deg); filter: brightness(.55); cursor: default; }

/* feed */
.feed-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feed-head h2 { margin: 0; }
table.feed-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13px; }
table.feed-table th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--border); padding: 4px 6px; white-space: nowrap; }
table.feed-table td { padding: 4px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr.feed-row { cursor: pointer; }
tr.feed-row:hover { background: var(--row-hover); }
td.text-col { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.subject-col { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.nowrap { white-space: nowrap; color: var(--muted); font-size: 12px; }
td.score-col { white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-pending { color: var(--pending); font-style: italic; }
.status-error { color: var(--error); }
.link-btn { border: none; background: transparent; color: var(--primary); cursor: pointer; font-size: 12px; padding: 0; font-family: inherit; }
td.detail-cell { padding: 6px 6px 12px 20px; background: var(--detail-bg); }
table.detail-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 4px 0 10px; }
table.detail-table th { text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); padding: 3px 5px; }
table.detail-table td { border-bottom: 1px solid var(--border); padding: 3px 5px; vertical-align: top; }
.comment { border-top: 1px solid var(--border); padding: 4px 0; font-size: 12px; white-space: pre-wrap; }
.comment .who { color: var(--muted); }
.comment-box { display: flex; gap: 8px; margin-top: 6px; }
.comment-box textarea { min-height: 40px; }

/* bottom banner */
.bottom-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border); font-size: 12px; z-index: 5; }
.bottom-banner .inner { max-width: 1000px; margin: 0 auto; padding: 6px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.vote-btn { font-size: 18px; background: transparent; border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; cursor: pointer; }
.vote-btn:hover { background: var(--why-bg); }
.gauge { display: flex; flex-direction: column; align-items: center; }
.gauge-label { font-size: 11px; color: var(--muted); }

/* decline pages */
.decline { max-width: 640px; margin: 80px auto; padding: 0 16px; font-size: 14px; line-height: 1.7; }
.decline h1 { font-size: 20px; }

table.plain { border-collapse: collapse; width: 100%; font-size: 12px; }
table.plain th, table.plain td { text-align: left; border-bottom: 1px solid var(--border); padding: 4px 6px; vertical-align: top; }
table.plain th { color: var(--muted); font-weight: 500; }
blockquote { margin: 8px 0; padding: 8px 12px; background: var(--detail-bg); border-left: 3px solid var(--border); white-space: pre-wrap; font-size: 12px; line-height: 1.6; }

/* News additions */
.topnav { background: var(--surface); border-bottom: 1px solid var(--border); }
.topnav .inner { max-width: 1000px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.topnav .brand { font-weight: 500; color: var(--text); margin-right: 8px; }
.topnav a.current { color: var(--text); font-weight: 500; }
.banner { text-align: center; color: #fff; font-size: 24px; letter-spacing: 4px; font-weight: 500; padding: 10px; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.banner.nominal { background: #757575; }
.banner.white-alert { background: #fff; color: #1a1a1a; border-bottom: 1px solid var(--border); }
.banner.black-alert { background: #111; }
.notice { background: #fff59d; border: 1px solid #e6c200; border-radius: 4px; padding: 8px 12px; font-size: 12px; color: #5d4600; margin: 16px 0; }
.gradient-bar { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(to right, #ffffff, #9e9e9e, #111111); border: 1px solid var(--border); }
.gradient-marker { position: absolute; top: -4px; width: 6px; height: 20px; margin-left: -3px; background: var(--primary); border: 1px solid #fff; border-radius: 2px; }
.gradient-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.ticker { display: flex; align-items: baseline; gap: 10px; }
.ticker .total { font-size: 40px; font-weight: 500; color: var(--primary); }
.small { font-size: 11px; color: var(--muted); }
.day-card + .day-card { border-top: 1px dashed var(--border); }
.day-head { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 0; font-size: 13px; font-weight: 500; background: none; border: none; cursor: pointer; font-family: inherit; color: var(--text); }
.day-head:hover { color: var(--primary); }
.subject-list { list-style: none; margin: 0; padding: 0 0 6px; font-size: 13px; }
.subject-list li { padding: 5px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 12px; }
.subject-list li:last-child { border-bottom: none; }
.subject-text { flex: 1; word-break: break-word; }
.subject-count { color: var(--primary); font-weight: 500; width: 32px; text-align: right; }
svg.chart .line { stroke: var(--primary); stroke-width: 2; fill: none; }
svg.chart .pt { fill: var(--primary); }
svg.chart .grid { stroke: var(--border); }
svg.chart text { font-size: 9px; fill: var(--muted); }
code.big { font-size: 15px; background: var(--detail-bg); padding: 4px 8px; border-radius: 4px; }

/* Articles and Evidence: the plain form of the eMachinations Constitution page */
main.plain { max-width: 680px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.6; color: var(--text); }
main.plain.wide { max-width: 1000px; }  /* Evidence and Retractions: as wide as Starlight's pages */
main.plain h1 { font-weight: 400; font-size: 32px; margin: 24px 0 8px; }
main.plain h2 { font-weight: 400; font-size: 24px; margin: 28px 0 10px; }
main.plain .article { margin: 0 0 36px; }
main.plain .headline { font-size: 26px; margin: 0 0 4px; line-height: 1.25; }
main.plain .dek { font-style: italic; margin: 0 0 6px; }
main.plain .byline { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
main.plain figure { margin: 16px 0; }
main.plain figure img { max-width: 100%; height: auto; display: block; }
main.plain figcaption { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; margin-top: 4px; line-height: 1.45; }
main.plain table.plainlog { border-collapse: collapse; width: 100%; font-size: 14px; }
main.plain table.plainlog th { text-align: left; border-bottom: 1px solid currentColor; padding: 4px 8px 4px 0; font-weight: 600; }
main.plain table.plainlog td { padding: 4px 8px 4px 0; vertical-align: top; border-bottom: 1px solid rgba(127,127,127,.3); }
main.plain details > summary { cursor: pointer; }
main.plain details > summary h2 { display: inline; }
main.plain .decide { border: 1px solid rgba(127,127,127,.4); padding: 12px 14px; margin-top: 12px; font-size: 14px; }
main.plain .decide textarea { width: 100%; font: inherit; font-size: 14px; }
main.plain .decide button { font: inherit; font-size: 14px; padding: 4px 12px; margin-right: 8px; cursor: pointer; }
main.plain .sha { font-family: monospace; font-size: 12px; word-break: break-all; }
main.plain .want-ad { border: 3px double currentColor; padding: 14px 18px; margin: 20px 0; }
main.plain .ad-kicker { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin: 0; color: var(--muted); }
main.plain .ad-head { font-size: 28px; font-weight: 700; letter-spacing: 2px; margin: 2px 0 10px; }
main.plain .ad-placed { font-size: 13px; font-style: italic; color: var(--muted); margin-bottom: 0; }
main.plain table.staff td { font-size: 18px; padding: 10px 16px 10px 0; }
main.plain table.staff td:first-child { color: var(--muted); width: 45%; }
/* POW flipbook: six stacked frames; the current one fades in over the last. */
.flipbook { position: relative; width: 100%; aspect-ratio: 1712 / 1152; margin: 0 auto 16px; border-radius: 6px; overflow: hidden; background: #000; }
.flipbook img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease-in; }
.flipbook img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .flipbook img { transition: none; } }
/* The ring in the first frame is the start button. */
.flipbook .ring-hit { position: absolute; z-index: 2; left: 39.8%; top: 56.2%; width: 11.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.flipbook .ring-hit:hover:not(:disabled), .flipbook .ring-hit:focus-visible { box-shadow: 0 0 24px 6px rgba(255, 255, 255, .45); }
.flipbook .ring-hit:disabled { cursor: progress; }
/* Gathering light: particles drawn into the ring while the work runs. */
.flipbook canvas#gather { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* Reveal: whiteout, negative, blackout, final image. */
.flipbook #flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: #fff; }
.flipbook #flash.white { background: #fff; opacity: 1; transition: opacity .3s ease-in; }
.flipbook #flash.black { background: #000; opacity: 1; transition: none; }
.flipbook #flash.out { opacity: 0; transition: opacity 1.2s ease-out; }
.flipbook.cut img { transition: none; }
.flipbook.negative img { filter: invert(1); }
/* Lightning, struck with each thunder crack; above the whiteout and blackout. */
.flipbook canvas#bolt { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

/* Retractions: one collapsible card each, collapsed by default */
main.plain .retract-controls { margin: 12px 0 16px; display: flex; gap: 8px; }
main.plain details.retraction > summary { cursor: pointer; list-style-position: outside; margin-left: 18px; }
main.plain details.retraction > summary .headline { font-size: 22px; }
main.plain details.retraction > summary .byline { font-size: 13px; color: var(--muted); }
main.plain details.retraction[open] > summary { margin-bottom: 10px; }

/* Text cards that start collapsed (POW page) */
details.textcard > summary { cursor: pointer; }
details.textcard > summary h2 { display: inline; margin: 0; }
details.textcard[open] > summary { margin-bottom: 10px; }

/* POW: the image is locked to the window below the nav; the text lives in a popup opened from the bottom bar. */
body.pow-page { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main.pow-stage { position: fixed; left: 0; right: 0; bottom: 0; top: 0; max-width: none; margin: 0; padding: 0; background: #000; display: flex; flex-direction: column; }
main.pow-stage .pow-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
main.pow-stage .flipbook { margin: 0; border-radius: 0; flex: none; }
main.pow-stage { flex-direction: row; }
main.pow-stage .pow-bar { flex: none; width: 240px; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: #111; color: #ddd; font-size: 14px; overflow-y: auto; }
main.pow-stage .pow-status { overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 8px; }
main.pow-stage .pow-status .error-note:empty { display: none; }
main.pow-stage #result:not([hidden]) { display: flex; flex-direction: column; gap: 8px; }
main.pow-stage .pow-label { font-weight: 500; color: #fff; }
main.pow-stage .pow-status code.big { color: #fff; background: #333; border-color: #555; word-break: break-all; user-select: all; }
main.pow-stage #copy { align-self: stretch; padding: 8px 14px; border-radius: 4px; border: 0; background: #1a73e8; color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
main.pow-stage .pow-about-btn { align-self: stretch; padding: 8px 14px; border-radius: 4px; border: 1px solid #555; background: #222; color: #eee; font: inherit; cursor: pointer; }
/* Narrow screens: the controls sit under the image. */
@media (max-width: 700px) {
  main.pow-stage { flex-direction: column-reverse; }
  main.pow-stage .pow-bar { width: auto; max-height: 40%; padding: 10px 16px; }
}
main.pow-stage .pow-pop { position: absolute; left: 0; right: 0; bottom: 0; max-height: 70%; overflow-y: auto; background: var(--surface); color: var(--text); padding: 18px 20px 24px; box-shadow: 0 -8px 24px rgba(0,0,0,.5); border-radius: 10px 10px 0 0; z-index: 10; }
main.pow-stage .pow-pop > * { max-width: 900px; margin-left: auto; margin-right: auto; }
main.pow-stage .pow-pop h2 { margin-top: 0; }
main.pow-stage .pow-close { position: absolute; right: 12px; top: 8px; font-size: 26px; line-height: 1; border: 0; background: transparent; color: inherit; cursor: pointer; }

/* SPF ZERO's sign-in bar (news/web/auth.css), in burnt orange for complaints. */
/* The sign-in bar at the top of every page. */
.authbar { background: #000; color: #fff; font: 13px/1.4 Roboto, Arial, sans-serif; padding: 6px 16px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 22px; }
.authbar .who { margin-right: auto; }
.authbar .authbox { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.authbar #freezebox { display: flex; align-items: center; gap: 8px; }
.authbar #freezebox:empty { display: none; }
.authbar button { background: #000; color: #fff; border: 1px solid #fff; border-radius: 3px; padding: 3px 10px; font: inherit; cursor: pointer; }
.authbar button:hover { background: #fff; color: #000; }

/* ---------- Complaints ---------- */
code { font-family: inherit; }
.steps { margin: 0 0 4px; font-size: 13px; line-height: 1.7; }
.anger { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 6px; }
.anger button { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 6px 16px; font: 500 13px Roboto, Arial, sans-serif; cursor: pointer; }
.anger button:hover { background: var(--why-bg); }
.anger button:disabled { opacity: .5; cursor: default; }
#result { margin-top: 8px; }
.token { font-family: monospace; font-size: 16px; overflow-wrap: anywhere; margin: 6px 0; }
.levels { display: flex; flex-wrap: wrap; gap: 12px; }
.lv { border: 1px solid var(--border); border-radius: 4px; padding: 8px 14px; min-width: 120px; }
.lv b { font-size: 24px; font-weight: 500; display: block; }
.badge { font-size: 11px; border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; margin-left: 8px; white-space: nowrap; }
.anger .l3, .lv3 { border-color: #d9a400; } .anger .l4, .lv4 { border-color: #e06a10; } .anger .l5, .lv5 { border-color: #c0201a; }

/* Starlight's session banner (starlight/web/style.css), in burnt orange for complaints. */
.session-banner { font-family: Roboto, Arial, sans-serif; background: #e06a10; color: #3e2723; display: grid;
  grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 10px 24px; padding: 12px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3); position: sticky; top: 0; z-index: 1000; font-size: 13px; line-height: 1.6; }
.session-banner .field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 28px; }
.session-banner .center { justify-content: center; }
.session-banner .right { justify-content: flex-end; }
.session-banner code { font-family: monospace; color: inherit; font-size: 13px; word-break: break-all; background: rgba(0,0,0,0.12); padding: 2px 6px; border-radius: 3px; }
.session-banner input { font-family: Arial; background: #ffffff; color: #111111; border: none; border-radius: 4px; padding: 5px 9px; font-size: 13px; }
.session-banner button { background: #3e2723; color: #e06a10; border: none; border-radius: 4px; padding: 5px 12px;
  font-size: 13px; cursor: pointer; font-weight: 500; white-space: nowrap; font-family: inherit; }
@media (max-width: 760px) { .session-banner { grid-template-columns: 1fr; } .session-banner .center, .session-banner .right { justify-content: flex-start; } }
#form .field-label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
#form input[type=text], #form textarea { width: 100%; box-sizing: border-box; font-size: 13px; padding: 6px 8px; }
#form textarea { resize: vertical; font-family: inherit; }
.form-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.howto-left, .howto-right { min-width: 0; }
.howto .stage { width: 100%; height: auto; display: block; border-radius: 4px; background: #cfe6f7; }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } }
.by { color: var(--muted); }
.who-col { width: 200px; flex: none; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 760px) { .who-col { width: 110px; } }
.subject-list .badge { width: 120px; flex: none; text-align: center; box-sizing: border-box; margin-left: 0; }

/* The footer banner: the header's look, floating at the bottom. */
.mandate-banner { font-family: Roboto, Arial, sans-serif; background: #e06a10; color: #3e2723; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr; align-items: center; gap: 6px 24px; padding: 10px 20px;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.3); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; font-size: 13px; line-height: 1.5; }
.mandate-banner .field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 28px; }
.mandate-banner .center { justify-content: center; }
.mandate-banner .right { justify-content: flex-end; }
.mandate-banner code { font-family: monospace; color: inherit; font-size: 13px; background: rgba(0,0,0,0.12); padding: 2px 6px; border-radius: 3px; }
.mandate-banner.unauthorized code { background: #3e2723; color: #fff; }
.mandate-banner input { font-family: Arial; background: #fff; color: #111; border: none; border-radius: 4px; padding: 5px 9px; font-size: 13px; width: 150px; }
.mandate-banner button { background: #3e2723; color: #e06a10; border: none; border-radius: 4px; padding: 5px 12px; font-size: 13px; cursor: pointer; font-weight: 500; white-space: nowrap; font-family: inherit; }
.mandate-banner button:disabled { opacity: .5; cursor: default; }
.mandate-status { grid-column: 1 / -1; font-size: 12px; text-align: right; }
.mandate-status:empty { display: none; }
.mandate-banner.counting .mandate-say { font-weight: 700; animation: mflash 1s steps(1, end) infinite; }
@keyframes mflash { 50% { color: #fff; } }
@media (prefers-reduced-motion: reduce) { .mandate-banner.counting .mandate-say { animation: none; color: #fff; } }
@media (max-width: 760px) { .mandate-banner { grid-template-columns: 1fr; padding: 8px 12px; gap: 4px; } .mandate-banner .center, .mandate-banner .right { justify-content: flex-start; } .mandate-banner input { width: 120px; } }
