/* Tucson Repertory Orchestra · site admin. The site's paper, ink and brass; Libre Franklin to work in, Newsreader for headings. */
:root {
  --ink: #1c1a17; --ink-soft: #3d3a35; --grey: #6f6a62; --line: rgba(28, 26, 23, .14); --line-2: rgba(28, 26, 23, .24);
  --paper: #f4efe6; --paper-2: #ebe4d7; --card: #fffdf8; --brass: #7f5e1c; --brass-2: #d9b45a; --ok: #2f6b45; --warn: #9a5b00; --bad: #a3322b;
  --sans: 'Libre Franklin', system-ui, sans-serif; --serif: 'Newsreader', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 500; font-size: 14px; text-decoration: none; color: var(--ink); line-height: 1.2; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--brass); border-color: var(--brass); }
.btn.big { padding: 12px 22px; font-size: 15px; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--paper-2); border-color: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: rgba(246, 242, 234, .5); cursor: pointer; }

/* sign-in gate */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.gate-card { width: min(100%, 420px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 36px 34px 26px; text-align: center; box-shadow: 0 20px 50px -30px rgba(28, 26, 23, .45); }
.gate-logo { width: 150px; margin: 0 auto 18px; display: block; }
.gate h1 { font-size: 30px; margin-bottom: 6px; }
.gate p { color: var(--ink-soft); margin: 0 0 22px; }
.gate-msg { min-height: 1.5em; margin: 16px 0 0 !important; font-size: 14px; }
.gate-msg.err { color: var(--bad); }
.gate-foot { font-size: 13px; margin: 18px 0 0 !important; }

/* layout */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100svh; }
.side { background: var(--ink); color: #f6f2ea; display: flex; flex-direction: column; position: sticky; top: 0; height: 100svh; padding: 20px 0 14px; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 0 22px 18px; text-decoration: none; color: #f6f2ea; border-bottom: 1px solid rgba(246, 242, 234, .14); }
.side-brand img { width: 64px; }
.side-brand span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.side-menu { display: none; }
.side-nav { display: flex; flex-direction: column; padding: 8px 6px 8px 10px; gap: 1px; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: transparent transparent; scrollbar-gutter: stable; transition: scrollbar-color .2s; }
/* the menu's scrollbar: thin and dark, and only there while the pointer is on the menu */
.side-nav:hover, .side-nav:focus-within { scrollbar-color: rgba(246, 242, 234, .28) transparent; }
/* a faint glow at the foot of the menu while more of it is below (the covering gradient scrolls with the content) */
.side-nav { background: linear-gradient(rgba(28, 26, 23, 0), var(--ink) 70%) bottom / 100% 30px no-repeat local,
  radial-gradient(farthest-side at 50% 100%, rgba(246, 242, 234, .16), rgba(246, 242, 234, 0)) bottom / 100% 14px no-repeat scroll; }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.side-nav:hover::-webkit-scrollbar-thumb, .side-nav:focus-within::-webkit-scrollbar-thumb { background: rgba(246, 242, 234, .28); }
.side-nav a { color: rgba(246, 242, 234, .82); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 14.5px; }
.side-nav a:hover { background: rgba(246, 242, 234, .08); color: #fff; }
.side-nav a.on { background: rgba(217, 180, 90, .2); color: #fff; box-shadow: inset 3px 0 0 var(--brass-2); }
.side-nav a.soon { color: rgba(246, 242, 234, .5); font-size: 13.5px; }
.side-head { margin: 12px 12px 4px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 242, 234, .45); }
.side-foot { padding: 14px 22px 0; border-top: 1px solid rgba(246, 242, 234, .14); font-size: 12.5px; color: rgba(246, 242, 234, .7); display: flex; flex-direction: column; gap: 4px; }
.side-foot a, .side-foot button { color: rgba(246, 242, 234, .85); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(246, 242, 234, .35); }
.main { padding: 30px clamp(18px, 3.5vw, 44px) 80px; max-width: 1180px; width: 100%; outline: none; }

/* page heads */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.ph h1 { font-size: 34px; }
.ph p { margin: 6px 0 0; color: var(--ink-soft); max-width: 62ch; }
.crumbs { font-size: 13px; color: var(--grey); margin-bottom: 6px; }
.crumbs a { color: var(--grey); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 21px; margin-bottom: 4px; }
.card .sub { color: var(--grey); font-size: 13.5px; margin: 0 0 12px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin: 0 0 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 > .card + .card, .grid3 > .card + .card { margin-top: 0; }
.grid2 + .card, .card + .grid2, .grid2 + .grid2 { margin-top: 16px; }
.big-date { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 2px 0 2px; }
.muted { color: var(--grey); }
.small { font-size: 13.5px; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--paper-2); color: var(--ink-soft); white-space: nowrap; }
.pill.concert { background: #f1e3c4; color: #6b4b10; }
.pill.reading { background: #e2e8dc; color: #34502e; }
.pill.rehearsal { background: #e4e1ee; color: #463d6b; }
.pill.draft { background: #fbe7d6; color: var(--warn); }
.pill.live { background: #dcebe1; color: var(--ok); }
.attn { list-style: none; margin: 0; padding: 0; }
.attn li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.attn li:first-child { border-top: 0; }
.attn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; transform: translateY(-1px); }
.attn .dot.ok { background: var(--ok); }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick a { display: block; text-decoration: none; border: 1px dashed var(--line-2); border-radius: 8px; padding: 14px; background: var(--card); }
.quick a:hover { border-style: solid; border-color: var(--ink); }
.quick b { display: block; font-weight: 600; }
.quick span { color: var(--grey); font-size: 13px; }
.empty { text-align: center; padding: 36px 20px; }
.empty h2 { font-size: 24px; margin-bottom: 6px; }
.empty p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 18px; }

/* season list */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 7px 13px; cursor: pointer; font-size: 13.5px; border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rows { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rowi { display: grid; grid-template-columns: 112px minmax(0, 1fr) 170px auto auto; gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.rowi:first-child { border-top: 0; }
.rowi:hover { background: #fbf6ec; }
.rowi.past { opacity: .62; }
.rowi .d b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.1; }
.rowi .d span { font-size: 12.5px; color: var(--grey); }
.rowi .t b { font-weight: 600; }
.rowi .t span { display: block; color: var(--grey); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .v { font-size: 13.5px; color: var(--ink-soft); }
.month { padding: 8px 18px; background: var(--paper-2); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--brass); border-top: 1px solid var(--line); }
.month:first-child { border-top: 0; }

/* editor */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.side-panel { position: sticky; top: 18px; display: grid; gap: 14px; }
.fs { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 20px; margin: 0 0 16px; }
.fs > h2 { font-size: 19px; margin-bottom: 2px; }
.fs > .hint { color: var(--grey); font-size: 13px; margin: 0 0 12px; }
.f { display: block; margin-top: 12px; }
.f > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.f > span em { font-style: normal; font-weight: 400; color: var(--grey); }
.f input[type=text], .f input[type=date], .f input[type=time], .f input[type=url], .f input[type=email], .f select, .f textarea, .pr input {
  width: 100%; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; padding: 8px 10px; font-size: 14.5px; }
.f textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.f input:focus, .f select:focus, .f textarea:focus, .pr input:focus { outline: 2px solid var(--brass-2); outline-offset: 0; border-color: var(--brass); }
.f.err input, .f.err select { border-color: var(--bad); }
.f .errmsg { color: var(--bad); font-size: 12.5px; margin-top: 4px; display: block; }
.fr { display: grid; gap: 12px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kinds label { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; cursor: pointer; background: #fff; }
.kinds label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fbf6ec; }
.kinds input { margin: 0 6px 0 0; accent-color: var(--ink); }
.kinds small { display: block; color: var(--grey); font-size: 12px; margin-top: 2px; }
.pr { border: 1px solid var(--line); border-radius: 8px; padding: 10px 10px 8px; margin-top: 10px; background: #fffef9; }
.pr-top { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pr-more { display: grid; grid-template-columns: 92px minmax(0, 1.3fr) minmax(0, 1fr) 84px minmax(0, 1.4fr); gap: 8px; margin-top: 8px; }
.pr-more .wide { grid-column: 2 / -1; }
.pr input { padding: 6px 8px; font-size: 13.5px; }
.pr .tools { display: flex; gap: 2px; }
.pr .tools button { border: 0; background: transparent; cursor: pointer; padding: 4px 6px; border-radius: 4px; color: var(--grey); font-size: 15px; line-height: 1; }
.pr .tools button:hover { background: var(--paper-2); color: var(--ink); }
.pr .tools button.x:hover { color: var(--bad); }
.pr-head { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr) 82px; gap: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); padding: 0 11px; margin-top: 12px; }
.pr-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pubbox h2 { font-size: 19px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 12px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: #cfc6b6; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }
.savebtn { width: 100%; justify-content: center; }
.save-note { font-size: 12.5px; color: var(--grey); margin: 8px 0 0; min-height: 1.3em; }
.save-note.dirty { color: var(--warn); }
.save-note.ok { color: var(--ok); }
.save-note.err { color: var(--bad); }
.more-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.preview h2 { font-size: 17px; }
.preview iframe { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #f4efe6; display: block; margin-top: 8px; }
.preview .sub { margin-bottom: 0; }

/* lists: venues, people, activity */
.list { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.li { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li b { font-weight: 600; }
.li .muted { font-size: 13.5px; }
.log .li { align-items: flex-start; }
.log time { font-size: 12.5px; color: var(--grey); white-space: nowrap; }

/* toast and dialog */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }
.dlg { border: 0; border-radius: 12px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.dlg::backdrop { background: rgba(28, 26, 23, .45); }
.dlg form { padding: 22px 24px 18px; }
.dlg h2 { font-size: 22px; margin-bottom: 6px; }
.dlg p { color: var(--ink-soft); margin: 0 0 12px; }
.dlg textarea { width: 100%; min-height: 180px; border: 1px solid var(--line-2); border-radius: 6px; padding: 10px; font: 13.5px/1.5 ui-monospace, Consolas, monospace; }
.dlg .actions { justify-content: flex-end; margin-top: 14px; }

@media (max-width: 1060px) { .ed { grid-template-columns: 1fr; } .side-panel { position: static; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; z-index: 20; }
  .side-brand { border: 0; padding: 0; }
  .side-brand img { width: 48px; }
  .side-menu { display: inline-block; margin-left: auto; background: none; border: 1px solid rgba(246, 242, 234, .4); color: #f6f2ea; border-radius: 6px; padding: 6px 10px; }
  .side-nav { display: none; width: 100%; flex: none; padding: 8px 0 4px; }
  .side.open .side-nav { display: flex; }
  .side-foot { display: none; width: 100%; padding: 10px 0 4px; }
  .side.open .side-foot { display: flex; }
  .grid2, .grid3, .quick { grid-template-columns: 1fr; }
  .rowi { grid-template-columns: 86px minmax(0, 1fr); gap: 4px 12px; }
  .rowi .v, .rowi .s, .rowi .a { grid-column: 2; }
  .kinds { grid-template-columns: 1fr; }
  .fr { grid-template-columns: 1fr; }
  .pr-head { display: none; }
  .pr-top, .pr-more { grid-template-columns: 1fr 1fr; }
  .pr-more .wide { grid-column: 1 / -1; }
  .pr .tools { grid-column: 1 / -1; justify-content: flex-end; }
}

/* repertoire and bowed parts */
.stats { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: -6px 0 16px; color: var(--grey); font-size: 14px; }
.stats b { font: 400 22px/1 var(--serif); color: var(--ink); margin-right: 6px; }
.fs.sess, .fs.prog { padding-top: 14px; }
.sess-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 10px; align-items: end; }
.sess-head .f { margin: 0; }
.tools { display: flex; gap: 2px; align-items: center; }
.tools button { border: 0; background: transparent; cursor: pointer; padding: 4px 6px; border-radius: 4px; color: var(--grey); font-size: 15px; line-height: 1; }
.tools button:hover { background: var(--paper-2); color: var(--ink); }
.tools button.x:hover { color: var(--bad); }
.sess-head .tools { padding-bottom: 6px; }
.wk-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1.2fr) minmax(0, 1fr) 82px; gap: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); padding: 0 9px; margin-top: 14px; }
.pr.wk { padding: 8px; margin-top: 6px; }
.wk-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.wk-more { margin-top: 6px; }
.wk-more input { width: 100%; color: var(--ink-soft); }
.wk-more input:placeholder-shown:not(:focus) { border-color: transparent; background: transparent; padding-top: 2px; padding-bottom: 2px; font-size: 12.5px; }
.wk-more input:placeholder-shown:not(:focus)::placeholder { color: var(--grey); opacity: .55; }
.pw-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; }
.pw-imslp { margin-top: 8px; }
.pw-imslp input { width: 100%; }
.pt-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pt { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; background: var(--paper); }
.pt-file { font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-file .linkbtn { font-size: inherit; }
.pt .tools { gap: 6px; }
.pt-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.pt-status { font-size: 13px; color: var(--brass); }
label.btn { cursor: pointer; }
.code-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 10px; }
.code-line code { font: 600 16px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .05em; padding: 6px 10px; background: var(--paper); border-radius: 6px; }
.dlg .f { margin-top: 4px; }
.dlg .kinds { margin-top: 4px; max-height: 50vh; overflow: auto; }
@media (max-width: 860px) {
  .sess-head, .wk-row, .pw-top { grid-template-columns: 1fr 1fr; }
  .sess-head .tools, .wk-row .tools, .pw-top .tools { grid-column: 1 / -1; justify-content: flex-end; }
  .wk-head { display: none; }
  .pt { grid-template-columns: 1fr auto; }
  .pt-file { grid-column: 1 / -1; grid-row: 2; }
}

/* phase 3: concert history, people, photos, videos, pages */
.md-help { font-size: 12.5px; color: var(--grey); margin: 6px 0 14px; }
.md-help code { font: 12px ui-monospace, Consolas, monospace; background: var(--paper-2); padding: 1px 4px; border-radius: 3px; color: var(--ink-soft); }
.lk-rows { display: grid; gap: 6px; }
.lk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px; align-items: center; }
.lk input { border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 9px; font: inherit; font-size: 14px; background: #fff; }
.lk .x, .phc .x { border: 0; background: transparent; color: var(--grey); font-size: 16px; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.lk .x:hover { color: var(--bad); background: var(--paper-2); }
.person-li { gap: 14px; }
.thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; background: var(--paper-2); }
.thumb.noimg { display: inline-grid; place-items: center; font: 600 13px var(--sans); color: var(--grey); }
.ph-prev .thumb { width: 150px; height: 150px; border-radius: 8px; font-size: 30px; }
.pr.vid { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.vthumb { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--paper-2); display: grid; place-items: center; font-size: 12px; color: var(--grey); }
.vid-f { display: grid; gap: 6px; }
.vid-s { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.chk input { accent-color: var(--ink); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.phc { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.phc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--paper-2); }
.phc input[data-cap] { border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; width: 100%; }
.phc-a { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.phc.off img { opacity: .3; filter: grayscale(1); }
.danger-link { color: var(--bad) !important; text-decoration-color: currentColor !important; }
.blk { padding-top: 14px; }
.blk-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.blk-h h2 { font-size: 17px; margin: 0; }
.blk textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 12px; font: 14.5px/1.55 var(--sans); resize: vertical; }
.blk textarea:focus, .lk input:focus, .phc input:focus { outline: 2px solid var(--brass-2); outline-offset: 0; border-color: var(--brass); }
.text-pv { margin: 10px 0 12px; padding: 10px 14px; border-left: 3px solid var(--brass-2); background: #fffef9; font: 16px/1.55 var(--serif); color: var(--ink); }
.text-pv p, .text-pv ul, .text-pv ol { margin: 0 0 .6em; }
.text-pv > :last-child { margin-bottom: 0; }
.text-pv h3, .text-pv h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin: 0 0 4px; }
.blk .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.blk .save-note { margin: 0; }
.blk-photo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.blk-photo img { width: 100%; border-radius: 6px; background: var(--paper-2); }
@media (max-width: 860px) {
  .lk { grid-template-columns: 1fr auto; }
  .lk input[data-lk=url] { grid-column: 1; }
  .pr.vid { grid-template-columns: 1fr; }
  .vid-s { flex-direction: row; justify-content: space-between; align-items: center; }
  .blk-photo { grid-template-columns: 1fr; }
}

/* programs */
.pe-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--paper); padding: 8px 0 12px; margin-bottom: 4px; }
.pe-title { flex: 1 1 260px; min-width: 0; font: 400 24px/1.2 var(--serif); border: 1px solid transparent; border-radius: 6px; padding: 4px 8px; background: transparent; }
.pe-title:hover, .pe-title:focus { border-color: var(--line-2); background: #fff; outline: none; }
.pe-bar .save-note { margin: 0 6px 0 0; }
.pe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
.pe-pv { position: sticky; top: 64px; background: #e6e0d5; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pe-pv-bar { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.pe-pv-bar select { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 13px; background: #fff; }
.pe-zoom { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pe-zoom [aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Wide view: the program builder takes the whole window; the cards keep a comfortable column and the pages get the rest */
body.pe-wide .main { max-width: none; }
@media (min-width: 1181px) { body.pe-wide .pe { grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); } }
.pe-pv { display: flex; flex-direction: column; height: calc(100vh - 84px); }
.pe-pv iframe { display: block; width: 100%; flex: 1 1 auto; min-height: 0; border: 0; background: #e6e0d5; }
/* before printing: the check under the preview bar */
.pe-check { background: #f3faf1; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; max-height: 32vh; overflow: auto; }
.pe-check.has-warn { background: #fdf5e7; }
.pe-check:empty { display: none; }
.pe-check summary { padding: 7px 12px; cursor: pointer; }
.pe-check summary b { color: #2d6a2f; font-weight: 600; }
.pe-check.has-warn summary b { color: #8a4b12; }
.pe-check ul { margin: 0; padding: 0 12px 9px 30px; }
.pe-check li { margin: 3px 0; }
.pe-check li.info { color: #5d574e; list-style-type: circle; }
.pe-check .linkbtn { color: #7a5a17; text-decoration-color: rgba(122, 90, 23, .5); font-weight: 600; }
.pe-set { padding-top: 14px; }
.pc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.pc-h { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; }
.pc-tog { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; text-align: left; border: 0; background: transparent; font: inherit; padding: 9px 10px; cursor: pointer; border-radius: 6px; }
.pc-tog:hover { background: var(--paper-2); }
.pc-tog b { font-weight: 600; flex: none; }
.pc-tog::before { content: '\25B8'; color: var(--grey); font-size: 11px; flex: none; transition: transform .15s; }
.pc.open .pc-tog::before { transform: rotate(90deg); }
.pc-sum { color: var(--grey); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-b { padding: 0 16px; }
.pc.open .pc-b { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.pc-b .f { margin-top: 10px; }
.pc-b textarea { font: 14px/1.5 var(--sans); }
.pc-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.pc-photo { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.pc-photo img { width: 120px; height: 84px; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.pc-nophoto { width: 120px; height: 84px; border-radius: 6px; background: var(--paper-2); display: grid; place-items: center; font-size: 12px; color: var(--grey); }
.pits { margin-top: 8px; }
.pr.pit { display: grid; gap: 6px; }
.pit-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) auto; gap: 6px; align-items: center; }
.pr.pit textarea { border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; font: italic 13.5px/1.45 var(--sans); resize: vertical; }
.pit-int { grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: var(--paper); }
.pe-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 18px; }
.pe-danger { margin: 10px 0 30px; }
@media (max-width: 1180px) { .pe { grid-template-columns: 1fr; } .pe-pv { position: static; height: auto; } .pe-pv iframe { height: 70vh; flex: none; } }

/* users */
.users .li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 14px; }
.users .li > :nth-child(3):last-child { grid-column: 3 / -1; justify-self: end; }
.u-who { min-width: 0; }
.u-who b, .u-who .muted { overflow-wrap: anywhere; }
.u-meta { font-size: 13px; line-height: 1.4; }
.u-act { display: flex; gap: 6px; }
.role-sel { border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 13.5px; background: #fff; }
.invite textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 12px; font: 14px/1.5 var(--sans); background: #fffef9; resize: vertical; }
@media (max-width: 860px) { .users .li { grid-template-columns: 1fr auto; } .users .u-meta { grid-column: 1 / -1; grid-row: 2; } .users .u-act { grid-column: 1 / -1; } }
.pe-pv-bar .chk { font-size: 12.5px; }

/* files and galleries */
.file-li { gap: 12px; }
.ftype { flex: none; width: 40px; height: 48px; border: 1px solid var(--line-2); border-radius: 4px; display: grid; place-items: center; font: 600 10.5px var(--sans); letter-spacing: .08em; color: var(--brass); background: #fffef9; }
.f-who { flex: 1; min-width: 0; }
.f-title { width: 100%; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; margin-left: -6px; font: 600 15px var(--sans); background: transparent; }
.f-title:hover, .f-title:focus { border-color: var(--line-2); background: #fff; outline: none; }
.lk-status { align-self: center; }
.ph-set { padding-top: 14px; }
@media (max-width: 860px) { .file-li { flex-wrap: wrap; } .file-li .u-act { width: 100%; justify-content: flex-end; } }


/* Composer and page-section fields suggest names as you type but are plain text: no dropdown arrow */
input[list]::-webkit-calendar-picker-indicator { display: none !important; }

/* news posts and your own pages */
.li-link { text-decoration: none; color: inherit; }
.li-link:hover { background: var(--paper); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
.sec-h { font-size: 19px; margin: 6px 0 10px; }
.f > span.addr { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; overflow: hidden; margin: 0; font-size: 14px; font-weight: 400; color: inherit; }
.addr > span { display: flex; align-items: center; padding: 0 1px 0 10px; color: var(--grey); white-space: nowrap; background: var(--paper); }
.f .addr input[type=text] { border: 0; border-radius: 0; min-width: 0; flex: 1; }
.f .addr input[readonly] { color: var(--grey); background: var(--paper); }
.st-cover img { max-width: 100%; max-height: 260px; border-radius: 6px; display: block; }
.st-preview { font: 17px/1.55 var(--serif); max-height: 640px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; background: #fffdf8; }
.st-preview h1 { font-size: 30px; margin-bottom: 6px; }
.st-preview .st-date { font: 600 11.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin: 0 0 14px; }
.st-preview img { max-width: 100%; height: auto; display: block; }
.st-preview figure { margin: 16px 0; }
.st-preview figcaption { font: 13px var(--sans); color: var(--grey); margin-top: 6px; }
.st-preview .video { position: relative; max-width: 480px; }
.st-preview .video img { width: 100%; }
.st-preview .video .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 40px; border-radius: 10px; background: rgba(28, 26, 23, .8); }

/* download everything */
.bk-list { list-style: none; padding: 0; margin: 8px 0 0; }
.bk-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.bk-list li:first-child { border-top: 0; }
.bk-list b { display: block; color: var(--ink); font-weight: 600; }
.bk-progress { margin-top: 16px; }
.bk-bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bk-bar span { display: block; height: 100%; width: 0; background: var(--brass); transition: width .3s; }

/* sponsors */
.sp-rowi { grid-template-columns: 64px minmax(0, 1fr) auto; }
.sp-thumb { width: 64px; height: 40px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--grey); overflow: hidden; }
.sp-thumb img { max-width: 56px; max-height: 32px; object-fit: contain; }
.sp-gets { background: var(--paper); border-radius: 6px; padding: 8px 10px; margin: 12px 0 0 !important; color: var(--ink-soft) !important; }
.sp-logo-box, .sp-ad-box { min-height: 40px; }
.sp-logo-box img { max-width: 280px; max-height: 120px; object-fit: contain; display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.sp-ad-box img { max-width: 240px; max-height: 320px; display: block; border: 1px solid var(--line); border-radius: 4px; }
.sp-ed { list-style: none; padding: 0; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 8px; }
.sp-ed li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-top: 1px solid var(--line); }
.sp-ed li:first-child { border-top: 0; }
.sp-ed img, .sp-ed .sp-noimg { width: 52px; height: 30px; object-fit: contain; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--grey); background: var(--paper); border-radius: 4px; }
.sp-ed span { flex: 1; min-width: 0; }
.sp-ed b { display: block; font-weight: 600; font-size: 14px; }
.sp-ed small { color: var(--grey); font-size: 12.5px; }
.sp-ed .x { border: 0; background: none; font-size: 18px; color: var(--grey); cursor: pointer; }
.sp-ed .x:hover { color: var(--bad); }
/* the season picker beside the filters */
.season-pick select { font: inherit; font-size: 13.5px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); }
.repo-card { margin-top: 16px; }
.repo-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-size: 15px; word-break: break-all; }
/* the page's own scrollbar in the admin's warm greys */
html { scrollbar-color: rgba(28, 26, 23, .3) var(--paper); }

/* a timeline's rows in the page editor */
.tl-rows { display: grid; gap: 8px; margin: 10px 0 0; }
.tl-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.tl-row input, .tl-row textarea { font: inherit; font-size: 14px; border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 9px; background: #fff; }
.tl-row input { font-family: var(--serif); font-size: 17px; }
.tl-row textarea { resize: vertical; min-height: 40px; line-height: 1.45; }
@media (max-width: 640px) { .tl-row { grid-template-columns: 80px minmax(0, 1fr); } .tl-row .tools { grid-column: 1 / -1; justify-self: end; } }

/* a list of links in the page editor: each link's words, its address beside it */
.lb-rows { display: grid; gap: 6px; margin-top: 8px; }
.lb-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; align-items: center; }
.lb-row span { font-size: 12.5px; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row input { font: inherit; font-size: 14px; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 9px; background: #fff; }

/* the Webmaster screen */
.wm-top .card p { font-size: 14.5px; }
.wm-how p:last-child { margin-bottom: 0; }
.wm-can { list-style: none; margin: 4px 0 0; padding: 0; }
.wm-can li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }
.wm-can li:first-child { border-top: 0; }
.wm-can a { font-weight: 600; color: var(--ink); }
.wm-send { margin-top: 16px; }
.wm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wm-grid li { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; font-size: 13.5px; color: var(--ink-soft); }
.wm-grid li b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 3px; }
.wm-grid li:last-child { background: var(--paper); border-style: dashed; }
.wm-tickets { margin-top: 16px; }
.tk-paside { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; position: sticky; top: 16px; }
.wm-steps { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-soft); }
.wm-steps li { padding: 4px 0; }
.wm-steps b { color: var(--ink); }
@media (max-width: 1000px) { .wm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tk-paside { position: static; } }
@media (max-width: 640px) { .wm-grid { grid-template-columns: 1fr; } .wm-can li { grid-template-columns: 1fr; gap: 2px; } }

/* the Design screen: each choice a card; the live one tagged; the video and card choices greyed under an over-the-video masthead */
.dz-group h2 em { font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--grey); margin-left: 6px; }
.dz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; }
.dz-list button { text-align: left; background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 14px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.dz-list button:hover { border-color: var(--ink); }
.dz-list button b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.dz-list button span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.dz-list button[aria-checked="true"] { border-color: var(--brass); background: #fbf3df; box-shadow: inset 0 0 0 1px var(--brass); }
.dz-live { display: none; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--ok); border-radius: 3px; padding: 1px 6px; }
.dz-list button.is-live .dz-live { display: inline-block; }
.dz-off { display: none; margin: 6px 0 0; font-size: 13px; font-style: italic; color: var(--grey); }
.dz-ownvideo .dz-group[data-g="video"] .dz-off, .dz-over .dz-group[data-g="layout"] .dz-off { display: block; }
.dz-ownvideo .dz-group[data-g="video"] .dz-list, .dz-over .dz-group[data-g="layout"] .dz-list { opacity: .4; pointer-events: none; }
.dz-sum { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 12px; }
.dz-sum.dirty { color: var(--warn); }
#dzPreview { width: 100%; justify-content: center; }
#dzSave { width: 100%; justify-content: center; margin-top: 8px; }
#dzBack { margin-top: 8px; }
.dz-note { margin: 14px 0 0; font-size: 12.5px; }

/* ---------- On a phone (9 Nov 2026) ----------
   The top bar keeps its own height on short screens; the Webmaster tab moves into it beside Menu instead of covering the
   right edge; every tap target is at least 38-40px; form fields are 16px, because iPhone Safari zooms the page in on any
   smaller field; rows wrap their buttons under the text instead of squeezing it. */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  /* the open menu: a screen of its own that scrolls by itself (pinned to the top it was cut off below the screen),
     the links two to a row under each heading, who is signed in and Sign out at the foot */
  .side.open { position: fixed; inset: 0; z-index: 80; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; align-content: flex-start;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .side.open .side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 6px; flex: none; overflow: visible; background: none; padding: 8px 0 2px; }
  .side.open .side-nav .side-head { grid-column: 1 / -1; margin: 10px 2px 0; }
  .side.open .side-nav a { padding: 10px 12px; min-height: 42px; }
  .side-nav a { padding: 12px 12px; font-size: 16px; border-radius: 8px; }
  .side.open .side-nav a { background: rgba(246, 242, 234, .07); }
  .side.open .side-nav a.on { background: rgba(217, 180, 90, .24); }
  .side.open .side-foot { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 12px; padding: 12px 2px 0; border-top: 1px solid rgba(246, 242, 234, .14); font-size: 14.5px; }
  .side.open .side-foot a, .side.open .side-foot button { display: inline-block; padding: 8px 0; }
  body.menu-lock { overflow: hidden; }
  .side-menu { min-height: 38px; }
  body .tk-tab { top: 12px; bottom: auto; right: 86px; transform: none; writing-mode: horizontal-tb; z-index: 25; min-height: 38px; padding: 0 12px; border-radius: 6px;
    background: transparent; border: 1px solid rgba(246, 242, 234, .4); font-size: 13.5px; font-weight: 500; letter-spacing: 0; display: flex; align-items: center; }
  body .tk-tab .tk-badge { margin: 0 0 0 7px; }
  body .tk-kinds button { padding: .6rem .9rem; font-size: .92rem; }
  #app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), #app select, #app textarea, #gate input, body .tk-drawer textarea, body .tk-drawer input { font-size: 16px; }
  #app select { min-height: 40px; max-width: 100%; }
  .pe { grid-template-columns: minmax(0, 1fr); }
  body .tk-drawer .tk-x { min-width: 40px; min-height: 40px; font-size: 22px; }
  body .tk-btn { min-height: 40px; font-size: .9rem; }
  body .tk-drop button { padding: 9px 2px; }
  .btn { min-height: 40px; }
  .btn.small { min-height: 38px; padding: 7px 12px; font-size: 14px; }
  .tools button, .pr .tools button, .lk .x, .phc .x { min-width: 40px; min-height: 40px; font-size: 18px; }
  .filters .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 0; min-height: 40px; padding: 8px 10px; line-height: 1.2; }
  .linkbtn { display: inline-block; padding: 9px 0; }
  .li { flex-wrap: wrap; }
  .li > div:first-child { flex: 1 1 220px; min-width: 0; }
  .card-top { flex-wrap: wrap; }
  .card-top > .btn { flex: none; }
}
@media (max-width: 400px) { .side-brand span { display: none; } }
/* the bar that offers Save at the foot of a phone screen while changes are unsaved (admin.js syncPhoneSave) */
.phone-save { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 10px; background: var(--ink); color: #f6f2ea; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); font-size: 14.5px; }
.phone-save .btn.primary { background: var(--brass-2); border-color: var(--brass-2); color: var(--ink); font-weight: 600; min-height: 40px; }
@media (min-width: 861px) { .phone-save { display: none !important; } }

/* ---------- Traffic (11 Nov 2026): the dashboard's Visitors card and the Traffic screen ----------
   One hue, the brass, for every mark; text stays in the ink and greys. Thin columns (24px at most, 4px rounded tops,
   2px apart), hairline grid, a tooltip on hover and focus, and a table with the same numbers. */
.tr-range { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tr-range [aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tr-body { transition: opacity .2s; }
.tr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.tr-tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.tr-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.tr-tiles.two .tr-tile { border: 0; padding: 0; background: none; }
.tr-tile-l { margin: 0; font-size: 13px; color: var(--grey); }
.tr-tile-v { margin: 2px 0 0; font-size: 30px; font-weight: 600; line-height: 1.1; }
.tr-tile-d { margin: 4px 0 0; font-size: 12.5px; color: var(--grey); }
.tr-tile-d.up { color: var(--ok); }
.tr-tile-d.down { color: var(--bad); }
.pv-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; align-items: start; }
.pv-table .pv-work th { text-align: left; padding: 12px 0 4px; font-family: var(--serif, Georgia, serif); font-size: 15px; font-weight: 400; font-style: italic; color: var(--ink); border-bottom: 1px solid var(--line); }
.pv-table .pv-none td { color: var(--grey); }
.tr-tile-v small { font-size: .5em; color: var(--grey); }
@media (max-width: 760px) { .pv-split { grid-template-columns: 1fr; } }
.tr-cap { margin: 0 0 4px; font-size: 13px; color: var(--grey); }
.tr-h2 { margin-top: 22px !important; }
.tr-chart { margin: 14px 0 0; }
.tr-plot { position: relative; height: 180px; margin-left: 42px; border-bottom: 1px solid var(--line-2); }
.tr-chart.compact .tr-plot { height: 84px; }
.tr-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.tr-grid b { position: absolute; right: calc(100% + 8px); top: -.72em; font: 500 11.5px/1.4 var(--sans); color: var(--grey); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-cols { position: absolute; inset: 0; display: flex; gap: 2px; }
.tr-col { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.tr-col span { display: block; width: 100%; max-width: 24px; background: var(--brass); border-radius: 4px 4px 0 0; }
.tr-chart.dense .tr-col span { border-radius: 2px 2px 0 0; }
.tr-col.on span { background: #a17a2c; }
.tr-col:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 3px; }
.tr-tip { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 3; background: var(--ink); color: #fff; border-radius: 6px; padding: 7px 10px; font-size: 12.5px; line-height: 1.4; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.tr-tip p { margin: 0; }
.tr-tip b { font-size: 14px; font-weight: 600; }
.tr-tip .tr-tip-d { margin-top: 3px; color: rgba(255, 255, 255, .72); }
.tr-x { display: flex; justify-content: space-between; margin: 6px 0 0 42px; font-size: 11.5px; color: var(--grey); }
.tr-bars { list-style: none; margin: 0; padding: 0; }
.tr-bars li { display: grid; grid-template-columns: minmax(0, 14em) minmax(40px, 1fr) auto; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.tr-bl { overflow-wrap: anywhere; }
.tr-bt { height: 10px; }
.tr-bt i { display: block; height: 100%; background: var(--brass); border-radius: 0 4px 4px 0; }
.tr-bv { min-width: 3.4em; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-bv small { margin-left: 6px; font-weight: 400; color: var(--grey); }
.tr-table { margin: 16px 0 0; font-size: 14px; }
.tr-table summary { cursor: pointer; color: var(--ink-soft); }
.tr-table table, .tr-st { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tr-table th, .tr-table td, .tr-st th, .tr-st td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.tr-table th:first-child, .tr-table td:first-child, .tr-st th:first-child, .tr-st td:first-child { padding-left: 0; text-align: left; }
.tr-table th, .tr-st th { font-size: 12.5px; font-weight: 600; color: var(--grey); }
.tr-notes { margin: 8px 0 14px; padding-left: 1.2em; font-size: 14px; color: var(--ink-soft); }
.tr-notes li { margin: 0 0 6px; }
.tr-mine { white-space: normal; align-items: flex-start; font-size: 14px; }
.tr-mine input { margin-top: 3px; }
@media (max-width: 860px) {
  .tr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tr-tile-v { font-size: 26px; }
  .tr-bars li { grid-template-columns: minmax(0, 1fr) 64px auto; gap: 10px; }
  .tr-plot, .tr-x { margin-left: 34px; }
}
/* Join requests (24 Nov 2026) */
.jr + .jr, .tr-range + .jr, .tr-range + .card { margin-top: 14px; }
.jr-line { margin: 6px 0 0; overflow-wrap: anywhere; }
.jr-about { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.jr-note { margin: 12px 0 0; }
.jr-note textarea { width: 100%; }
.jr-actions, .jr-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
.jr-pick label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
/* Traffic: the Google Search card (24 Nov 2026) */
.tr-g { margin-top: 4px; }
.tr-g3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.tr-g .tr-st td:first-child { overflow-wrap: anywhere; }
