/* The Wire (/wire/): a live SmugMug gallery feed. Colors come from page.css. */
.wrap.wire { max-width: 1100px; gap: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wire-live { margin: 0 0 6px !important; display: flex; align-items: center; gap: 8px; font-size: 12px !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff !important; }
.wire-live .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 0 0 rgba(255,90,79,.7); animation: wire-pulse 2s infinite; }
.wire-live.off .dot { background: #9a9a9a; animation: none; }
@keyframes wire-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,79,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,90,79,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,79,0); } }
@media (prefers-reduced-motion: reduce) { .wire-live .dot { animation: none; } }

.wire-bar { position: sticky; top: calc(var(--nav-h, 60px) + var(--mast-h, 0px)); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.wire-search { flex: 1 1 260px; }
.wire-search input { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }
.wire-views { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.wire-views button { font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; padding: 9px 14px; border: 0; background: var(--panel); color: var(--muted); cursor: pointer; }
.wire-views button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.wire-count { font-size: 13px; color: var(--muted); }

.wire-new { position: sticky; top: calc(var(--nav-h, 60px) + var(--mast-h, 0px) + 64px); z-index: 6; align-self: center; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .04em; padding: 11px 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wire-msg { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; background: var(--panel); }
.wire-feed .empty { color: var(--muted); }
.day { margin: 18px 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.wire-feed > .day:first-child { margin-top: 0; }

.ph { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; overflow: hidden; border-radius: 4px; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Wire view: time, photo, then the caption, one transmission per row. */
.stream .group { display: flex; flex-direction: column; }
.stream .item { display: grid; grid-template-columns: 88px minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.stream .when { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.stream .when b { font-size: 15px; }
.stream .when small { font-size: 12px; color: var(--muted); }
.flag { align-self: flex-start; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: #ff5a4f; color: #fff; padding: 2px 6px; border-radius: 3px; }
.stream .ph { max-height: 70vh; }
.stream .text h2 { margin: 0 0 6px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.stream .cap { margin: 0 0 10px; line-height: 1.55; }
.stream .meta { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.stream .kw { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.stream .kw button { font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px; border: 0; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); cursor: pointer; }
.stream .acts { margin: 0; display: flex; gap: 14px; }
.stream .acts button, .stream .acts a { font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; padding: 0; border: 0; background: none; color: var(--accent-text); cursor: pointer; text-decoration: none; }
.stream .item.fresh { animation: wire-in 2.5s ease-out; }
@keyframes wire-in { from { background: var(--accent-soft); } to { background: transparent; } }
@media (max-width: 760px) {
  .stream .item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stream .when { flex-direction: row; align-items: baseline; gap: 10px; }
  .stream .flag { margin-top: 0; }
}

/* Contact sheet: thumbnails in rows, with the time each landed. */
.grid .group { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px 10px; }
.grid .item { position: relative; }
.grid .ph { aspect-ratio: 3 / 2 !important; }
.grid .when { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 3px; pointer-events: none; }
.grid .item.fresh .ph { outline: 3px solid #ff5a4f; outline-offset: -3px; }

/* Big view. */
.wire-box { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); color: #eee; }
.wire-box[open] { display: flex; align-items: center; justify-content: center; }
.wire-box::backdrop { background: rgba(0,0,0,.9); }
.wire-box figure { margin: 0; max-width: min(1400px, 90vw); display: flex; flex-direction: column; gap: 12px; }
.wire-box img { max-width: 100%; max-height: 78vh; object-fit: contain; align-self: center; }
.wire-box figcaption { font-size: 14px; line-height: 1.5; max-width: 80ch; align-self: center; }
.wire-box figcaption small { display: block; margin-top: 6px; color: #aaa; }
.wire-box button { position: absolute; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.wire-box button:disabled { opacity: .25; cursor: default; }
.wire-box .x { top: 14px; right: 14px; }
.wire-box .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.wire-box .next { right: 14px; top: 50%; transform: translateY(-50%); }

/* The file name, in type that reads like a wire slug. */
.file { margin: 0 0 6px; font: 600 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); word-break: break-all; }
.grid .item { display: flex; flex-direction: column; gap: 4px; }
.grid .item .ph + .when { top: 6px; bottom: auto; }
.grid .file { margin: 2px 0 0; font-size: 11px; }
.grid .cap { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Signed out: the newest few photos, then an invitation to log in for the rest. */
.wire-lock { padding: 28px 24px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 6px; background: var(--panel); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wire-lock h2 { margin: 0; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.wire-lock p { margin: 0; color: var(--muted); }
.wire-lock .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.wire-lock .btn { font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 6px; text-decoration: none; background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.wire-lock .btn.alt { background: var(--panel); color: var(--ink); border-color: var(--line); }
.wire-box figcaption a { color: #fff; font-weight: 700; }

/* Who's looking: their plan and credits left. */
.wire-acct { padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; background: var(--panel); font-size: 14px; }
.wire-acct a { color: var(--accent-text); font-weight: 700; }
.box-acts { display: block; margin-top: 10px; }
.box-acts button, .box-acts a { position: static; width: auto; height: auto; border-radius: 6px; font-size: 13px; font-weight: 700; padding: 8px 14px; background: #fff; color: #111; text-decoration: none; }
.stream .acts button:disabled { opacity: .6; cursor: progress; }

/* Subscribe: the request form. */
.wire-plans { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.wire-plans h2 { margin: 0; font-size: clamp(24px, 4vw, 32px); color: var(--ink); letter-spacing: .04em; text-transform: uppercase; }
.wire-plans .muted { margin: 0; color: var(--muted); max-width: 75ch; }
.wire-plans .small { font-size: 13px; }
.wire-plans button, .wire-plans select, .wire-plans input, .wire-plans textarea { font: inherit; }
.wire-plans button { font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.wire-plans button.alt { background: var(--panel); color: var(--accent-text); border-color: var(--line); }
.wire-plans button:disabled { opacity: .6; }
.wire-ask h3 { margin: 0 0 4px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.wire-ask { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.wire-ask .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.wire-ask label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.wire-ask select, .wire-ask input, .wire-ask textarea { padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font-weight: 400; }
.wire-ask .btns { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wire-ask .msg a { color: var(--accent-text); font-weight: 700; }

/* Live feed / Events, under the banner. Plain, wire-service tabs. */
.wire-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ink); }
.wire-tabs a { padding: 10px 16px 9px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 4px solid transparent; margin-bottom: -2px; }
.wire-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: #ff5a4f; }
.wire-tabs a:hover { color: var(--ink); }

/* Sent within: last 15 minutes, hour, day... */
.wire-since select { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }
.wire-pick { font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--accent-text); cursor: pointer; }
.wire-pick[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Picking photos for an event. */
.ph { position: relative; }
.ph .tick { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35); color: #fff; font-size: 16px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.ph.on { outline: 4px solid #ff5a4f; outline-offset: -4px; }
.ph.on .tick { background: #ff5a4f; border-color: #ff5a4f; }
.wire-tray { position: sticky; bottom: 0; z-index: 7; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; background: var(--ink); color: var(--bg); border-radius: 8px 8px 0 0; box-shadow: 0 -6px 18px rgba(0,0,0,.2); font-size: 14px; }
.wire-tray p { margin: 0; }
.wire-tray .link { font: inherit; font-weight: 700; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.wire-tray-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wire-tray-add label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.wire-tray-new { display: contents; }
.wire-tray-new[hidden] { display: none; }
.wire-tray select, .wire-tray input { font: inherit; font-size: 13px; padding: 7px 10px; border: 0; border-radius: 5px; background: var(--bg); color: var(--ink); }
.wire-tray input[name="title"] { min-width: 220px; }
.wire-tray-add button, .wire-tray-ev button { font: inherit; font-size: 13px; font-weight: 800; padding: 8px 14px; border: 0; border-radius: 5px; background: #ff5a4f; color: #fff; cursor: pointer; }
.wire-tray-ev { display: flex; gap: 8px; }
.wire-tray-ev[hidden] { display: none; }
.wire-tray-ev button.alt { background: var(--bg); color: var(--ink); }
.wire-tray button:disabled { opacity: .5; cursor: default; }
.wire-tray .msg a { color: inherit; font-weight: 800; }

/* Editing an event (admins). */
.wire-event-edit { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 18px; }
.wire-event-edit summary { cursor: pointer; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.wire-event-edit form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.wire-event-edit .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.wire-event-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.wire-event-edit input, .wire-event-edit textarea { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
.wire-event-edit .btns { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wire-event-edit button { font: inherit; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.wire-event-edit button.alt { background: var(--panel); color: #b3261e; border-color: var(--line); }
.wire-event-edit .muted { margin: 0; color: var(--muted); font-size: 13px; }

/* Events (/wire/events/): the newest event big, then the rest in a dense grid. */
.ev-lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: end; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.ev-lead .ph { aspect-ratio: 3 / 2; cursor: pointer; }
.ev-lead h2 { margin: 6px 0 8px; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.ev-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #ff5a4f; }
.ev-line { margin: 0; font-size: 13px; color: var(--muted); }
.ev-line b { color: var(--ink); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px 14px; }
.ev-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.ev-card .ph { aspect-ratio: 3 / 2; cursor: pointer; }
.ev-card h3 { margin: 2px 0 0; font-size: 15px; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.ev-card:hover h3, .ev-lead:hover h2 { color: var(--accent-text); }
.ev-count { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(0,0,0,.65); padding: 3px 7px; border-radius: 3px; }
.ev-year { margin: 10px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
@media (max-width: 760px) { .ev-lead { grid-template-columns: minmax(0, 1fr); } }
.wire-msg a { color: var(--accent-text); font-weight: 700; }

/* Auto-grouping (admins, /wire/events/). */
.wire-auto { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #ff5a4f; border-radius: 6px; }
.wire-auto h2 { margin: 0 0 4px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.wire-auto p { margin: 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.wire-auto .small { margin-top: 4px; font-size: 13px; }
.wire-auto-btns { display: flex; align-items: center; gap: 12px; }
.wire-auto .switch { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; cursor: pointer; }
.wire-auto .switch input { width: 18px; height: 18px; accent-color: #ff5a4f; }
.wire-auto button { font: inherit; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.wire-auto button:disabled { opacity: .6; cursor: progress; }

/* Today on the Wire (/wire/events/): a dense results grid like a wire service's search page. */
.wire-opt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wire-opt select { font: inherit; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }
.wire-results { margin: 0; font-size: 13px; color: var(--muted); }
.wire-results b { color: var(--ink); }
.ev-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 18px 12px; }
.ev-card { gap: 3px; }
.ev-card .ph { aspect-ratio: 3 / 2; border-radius: 2px; }
.ev-card h3 { margin: 4px 0 0; font-size: 13px; line-height: 1.3; letter-spacing: .02em; }
.ev-card .ev-line { font-size: 12px; line-height: 1.35; }
.ev-card .ev-n { font-weight: 700; color: var(--accent-text); }
.wire-feed .empty .link, .empty .link { font: inherit; font-weight: 700; padding: 0; border: 0; background: none; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.wire-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.wire-pages:empty { display: none; }
.wire-pages button { font: inherit; font-size: 13px; font-weight: 700; min-width: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); cursor: pointer; }
.wire-pages button[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wire-pages button:disabled { opacity: .4; cursor: default; }
.wire-pages span { padding: 0 4px; color: var(--muted); }

/* Results: black, a facet column on the left, five photos across. */
.wire-per select { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }
.wire-feed.grid { background: #000; color: #fff; border-radius: 4px; padding: 0 0 12px; }
.wire-feed.grid .empty { color: #ccc; padding: 24px; }
.res-head { text-align: center; padding: 14px 10px 10px; border-bottom: 1px solid #333; }
.res-head h2 { margin: 0; font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: .2em; color: #fff; text-transform: none; }
.res-head p { margin: 4px 0 0; font-size: 14px; }
.res-head .link, .res-side button, .res-pages button { font: inherit; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.res-head .link { text-decoration: underline; }
.res-pages { display: flex; justify-content: center; gap: 8px; font-weight: 700; }
.res-pages button { color: #6ea8ff; }
.res-pages button[aria-current="page"] { color: #fff; }
.res-pages span { color: #888; }
.res-foot { padding-top: 10px; }
.res-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px 10px 0; }
.res-side h3 { margin: 6px 0 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #fff; }
.res-side ul { list-style: none; margin: 0 0 14px; padding: 0 0 0 6px; max-height: 420px; overflow-y: auto; }
.res-side li { margin: 0 0 4px; font-size: 12px; line-height: 1.3; }
.res-side button { text-align: left; color: #fff; }
.res-side button:hover, .res-side button[aria-current="true"] { color: #ff8a3d; }
.res-all { margin: 0; font-size: 13px; }
.res-all a { color: #6ea8ff; }
.res-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; align-content: start; }
.res-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.res-item h4 { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.res-item h4 a, .res-item h4 span { color: #fff; text-decoration: underline; }
.res-credit { margin: 0; font-size: 12px; color: #fff; }
.res-item .ph { width: 100%; aspect-ratio: 4 / 3; margin-top: 6px; background: #000; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.res-item .ph img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.res-file { margin: 4px 0 0; font-size: 12px; color: #fff; word-break: break-all; }
.res-when { margin: 0; font-size: 11px; color: #aaa; }
.res-when button, .res-when a { font: inherit; font-weight: 700; padding: 0; border: 0; background: none; color: #6ea8ff; cursor: pointer; text-decoration: none; }
.res-item.fresh .ph { outline: 3px solid #ff5a4f; outline-offset: 2px; }
@media (max-width: 1100px) { .res-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .res-body { grid-template-columns: minmax(0, 1fr); } .res-side { display: none; } .res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; } }
.res-foot { display: flex; justify-content: center; }
.res-foot .res-pages { margin: 0; }

/* Results cards also carry the caption and actions from the Wire rows. */
.res-cap { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: #ddd; text-align: left; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.res-cap.open { -webkit-line-clamp: unset; }
.res-kw { margin: 2px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.res-kw button { font: inherit; font-size: 10px; font-weight: 700; padding: 3px 7px; border: 1px solid #444; border-radius: 99px; background: #111; color: #ccc; cursor: pointer; }
.res-kw button:hover { color: #fff; border-color: #888; }
.res-acts { margin: 2px 0 0; display: flex; justify-content: center; gap: 12px; }
.res-acts button, .res-acts a { font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 0; border: 0; background: none; color: #6ea8ff; cursor: pointer; text-decoration: none; }
.res-acts button:disabled { opacity: .6; }
.wire-views[hidden] { display: none; }
.res-acts { flex-wrap: wrap; gap: 4px 12px; }
.res-acts button, .res-acts a { white-space: nowrap; letter-spacing: .03em; }

/* Events: keywords from the events' photos down the side. */
.ev-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.ev-side { position: sticky; top: calc(var(--nav-h, 60px) + var(--mast-h, 0px) + 70px); max-height: calc(100vh - var(--nav-h, 60px) - var(--mast-h, 0px) - 90px); overflow-y: auto; font-size: 13px; }
.ev-side[hidden] { display: none; }
.ev-side[hidden] + div { grid-column: 1 / -1; }
.ev-side h3 { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ev-side ul { list-style: none; margin: 0; padding: 0; }
.ev-side li { margin: 0 0 5px; }
.ev-side button { font: inherit; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.ev-side button:hover, .ev-side button[aria-current="true"] { color: var(--accent-text); font-weight: 700; }
.ev-side p { margin: 0 0 8px; }
.ev-side .ev-clear { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--accent); color: #fff; }
.ev-side .ev-clear:hover { color: #fff; }
@media (max-width: 760px) {
  .ev-body { grid-template-columns: minmax(0, 1fr); }
  .ev-side { position: static; max-height: none; }
  .ev-side ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .ev-side li { margin: 0; }
  .ev-side li button { padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); font-size: 12px; }
}

/* Dropdowns: current headlines, topics, photographers. */
.wire-drops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.wire-drops label { flex: 1 1 200px; }
.wire-drops label[hidden] { display: none; }
.wire-drops select { width: 100%; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }

/* The Wire's own masthead, in place of the big banner: name, clock, live status, sections and the account. */
.wire-mast { position: sticky; top: var(--nav-h, 60px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 10px 14px; background: #000; color: #fff; border-radius: 4px; border-bottom: 3px solid #ff5a4f; }
.mast-id { display: flex; flex-direction: column; gap: 2px; }
.mast-name { font-size: 24px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; color: #fff; text-decoration: none; line-height: 1; }
.mast-name b { color: #ff5a4f; }
.mast-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #bbb; }
.mast-meta .wire-live { margin: 0 !important; font-size: 11px !important; letter-spacing: .12em; }
.mast-nav { display: flex; gap: 2px; }
.mast-nav a { padding: 7px 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ccc; text-decoration: none; border-radius: 3px; }
.mast-nav a:hover { color: #fff; background: #222; }
.mast-nav a[aria-current="page"] { color: #fff; background: #ff5a4f; }
.wire-mast .wire-acct { flex: 1 1 100%; padding: 6px 0 0; border: 0; border-top: 1px solid #222; border-radius: 0; background: none; color: #ddd; font-size: 13px; }
.wire-mast .wire-acct a { color: #6ea8ff; }
.wire-mast .wire-acct[hidden] { display: none; }
.res-desc { color: #ccc; max-width: 80ch; margin: 6px auto 0 !important; }
.ev-head { background: #000; color: #fff; border-radius: 4px; border-bottom: 0; }
@media (max-width: 560px) { .mast-nav a { padding: 6px 8px; letter-spacing: .06em; } .mast-name { font-size: 20px; } }
/* "More keywords" toggles under the keyword lists. */
.res-side .res-more { margin: -8px 0 14px 6px; font-size: 12px; }
.res-side .res-more button { color: #ff8a3d; text-decoration: underline; }
.ev-side .ev-more { font-size: 12px; font-weight: 700; color: var(--accent-text); text-decoration: underline; }
/* Sports galleries panel (Events, admins). */
.wire-auto .wire-src-links { display: block; margin-top: 8px; }
.wire-auto .wire-src-links textarea { width: min(560px, 100%); font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg, #fff); color: var(--ink); resize: vertical; }
.wire-auto button.ghost { background: transparent; color: var(--accent-text); }
#src { margin-top: 12px; }
/* Wire login and contributor pages. */
.wire-form { max-width: 760px; }
.wire-form .btn { display: inline-block; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; }
.wire-form .pw { display: flex; gap: 6px; }
.wire-form .pw input { flex: 1; min-width: 0; }
.wire-form .pw button { padding: 6px 10px; font-size: 12px; }
.wire-form .hp { position: absolute; left: -9999px; }
.wire-form .msg { color: #d33; font-size: 14px; }
.wire-form a { color: var(--accent-text); }
.mast-nav a.mast-login { border: 1px solid #444; }
.wire-site .ys-nav { display: none; }
/* Coverage calendar (/wire/calendar/). */
.cal-intro { margin: 8px 0 4px; color: var(--muted); }
.cal-past { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.cal-admin { display: block; margin-bottom: 16px; }
.cal-admin summary { cursor: pointer; list-style: none; }
.cal-admin summary h2 { display: inline; }
.cal-admin form { margin-top: 12px; }
.cal-list { display: flex; flex-direction: column; gap: 18px; }
.cal-day h3 { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.cal-day.past { opacity: .6; }
.cal-day ul { list-style: none; margin: 0; padding: 0; }
.cal-day li { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cal-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.cal-what { display: flex; flex-direction: column; gap: 2px; }
.cal-sport { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ff5a4f; }
.cal-place, .cal-note { font-size: 13px; color: var(--muted); }
.cal-edit .link { font: inherit; font-size: 13px; padding: 0; border: 0; background: none; color: var(--accent-text); cursor: pointer; }
@media (max-width: 560px) { .cal-day li { grid-template-columns: 64px 1fr; } .cal-edit { grid-column: 2; } }
/* Contribute page: requirements. */
.contrib { display: grid; gap: 18px; margin: 8px 0 6px; }
.contrib section { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.contrib h3, .apply-head { margin: 0 0 8px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.apply-head { margin-top: 10px; }
.contrib ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.contrib ul.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; }
.contrib p { margin: 0 0 8px; }
.gear { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 10px; }
.gear th, .gear td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gear th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* Phones: a slim masthead that stays at the top; its links scroll sideways instead of wrapping. */
.mast-nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .wire-mast { padding: 8px 10px; gap: 4px; }
  .wire-mast .mast-meta { display: none; }
  .mast-nav { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mast-nav::-webkit-scrollbar { display: none; }
}

/* The masthead tucks away while scrolling down and comes back on the way up (site.js toggles .mast-hidden). */
.wire-mast { transition: transform .25s ease, opacity .2s ease; }
.mast-hidden .wire-mast { transform: translateY(calc(-100% - 12px)); opacity: 0; pointer-events: none; }
.wire-bar, .wire-new, .ev-side { transition: top .25s ease; }
@media (prefers-reduced-motion: reduce) { .wire-mast, .wire-bar, .wire-new, .ev-side { transition: none; } }

/* My account and Popular */
.my-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 26px; }
.my-stat { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.my-stat b { display: block; font-size: 30px; line-height: 1.1; }
.my-stat span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #888); }
.my-stat.low b { color: #ff5a4f; }
.my-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.my-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.my-card .pic { position: relative; aspect-ratio: 3 / 2; background: #111; }
.my-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-card .rank { position: absolute; top: 8px; left: 8px; background: #000; color: #fff; font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 3px; }
.my-card .count { position: absolute; bottom: 8px; right: 8px; background: #ff5a4f; color: #fff; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.my-card .txt { padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.my-card .txt strong { font-size: 14px; }
.my-card .txt small { color: var(--muted, #888); }
.my-card .txt .btn-dl { margin-top: auto; align-self: flex-start; font: inherit; font-weight: 700; font-size: 12px; padding: 6px 12px; border: 0; border-radius: 3px; background: var(--accent, #ff5a4f); color: #fff; cursor: pointer; text-decoration: none; }
.my-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.my-tools input { flex: 1 1 220px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: inherit; }
.pop-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0 0 26px; }
.pop-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.pop-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.pop-list li:first-child { border-top: 0; }
.pop-list li span { color: var(--muted, #888); white-space: nowrap; }
.pop-range { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 18px; }
.pop-range button { font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; background: none; color: inherit; cursor: pointer; }
.pop-range button[aria-pressed="true"] { background: #ff5a4f; border-color: #ff5a4f; color: #fff; }
