/* marks.css: three small shared marks (Nov 20 2026). Level 3 of the paper (mix3, mix4). Tokens only.

   1. .opens / .opens-in: "this tile opens something bigger". Stephen: "when a tile is clickable out to a
      bigger/better version of it from which it came, the tile needs to be apparent that it can do that."
      .opens     on a boxed or pictured tile: a small round arrow in its top right corner.
      .opens-in  on a text row or headline: an accent arrow after its last word.
   2. .ed-pick: Steve's pick (he asked for his name on it, not "Editor's pick"). A coloured box and a small label, for his best work.
   3. .look-here: a one-time ring that draws the eye to a control (the Local / National / Everything switch). */

html[data-tight="3"] .opens { position: relative; }
html[data-tight="3"] .opens::after {
  content: '›'; position: absolute; top: 8px; right: 8px; z-index: 2; pointer-events: none;
  width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--paper); color: var(--accent); border: var(--rule-w) solid var(--rule-2);
  font: 700 16px/1 var(--f-ui); padding-bottom: 2px; box-sizing: border-box;
}
html[data-tight="3"] .opens-in::after { content: '\00a0›'; color: var(--accent); font-weight: 700; }

html[data-tight="3"] .ed-pick { position: relative; border: 2px solid var(--accent); padding: 20px 10px 10px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
html[data-tight="3"] .ed-pick::before {
  content: 'Steve’s pick'; position: absolute; top: -1px; left: -1px; padding: 3px 8px 2px;
  background: var(--accent); color: var(--accent-ink); font: 700 9.5px/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase;
}
/* the first time a pick comes on screen: a single soft sweep of light across it */
html[data-tight="3"] .ed-pick.ed-seen { animation: ed-glow 1.4s ease-out 1; }
@keyframes ed-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

html[data-tight="3"] .look-here { position: relative; }
html[data-tight="3"] .look-here::after {
  content: ''; position: absolute; inset: -5px -7px; border: 2px solid var(--accent); border-radius: 8px; pointer-events: none;
  animation: look-here 1.1s ease-out 3 both;
}
@keyframes look-here { 0% { transform: scale(1.5); opacity: 0; } 35% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html[data-tight="3"] .ed-pick.ed-seen, html[data-tight="3"] .look-here::after { animation: none; }
  html[data-tight="3"] .look-here::after { opacity: 0; }
}

/* the name at the top: "BTown Feed" in the masthead face, and under its last word "by Steve" as a signature.
   Stephen, Nov 20 2026: the script faces "look like handwritten font… make it seem more like real handwriting", "a
   casual, slightly imperfect monoline pen… more editor's margin note than formal calligraphy… shorter, like by Steve,
   so it reads like an actual signature"; then: "I liked yours actually. But under By Steve put BTown Brief". assets/by-steve.png is that, two lines: pen letters set off their line one by one, the
   stroke wobbled and grained like ink on paper, drawn once and kept as a picture. It is used as a mask, so the ink
   takes the look's own colour (dark on paper, light at Night). The words stay in the page for screen readers. */
.minimark { display: grid; justify-items: center; row-gap: 0; text-decoration: none; }
.minimark b { font: inherit; letter-spacing: inherit; }
.minimark .sig {
  display: block; justify-self: end; height: 36px; width: 91px; margin: -6px -14px 0 0; font-size: 0; line-height: 0; color: transparent;
  background: var(--ink, currentColor);
  -webkit-mask: url(../assets/by-steve.png?v=2) center / contain no-repeat; mask: url(../assets/by-steve.png?v=2) center / contain no-repeat;
}
html:is([data-tight="1"],[data-tight="3"]) .tab-front .mast .minimark .sig { height: 50px; width: 126px; margin: -7px -12px 0 0; }
/* signed once, left to right, on the first screen of a visit */
.minimark .sig.sig-in { animation: sig-in .9s .35s cubic-bezier(.3, .1, .3, 1) both; }
@keyframes sig-in { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }
@media (prefers-reduced-motion: reduce) { .minimark .sig.sig-in { animation: none; } }

/* js/shirts.js: his shirt designs, a sideways row (opens out like every other row) */
.tee-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tee-row::-webkit-scrollbar { display: none; }
.tee { flex: 0 0 150px; display: grid; gap: 7px; align-content: start; color: var(--ink); text-decoration: none; }
.tee-art { display: block; box-sizing: border-box; width: 150px; height: 150px; overflow: hidden; padding: 16px; border: var(--rule-w, 1px) solid var(--rule); border-radius: 3px; }
.tee-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tee { min-width: 0; }
.tee-box .tee-row { padding-left: 16px; padding-right: 16px; }
.tee b { font: 600 15px/1.2 var(--f-head); }

/* js/index-sheet.js: the index button beside search, and its sheet */
.gbtn.idx { display: none; }
html[data-tight="3"]:not([data-shell="modern"]) .mast-top { position: relative; }
html[data-tight="3"]:not([data-shell="modern"]) .gbtn.idx { display: grid; place-items: center; position: absolute; left: 50px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; color: var(--accent); z-index: 2; }
.gbtn.idx svg { width: 18px; height: 18px; }
.gbtn.idx.blink::after { content: ''; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid var(--accent); animation: idx-blink 1.5s ease-out infinite; pointer-events: none; }
.gbtn.idx.blink svg { animation: idx-beat 1.5s ease-in-out infinite; }
@keyframes idx-blink { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes idx-beat { 50% { opacity: .45; } }
html.idx-open { overflow: hidden; }
.idx-back { position: fixed; inset: 0; z-index: 90; background: rgba(20, 16, 10, .45); display: grid; padding: calc(10px + env(safe-area-inset-top, 0px)) 8px calc(10px + env(safe-area-inset-bottom, 0px)); animation: idx-fade .2s ease both; }
.idx-sheet { display: flex; flex-direction: column; min-height: 0; max-width: 560px; width: 100%; margin: 0 auto; background: var(--paper); color: var(--ink); border: var(--rule-w, 1px) solid var(--rule-2, var(--ink)); border-top-width: 4px; border-radius: 4px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); animation: idx-up .32s cubic-bezier(.2, .9, .2, 1) both; overflow: hidden; }
@keyframes idx-fade { from { opacity: 0; } }
@keyframes idx-up { from { transform: translateY(26px) scale(.98); opacity: 0; } }
.idx-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px 16px; border-bottom: var(--rule-w, 1px) solid var(--rule); }
.idx-top h2 { margin: 0; font: 700 28px/1 var(--f-head); }
.idx-x { position: static !important; display: grid !important; place-items: center; width: 38px; height: 38px; font: 400 16px/1 var(--f-ui); color: var(--ink); transform: none !important; }
.idx-jump { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; border-bottom: var(--rule-w, 1px) solid var(--rule); scrollbar-width: none; }
.idx-jump::-webkit-scrollbar { display: none; }
.idx-jump a { flex: none; display: flex; align-items: baseline; gap: 5px; padding: 7px 11px; border: var(--rule-w, 1px) solid var(--rule); border-radius: 999px; font: 600 13.5px/1 var(--f-ui); color: var(--ink); text-decoration: none; }
.idx-jump b, .idx-tab h3 b, .idx-sec b { font: 700 .82em/1 var(--f-head); color: var(--accent); }
.idx-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 14px 22px; }
.idx-tab { padding-top: 16px; }
.idx-tab h3 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: calc(var(--rule-w, 1px) * 2) solid var(--ink); }
.idx-tab h3 a { display: flex; align-items: baseline; gap: 8px; font: 700 22px/1.1 var(--f-head); color: var(--ink); text-decoration: none; }
.idx-tab h3 i { margin-left: auto; font-style: normal; color: var(--accent); }
.idx-secs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.idx-sec { display: flex; align-items: baseline; gap: 5px; padding: 7px 10px; background: var(--ink); color: var(--paper); border-radius: 3px; font: 600 13.5px/1.1 var(--f-ui); text-decoration: none; }
.idx-sec b { color: inherit; opacity: .6; }
.idx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.idx-tile { display: grid; align-content: start; gap: 3px; padding: 9px 10px; border: var(--rule-w, 1px) solid var(--rule); border-radius: 3px; background: var(--box, transparent); color: var(--ink); text-decoration: none; min-width: 0; }
.idx-tile small { font: 700 9.5px/1.1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.idx-tile b { font: 600 15.5px/1.15 var(--f-head); }
.idx-tile.pick { border-color: var(--accent); }
.idx-tile.pick small { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .gbtn.idx.blink::after, .gbtn.idx.blink svg, .idx-back, .idx-sheet { animation: none; } }

/* the bottom bar (Stephen, Nov 20 2026): more glass, and the words big enough to read; the page code stays as a
   small mark over each word */
html[data-tight="3"]:not([data-shell="modern"]) .bar {
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid color-mix(in srgb, #fff 55%, transparent);
  box-shadow: 0 12px 36px rgba(30, 20, 5, .22), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .06);
}
html[data-tight="3"]:not([data-shell="modern"]) .bar a { gap: 4px; padding: 9px 1px 9px; }
html[data-tight="3"]:not([data-shell="modern"]) .bar a .bc { font: 700 9.5px/1 var(--f-ui); letter-spacing: .08em; color: var(--accent); }
html[data-tight="3"]:not([data-shell="modern"]) .bar a span { font: 700 14.5px/1 var(--f-ui); letter-spacing: -.025em; color: var(--ink); }
html[data-tight="3"]:not([data-shell="modern"]) .bar a.on .bc { color: inherit; opacity: .7; }
html[data-tight="3"]:not([data-shell="modern"]) .bar a.on span { color: inherit; }

.tee-all { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 6px; padding: 12px 14px; border: var(--rule-w, 1px) solid var(--accent); border-radius: 3px; color: var(--ink); text-decoration: none; }
.tee-box .tee-all { margin-left: var(--gutter, 16px); margin-right: var(--gutter, 16px); }
.tee-all b { font: 600 17px/1.1 var(--f-head); }
.tee-all em { font: 400 22px/1 var(--f-head); font-style: normal; color: var(--accent); }
