:root {
  --paper: #ECE9E2; --paper-2: #F6F4EF; --ink: #1A1A1A; --ink-soft: #4A4744; --rule: #1A1A1A; --on-accent: #141414;
  --breaking: #FF5A4E; --politics: #B48CFF; --sport: #9BE15D; --culture: #FF4F9A; --weather: #38C6E8; --transport: #FFE135; --community: #FF8A3D;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --type: "Courier Prime", "Courier New", monospace;
  --read: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light; box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #171615; --paper-2: #211F1D; --ink: #EEEAE2; --ink-soft: #B3ADA4; --rule: #EEEAE2; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #171615; --paper-2: #211F1D; --ink: #EEEAE2; --ink-soft: #B3ADA4; --rule: #EEEAE2; color-scheme: dark; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--read); -webkit-font-smoothing: antialiased; padding-bottom: 110px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--culture); outline-offset: 2px; }
.sr { position: absolute; left: -9999px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.edition { background: var(--ink); color: var(--paper); font-family: var(--type); font-size: 13px; }
.edition .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 7px; padding-bottom: 7px; }
.edition .demo { color: var(--transport); }

.mast { position: relative; padding: 22px 0 10px; }
.mast h1 { margin: 0; font-family: var(--display); font-weight: 400; line-height: .86; letter-spacing: -2px; font-size: clamp(64px, 15vw, 168px); }
.mast h1 a { text-decoration: none; display: block; }
.mast h1 .l2 { color: var(--culture); padding-left: clamp(30px, 8vw, 110px); }
.mast .tag { font-family: var(--type); font-size: 15px; margin: 10px 0 0; color: var(--ink-soft); }
.sticker { position: absolute; right: 4px; top: 26px; width: clamp(96px, 16vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--transport); color: var(--on-accent); border: 3px solid var(--rule); display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: clamp(15px, 2.2vw, 22px); line-height: 1.05; transform: rotate(12deg); transition: transform .4s; }
.sticker:hover { transform: rotate(-8deg) scale(1.04); }

nav.rubrics { border-top: 3px solid var(--rule); border-bottom: 3px solid var(--rule); }
nav.rubrics ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; }
nav.rubrics li { flex: 0 0 auto; }
nav.rubrics a { display: block; padding: 10px 14px; font-family: var(--display); font-size: 19px; text-decoration: none; border-right: 2px solid var(--rule); }
nav.rubrics a:hover, nav.rubrics a[aria-current="page"] { background: var(--c, var(--ink)); color: var(--on-accent); }
nav.rubrics a.all:hover, nav.rubrics a.all[aria-current="page"] { color: var(--paper); }

.c-breaking { --c: var(--breaking); } .c-politics { --c: var(--politics); } .c-sport { --c: var(--sport); }
.c-culture { --c: var(--culture); } .c-weather { --c: var(--weather); } .c-transport { --c: var(--transport); } .c-community { --c: var(--community); }

.cover { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border-bottom: 3px solid var(--rule); }
.lead { background: var(--c); color: var(--on-accent); padding: 26px 26px 30px; border-right: 3px solid var(--rule); text-decoration: none; display: block; }
.kicker { display: inline-block; font-family: var(--type); font-size: 13px; background: var(--on-accent); color: var(--c, #fff); padding: 3px 8px; }
.lead h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 70px); line-height: .95; margin: 16px 0 14px; transform: rotate(-2deg); transform-origin: left; max-width: 12ch; }
.lead p { font-size: 18px; line-height: 1.55; max-width: 46ch; margin: 0; font-style: italic; }
.lead .cta { display: inline-block; margin-top: 18px; font-family: var(--type); font-weight: 700; font-size: 14px; background: var(--paper-2); color: var(--ink); border: 2px solid var(--on-accent); padding: 6px 10px; transform: rotate(-3deg); }
.side { display: grid; grid-auto-rows: 1fr; }
.tile { background: var(--c); color: var(--on-accent); padding: 16px 18px; border-bottom: 3px solid var(--rule); text-decoration: none; display: block; }
.tile:last-child { border-bottom: 0; }
.tile .where { font-family: var(--type); font-size: 13px; }
.tile h3 { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.02; margin: 6px 0 0; }
.lead:hover h2, .tile:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 6px; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: 40px; margin: 0; }
.section-head span { font-family: var(--type); font-size: 14px; color: var(--ink-soft); }
.list { list-style: none; margin: 0 0 30px; padding: 0; border-top: 3px solid var(--rule); }
.list li > a { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1.5px solid var(--rule); text-decoration: none; align-items: start; }
.list .tab { background: var(--c); color: var(--on-accent); font-family: var(--display); font-size: 17px; padding: 4px 8px; text-align: center; }
.list h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; margin: 0 0 6px; }
.list p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 70ch; }
.list .where { font-family: var(--type); font-size: 13px; display: block; margin-bottom: 4px; }
.list .old { background: var(--ink); color: var(--paper); padding: 0 5px; margin-left: 6px; }
.list li > a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.empty { padding: 16px 0; border-bottom: 1.5px solid var(--rule); font-family: var(--type); font-size: 14px; color: var(--ink-soft); }

.rubric-band { background: var(--c); color: var(--on-accent); border-bottom: 3px solid var(--rule); }
.rubric-band .wrap { padding-top: 26px; padding-bottom: 22px; }
.rubric-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 10vw, 110px); line-height: .9; margin: 0; }
.rubric-band p { font-family: var(--type); margin: 8px 0 0; font-size: 15px; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.regions button { font-family: var(--type); font-size: 14px; font-weight: 700; padding: 6px 11px; border: 2px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.regions button[aria-pressed="true"] { background: var(--c); color: var(--on-accent); }
.region-head { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 26px 0 8px; }

article.story { max-width: 680px; margin: 0 auto; padding: 28px 20px 50px; }
.back { font-family: var(--type); font-size: 14px; display: inline-block; margin-bottom: 22px; }
article .kicker { background: var(--c); color: var(--on-accent); }
article h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: .98; margin: 14px 0 18px; }
.switch { border: 2px solid var(--rule); padding: 12px 14px; margin: 0 0 24px; background: var(--paper-2); }
.switch p { font-family: var(--type); font-size: 13px; margin: 0 0 8px; color: var(--ink-soft); }
.switch .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.switch button { font-family: var(--type); font-size: 14px; font-weight: 700; padding: 6px 11px; border: 2px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--c); color: var(--on-accent); transform: rotate(-2deg); }
.body { font-size: 19px; line-height: 1.75; }
.body p { margin: 0 0 1.1em; }
.body.verse p { font-style: italic; white-space: pre-line; }
.body abbr { text-decoration: underline dotted 1.5px; text-underline-offset: 3px; cursor: help; }
.styleline { font-family: var(--type); font-size: 13px; color: var(--ink-soft); border-top: 1.5px solid var(--rule); padding-top: 12px; margin-top: 28px; line-height: 1.6; }

footer { border-top: 3px solid var(--rule); background: var(--paper-2); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; padding-top: 30px; padding-bottom: 34px; }
footer h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 8px; }
footer p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; color: var(--ink-soft); max-width: 60ch; }
.signup { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.signup input { flex: 1 1 200px; font-family: var(--type); font-size: 15px; padding: 10px; border: 2px solid var(--rule); background: var(--paper); color: var(--ink); }
.signup button { font-family: var(--display); font-size: 18px; padding: 8px 16px; border: 2px solid var(--rule); background: var(--culture); color: var(--on-accent); cursor: pointer; }
.signup-msg { font-family: var(--type); font-size: 13px; min-height: 1.4em; margin-top: 8px; }
.small { font-family: var(--type); font-size: 13px; }

.fm-wrap { position: fixed; right: 0; bottom: 0; padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; z-index: 20; }
.fm { pointer-events: auto; width: 310px; background: var(--paper-2); color: var(--ink); border: 3px solid var(--rule); padding: 10px 12px 12px; font-family: var(--type); --label: #FF4F9A; }
.fm-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fm-top strong { font-family: var(--display); font-weight: 400; font-size: 19px; }
.fm-link { background: none; border: 0; color: var(--ink); font-family: var(--type); font-size: 13px; cursor: pointer; padding: 2px 4px; text-decoration: underline; }
.cassette { display: block; width: 100%; height: auto; margin-top: 8px; }
.hub { transform-box: fill-box; transform-origin: center; }
.fm.playing .hub { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fm-track { font-size: 13px; margin: 8px 0 8px; line-height: 1.4; }
.fm-controls { display: flex; align-items: center; gap: 6px; }
.fm-btn { font-family: var(--display); font-size: 15px; background: transparent; color: var(--ink); border: 2px solid var(--rule); padding: 4px 9px; cursor: pointer; }
.fm-play { background: var(--culture); color: var(--on-accent); min-width: 74px; }
.fm-controls input { flex: 1; min-width: 60px; accent-color: var(--culture); }
.fm.min { width: auto; }
.fm.min .cassette, .fm.min .fm-track, .fm.min .fm-skip, .fm.min input { display: none; }
.fm.min .fm-controls { margin-top: 6px; }

@media (max-width: 760px) {
  .cover { grid-template-columns: 1fr; }
  .lead { border-right: 0; border-bottom: 3px solid var(--rule); }
  .list li > a { grid-template-columns: 1fr; gap: 8px; }
  .list .tab { justify-self: start; }
  footer .wrap { grid-template-columns: 1fr; }
  .sticker { top: 8px; }
  .fm { width: 270px; }
}
@media (prefers-reduced-motion: reduce) { .sticker { transition: none; } .fm.playing .hub { animation: none; } }

/* Scottish details */
.edition { background-color: #0065BD; color: #FFFFFF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0L100 20M100 0L0 20' stroke='%23fff' stroke-width='3' opacity='.28'/%3E%3C/svg%3E"); background-size: 100% 100%; }
.edition .wrap { align-items: center; }
.edition .demo { color: #FFE135; }
.tartan { height: 12px; padding: 0; border-bottom: 3px solid var(--rule); background: repeating-linear-gradient(90deg, rgba(0,101,189,.85) 0 16px, rgba(27,94,50,.85) 16px 26px, rgba(0,101,189,.85) 26px 36px, rgba(226,75,74,.9) 36px 39px, rgba(0,101,189,.85) 39px 49px, rgba(255,255,255,.9) 49px 50px), repeating-linear-gradient(0deg, #0B3D73 0 3px, #1B5E32 3px 6px, #0B3D73 6px 9px, #E24B4A 9px 10px, #0B3D73 10px 12px); }
.thistle { width: 18px; height: 24px; vertical-align: -6px; margin-right: 6px; }

/* Language dropdown at the top */
.langdrop { position: relative; }
.langdrop > button { display: flex; align-items: center; gap: 5px; background: none; border: 1.5px solid rgba(255,255,255,.75); color: #FFFFFF; font-family: var(--type); font-size: 12px; font-weight: 700; padding: 3px 8px; min-height: 30px; cursor: pointer; }
.langdrop svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.langdrop ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 4px 0; background: var(--paper-2); border: 3px solid var(--rule); min-width: 160px; }
.langdrop li button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 14px; min-height: 44px; font-family: var(--type); font-size: 14px; color: var(--ink); cursor: pointer; }
.langdrop li button[aria-current="true"] { font-weight: 700; background: var(--transport); color: var(--on-accent); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--paper); font-family: var(--type); font-size: 13px; line-height: 1.4; padding: 10px 14px; max-width: min(90vw, 420px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.toast.show { opacity: 1; }
.list li.mine .where::after { content: "your area"; margin-left: 6px; background: #0065BD; color: #FFFFFF; padding: 0 5px; }
.tabbar, .sheet, .swipe-hint { display: none; }

.slogan { font-family: var(--type); font-weight: 700; font-size: 14px; margin: 6px 0 0; color: var(--ink); }
.coo { width: 64px; height: 61px; flex: none; }
.coo .ear-l { transform-box: fill-box; transform-origin: right center; animation: coo-wig 3s ease-in-out infinite; }
.coo .ear-r { transform-box: fill-box; transform-origin: left center; animation: coo-wig 3s ease-in-out infinite reverse; }
.coo .jaw { transform-box: fill-box; transform-origin: center; animation: coo-chew .7s ease-in-out infinite; }
@keyframes coo-wig { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-14deg); } 90% { transform: rotate(8deg); } }
@keyframes coo-chew { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
@keyframes coach-in { from { transform: translateY(20px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.empty { display: flex; align-items: center; gap: 12px; }
.empty .coo { width: 48px; height: 46px; }
.coach { display: none; }
.signup select { flex: 1 1 140px; min-height: 44px; font-family: var(--type); font-size: 14px; padding: 9px; border: 2px solid var(--rule); background: var(--paper); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .coo *, .coach { animation: none !important; } }
@media (max-width: 760px) {
  .coach { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 55; align-items: center; gap: 10px; background: var(--paper-2); color: var(--ink); border: 3px solid var(--rule); padding: 10px 12px; animation: coach-in .5s cubic-bezier(.3, 1.6, .5, 1); }
  .coach[hidden] { display: none; }
  .coach::after { content: ""; position: absolute; left: 50%; bottom: -13px; margin-left: -10px; border: 10px solid transparent; border-top-color: var(--rule); border-bottom: 0; }
  .coach p { margin: 0; flex: 1; font-family: var(--type); font-size: 13px; line-height: 1.4; }
  .coach button { font-family: var(--display); font-size: 16px; background: var(--culture); color: var(--on-accent); border: 2px solid var(--rule); padding: 6px 10px; min-height: 40px; cursor: pointer; }
}
.edition { position: relative; transform-origin: left center; animation: unfurl 1.3s cubic-bezier(.2, .8, .3, 1) backwards; }
@keyframes unfurl { 0% { clip-path: inset(0 100% 0 0); transform: skewY(-2deg); } 55% { clip-path: inset(0 0 0 0); transform: skewY(1.2deg); } 78% { clip-path: inset(0 0 0 0); transform: skewY(-.6deg); } 100% { clip-path: inset(0 0 0 0); transform: none; } }
.edition .wrap { position: relative; z-index: 1; }
.rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.drop { position: absolute; top: -12px; width: 1.5px; height: 9px; background: #B5D4F4; opacity: .8; animation: fall 1s linear infinite; }
@keyframes fall { to { transform: translateY(110px); } }
.sticker { animation: slap .8s cubic-bezier(.3, 1.6, .5, 1) .5s backwards; }
@keyframes slap { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 60% { transform: scale(.92) rotate(16deg); opacity: 1; } 100% { transform: scale(1) rotate(12deg); opacity: 1; } }
#main.turn { animation: turn-in .55s cubic-bezier(.2, .7, .3, 1); transform-origin: left center; }
@keyframes turn-in { from { transform: perspective(1400px) rotateY(-75deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .edition, .sticker, #main.turn { animation: none !important; } .rain { display: none; } }
.ycard { background: #FFE135; border: 3px solid var(--rule); padding: 14px; margin: 24px 0 0; display: flex; gap: 12px; align-items: center; transform: rotate(-1deg); color: #141414; }
.ycard .yt { font-family: var(--display); font-weight: var(--dw, 400); font-size: 26px; line-height: 1; }
.ycard .ys { font-family: var(--type); font-size: 13px; color: #412402; margin-top: 4px; line-height: 1.4; }
.ychips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ychips button { min-height: 40px; border: 2px solid #1A1A1A; background: #F6F4EF; color: #1A1A1A; font-family: var(--type); font-size: 13px; font-weight: 700; padding: 4px 10px; cursor: pointer; }
.ychips button:hover { background: #1A1A1A; color: #FFE135; }
.yform { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.yform input { flex: 1 1 180px; min-height: 42px; border: 2px solid #1A1A1A; background: #F6F4EF; color: #1A1A1A; font-family: var(--type); font-size: 14px; padding: 6px 8px; }
.yform button { min-height: 42px; background: #1A1A1A; color: #FFE135; border: 2px solid #1A1A1A; font-family: var(--display); font-size: 17px; padding: 4px 14px; cursor: pointer; }
.ymsg { font-family: var(--type); font-size: 12px; margin-top: 6px; min-height: 1em; }
/* ---------- Neo-brutalist layer ---------- */
:root { --type: "Space Grotesk", "Helvetica Neue", Arial, sans-serif; --breaking: #FF7A6E; --politics: #C9B3FF; --sport: #C8F169; --culture: #FF8FC0; --weather: #7FD8F0; --transport: #FFE135; --community: #FFB27A; --sh: 4px 4px 0 var(--rule); --sh-lg: 6px 6px 0 var(--rule); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --paper: #FFF4E0; --paper-2: #FFFFFF; } }
:root[data-theme="light"] { --paper: #FFF4E0; --paper-2: #FFFFFF; }
nav.rubrics { border: 0; padding: 10px 0 6px; }
nav.rubrics ul { gap: 8px; padding: 2px 6px 8px 2px; }
nav.rubrics a { border: 2px solid var(--rule); border-radius: 12px; background: var(--paper-2); padding: 7px 13px; font-size: 18px; box-shadow: 3px 3px 0 var(--rule); }
nav.rubrics a:hover, nav.rubrics a[aria-current="page"] { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--rule); }
.tartan { height: 8px; border: 2px solid var(--rule); border-radius: 6px; margin-top: 4px; }
.cover { gap: 16px; border: 0; margin-top: 16px; }
.lead { border: 2px solid var(--rule); border-radius: 22px; box-shadow: var(--sh-lg); }
.lead h2 { transform: none; }
.lead .cta { border-radius: 10px; transform: none; box-shadow: 3px 3px 0 var(--on-accent); background: #FFE135; color: #141414; }
.side { gap: 16px; }
.tile, .tile:last-child { border: 2px solid var(--rule); border-radius: 18px; box-shadow: var(--sh); }
.kicker { border-radius: 8px; }
.list { border: 0; }
.list li > a { border: 2px solid var(--rule); border-radius: 16px; background: var(--paper-2); box-shadow: var(--sh); padding: 14px; margin-bottom: 14px; }
.list .tab { border: 2px solid var(--rule); border-radius: 10px; }
.list li > a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--rule); }
.sticker { border-width: 2px; box-shadow: var(--sh); }
.ycard { border-width: 2px; border-radius: 20px; box-shadow: var(--sh-lg); color: #141414; }
.ychips button, .yform input, .yform button { border-radius: 10px; }
.ychips button { box-shadow: 2px 2px 0 #1A1A1A; }
.rubric-band { margin: 14px 14px 0; border: 2px solid var(--rule); border-radius: 22px; box-shadow: var(--sh-lg); }
.regions button, .switch button { border-radius: 10px; }
.regions button[aria-pressed="true"], .switch button[aria-pressed="true"] { transform: none; box-shadow: 3px 3px 0 var(--rule); }
.switch { border-radius: 18px; box-shadow: var(--sh); }
article .kicker, .list .old { border-radius: 8px; }
.langdrop ul { border-width: 2px; border-radius: 14px; box-shadow: var(--sh); overflow: hidden; }
.fm { border-width: 2px; border-radius: 20px; box-shadow: var(--sh-lg); }
.fm-btn { border-radius: 10px; }
.coach, .toast { border-radius: 16px; }
.signup input, .signup select, .signup button { border-radius: 10px; }
.signup button { box-shadow: 3px 3px 0 var(--rule); }
footer { border-top: 2px solid var(--rule); }
@media (max-width: 760px) {
  .tabbar { background: var(--paper-2); color: var(--ink); border-top: 2px solid var(--rule); }
  .tab-btn[aria-expanded="true"] { color: var(--ink); }
  .tab-btn[aria-expanded="true"] svg { background: #FFE135; color: #141414; border-radius: 8px; }
  .tab-style .style-dot { background: #FFE135; color: #141414; border: 2px solid var(--rule); box-shadow: 3px 3px 0 var(--rule); transform: rotate(-6deg); }
  .sheet { border: 2px solid var(--rule); border-bottom: 0; border-radius: 22px 22px 0 0; }
  body.fm-open .fm { border-radius: 22px 22px 0 0; border-width: 2px 0 0; box-shadow: none; }
  .coach { border-width: 2px; box-shadow: var(--sh); }
}
.langdrop { margin-left: auto; }
@media (hover: none) { .lead:hover h2, .tile:hover h3, .list li a:hover h3, .list li > a:hover h3 { text-decoration: none; } }
/* Phones */
@media (max-width: 760px) {
  body { padding-bottom: 90px; }
  .wrap { padding: 0 14px; }
  .mast { padding-top: 12px; }
  .mast h1 { font-size: 58px; letter-spacing: -1px; }
  .mast h1 span { display: block; }
  .mast h1 .l2 { padding-left: 28px; }
  .mast .tag { font-size: 13px; padding-right: 84px; }
  .sticker { width: 78px; font-size: 12px; top: 10px; right: 10px; border-width: 2px; }
  body.inner .mast { padding: 10px 14px 8px; }
  body.inner .mast h1 { font-size: 34px; letter-spacing: 0; }
  body.inner .mast h1 span { display: inline; }
  body.inner .mast h1 .l2 { padding-left: 8px; }
  #today { display: none; }
  body.inner .sticker, body.inner .mast .tag { display: none; }
  nav.rubrics a { padding: 12px 14px; font-size: 18px; }
  .lead { padding: 20px 18px 24px; }
  .lead h2 { font-size: 42px; }
  .tile h3 { font-size: 24px; }
  .list h3 { font-size: 23px; }
  .switch button, .regions button { min-height: 44px; }
  .swipe-hint { display: inline; }
  article.story { padding: 20px 16px 40px; }
  .body { font-size: 18px; }

  .tabbar { display: flex; align-items: flex-end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: var(--paper); border-top: 3px solid #0065BD; padding: 0 0 env(safe-area-inset-bottom, 0px); }
  .tab-btn { flex: 1; min-width: 0; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; background: none; border: 0; color: inherit; font-family: var(--type); font-size: 11px; text-decoration: none; cursor: pointer; }
  .tab-btn > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tab-btn[aria-expanded="true"] { color: #FFE135; }
  .tab-style .style-dot { width: 54px; height: 54px; margin-top: -24px; border-radius: 50%; background: var(--culture); color: var(--on-accent); border: 3px solid var(--paper); display: grid; place-items: center; transform: rotate(-8deg); }
  .tab-style .style-dot svg { width: 26px; height: 26px; }
  body.fm-playing .tab-fm svg { animation: spin 1.8s linear infinite; }

  .sheet { display: block; position: fixed; left: 0; right: 0; bottom: calc(63px + env(safe-area-inset-bottom, 0px)); z-index: 49; max-height: 70vh; overflow-y: auto; background: var(--paper-2); border-top: 3px solid var(--rule); padding: 6px 0; }
  .sheet[hidden] { display: none; }
  .sheet-title { font-family: var(--display); font-size: 26px; margin: 8px 16px 6px; }
  .sheet ul { list-style: none; margin: 0; padding: 0; }
  .sheet a, .pick { display: block; width: 100%; text-align: left; min-height: 52px; padding: 10px 16px; background: none; border: 0; border-bottom: 1.5px solid var(--rule); color: var(--ink); font-family: var(--display); font-size: 22px; text-decoration: none; cursor: pointer; }
  .sheet a { border-left: 8px solid var(--c, var(--ink)); }
  .pick small { display: block; font-family: var(--type); font-size: 12px; color: var(--ink-soft); }
  .pick[aria-pressed="true"] { background: var(--culture); color: var(--on-accent); }
  .pick[aria-pressed="true"] small { color: var(--on-accent); }
  .sheet-note { font-family: var(--type); font-size: 12px; line-height: 1.5; color: var(--ink-soft); margin: 10px 16px; }

  .fm-wrap { display: none; }
  body.fm-open .fm-wrap { display: block; left: 0; right: 0; bottom: calc(63px + env(safe-area-inset-bottom, 0px)); padding: 0; z-index: 49; }
  body.fm-open .fm { width: 100%; transform: none; border-width: 3px 0 0; }
  .fm .fm-link { display: none; }
  .fm.min .cassette, .fm.min .fm-track, .fm.min input { display: block; }
  .fm.min .fm-skip { display: inline-block; }
  .fm .cassette { max-width: 280px; margin-left: auto; margin-right: auto; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
html[lang="ru"] { --display: "Oswald", "Arial Narrow", sans-serif; }
html[lang="ru"] .mast h1 { font-family: "Anton", Impact, sans-serif; }
html[lang="ru"] :is(.lead h2, .tile h3, .list h3, .section-head h2, .rubric-band h2, article h2, nav.rubrics a, .list .tab, .region-head, .ycard .yt, .sheet a, .pick, .sheet-title, .sticker) { font-weight: 700; }
.list li.mine .where::after { content: none; }
.list p.teaser { max-height: 4.65em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 35%, transparent 100%); }
.switch { display: none; }
.styleline a { color: inherit; font-weight: inherit; text-decoration: underline dotted 1px; text-underline-offset: 2px; }
.fm-wrap { display: none; }
body.fm-open .fm-wrap { display: block; }
@media (min-width: 761px) {
  body { padding-bottom: 110px; }
  .tabbar { display: flex; align-items: flex-end; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); z-index: 50; background: var(--paper-2); color: var(--ink); border: 2px solid var(--rule); border-radius: 22px; box-shadow: var(--sh); padding: 0 6px; }
  .tab-btn { flex: 1; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: inherit; font-family: var(--type); font-size: 12px; text-decoration: none; cursor: pointer; }
  .tab-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tab-style .style-dot { width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: #FFE135; color: #141414; border: 2px solid var(--rule); box-shadow: 3px 3px 0 var(--rule); display: grid; place-items: center; transform: rotate(-6deg); }
  .tab-style .style-dot svg { width: 26px; height: 26px; }
  body.fm-playing .tab-fm svg { animation: spin 1.8s linear infinite; }
  .sheet { display: block; position: fixed; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); bottom: 92px; z-index: 49; max-height: 60vh; overflow-y: auto; background: var(--paper-2); border: 2px solid var(--rule); border-radius: 20px; box-shadow: var(--sh); padding: 6px 0; }
  .sheet[hidden] { display: none; }
  .sheet-title { font-family: var(--display); font-size: 26px; margin: 8px 16px 6px; }
  .pick { display: block; width: 100%; text-align: left; min-height: 52px; padding: 10px 16px; background: none; border: 0; border-bottom: 1.5px solid var(--rule); color: var(--ink); font-family: var(--display); font-size: 22px; cursor: pointer; }
  .pick small { display: block; font-family: var(--type); font-size: 12px; color: var(--ink-soft); }
  .pick[aria-pressed="true"] { background: var(--culture); color: var(--on-accent); }
  .sheet-note { font-family: var(--type); font-size: 12px; color: var(--ink-soft); margin: 10px 16px; }
  .fm-wrap { right: 16px; bottom: 92px; padding: 0; }
}
.c-trades { --c: #8EE3C8; }
body.inner footer { display: none; }
.regions:empty { display: none; }
.mast h1 .l2 { color: #E8417F; }
@media (max-width: 760px) {
  .tabbar { background: var(--paper-2); color: var(--ink); border-top: 2px solid var(--rule); }
  .tab-btn[aria-expanded="true"] { color: var(--ink); }
  .tab-btn[aria-expanded="true"] svg { background: #FFE135; color: #141414; border-radius: 8px; }
  .tab-style .style-dot { background: #FFE135; color: #141414; border: 2px solid var(--rule); box-shadow: 3px 3px 0 var(--rule); transform: rotate(-6deg); }
  .sheet { border: 2px solid var(--rule); border-bottom: 0; border-radius: 22px 22px 0 0; }
  body.fm-open .fm { border-radius: 22px 22px 0 0; border-width: 2px 0 0; box-shadow: none; }
  .coach { border-width: 2px; box-shadow: var(--sh); border-radius: 16px; }
}
.flake { position: absolute; top: -8px; border-radius: 50%; background: #FFFFFF; opacity: .9; animation: snowfall 4s linear infinite; }
@keyframes snowfall { 0% { transform: translate(0, 0); } 50% { transform: translate(8px, 55px); } 100% { transform: translate(-4px, 120px); } }
.sun { position: absolute; left: 60%; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: #FFE135; box-shadow: 0 0 0 6px rgba(255, 225, 53, .35), 0 0 0 13px rgba(255, 225, 53, .15); animation: sunpulse 3s ease-in-out infinite; }
@keyframes sunpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.haze { position: absolute; left: -60%; width: 70%; height: 24%; background: rgba(255, 255, 255, .3); border-radius: 999px; animation: drift 12s linear infinite; }
.cloudp { position: absolute; left: -20%; width: 90px; height: 16px; background: rgba(255, 255, 255, .35); border-radius: 999px; animation: drift 18s linear infinite; }
@keyframes drift { to { transform: translateX(260%); } }
.flash { position: absolute; inset: 0; background: #FFFFFF; opacity: 0; animation: flash 6s infinite; }
@keyframes flash { 0%, 92%, 100% { opacity: 0; } 93% { opacity: .55; } 95% { opacity: 0; } 96% { opacity: .35; } }
.dchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.dchips button { min-height: 40px; border: 2px solid var(--rule); border-radius: 10px; background: var(--paper-2); color: var(--ink); font-family: var(--type); font-size: 13px; font-weight: 700; padding: 4px 12px; cursor: pointer; box-shadow: 2px 2px 0 var(--rule); }
.dchips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.deal-note { font-family: var(--type); font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; }
.coupon { position: relative; display: flex; margin-top: 18px; border: 2px solid var(--rule); border-radius: 18px; box-shadow: var(--sh); color: #141414; }
.coupon::before, .coupon::after { content: ""; position: absolute; right: 98px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule); }
.coupon::before { top: -11px; } .coupon::after { bottom: -11px; }
.coupon .cl { flex: 1; padding: 14px 16px; min-width: 0; }
.coupon .cr { width: 108px; flex: none; border-left: 2px dashed #141414; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; }
.coupon .ck { font-family: var(--type); font-size: 12px; font-weight: 700; }
.coupon .ct { font-family: var(--display); font-weight: var(--dw, 400); font-size: 22px; line-height: 1.05; margin-top: 4px; }
.coupon .cm { font-family: var(--type); font-size: 12px; margin-top: 6px; }
.coupon .code { font-family: var(--display); font-size: 16px; background: #FFFFFF; border: 2px solid #141414; border-radius: 8px; padding: 2px 8px; }
.coupon .get { font-family: var(--type); font-size: 12px; font-weight: 700; background: #141414; color: #FFE135; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.coupon.featured { box-shadow: var(--sh-lg); }
.coupon .badge { position: absolute; top: -13px; left: 16px; background: #FFE135; border: 2px solid #141414; border-radius: 8px; font-family: var(--type); font-size: 11px; font-weight: 700; padding: 2px 8px; transform: rotate(-3deg); }
.deals-cta { font-family: var(--type); font-size: 13px; color: var(--ink-soft); margin: 28px 0 10px; line-height: 1.5; }
.styleline { font-size: 11px; line-height: 1.5; border-top: 0; margin-top: 48px; padding-top: 0; color: var(--ink-soft); opacity: .7; }
.styleline a { font-size: inherit; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; min-height: 44px; background: #FFE135; color: #141414; border: 2px solid var(--rule); border-radius: 12px; box-shadow: var(--sh); font-family: var(--type); font-weight: 700; font-size: 15px; padding: 8px 16px; cursor: pointer; }
.share-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--rule); }
.share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story-nl { margin-top: 30px; background: var(--paper-2); border: 2px solid var(--rule); border-radius: 18px; box-shadow: var(--sh); padding: 16px; }
.story-nl .yt { font-family: var(--display); font-weight: var(--dw, 400); font-size: 24px; line-height: 1.05; }
.story-nl .ys { font-family: var(--type); font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.story-nl .yform input { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.story-nl .yform button { background: #FFE135; color: #141414; border-color: var(--rule); }
.deskbar { display: none; }
@media (min-width: 761px) {
  .tabbar { display: none !important; }
  body { padding-bottom: 40px; }
  .deskbar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
  .desk-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: var(--paper-2); color: var(--ink); border: 2px solid var(--rule); border-radius: 12px; box-shadow: 3px 3px 0 var(--rule); font-family: var(--type); font-size: 14px; font-weight: 700; padding: 6px 14px; cursor: pointer; }
  .desk-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .desk-btn.desk-style { background: #FFE135; color: #141414; }
  .desk-btn[aria-expanded="true"] { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--rule); outline: 2px solid #0065BD; outline-offset: 2px; }
  body.fm-playing #desk-fm svg { animation: spin 1.8s linear infinite; }
  .sheet { top: 150px; bottom: auto; left: auto; right: 24px; transform: none; width: 380px; max-height: 70vh; }
  .fm-wrap { top: 150px; bottom: auto; right: 24px; }
}
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: #FFE135; color: #141414; border: 2px solid #141414; border-radius: 10px; padding: 10px 14px; font-family: var(--type); font-weight: 700; cursor: pointer; }
.skip:focus { top: 12px; }
#main:focus { outline: none; }
.dchips button, .ychips button, .switch button, .regions button, .fm-btn { min-height: 44px; }
.coupon button.code { cursor: pointer; color: #141414; }
.coupon button.code:active { transform: translate(1px, 1px); }

/* Additions for the live site, on top of the approved prototype styles */
.langdrop li a { display: block; padding: 10px 14px; min-height: 44px; font-family: var(--type); font-size: 14px; color: var(--ink); text-decoration: none; }
.langdrop li a[aria-current="true"] { font-weight: 700; background: var(--transport); color: var(--on-accent); }
.fm-now { display: none; }
.ycard[hidden], .version[hidden], .region-block[hidden], .coupon[hidden], li[hidden] { display: none !important; }
.gaelic { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; border: 2px solid var(--rule); border-radius: 18px; box-shadow: var(--sh); background: var(--paper-2); padding: 14px 18px; margin: 22px 0 0; }
.gaelic .kicker { background: var(--ink); color: var(--paper); }
.g-word { font-family: var(--display); font-weight: var(--dw, 400); font-size: 30px; line-height: 1.05; margin: 0; }
.g-mean { font-size: 17px; margin: 0; font-style: italic; }
.g-say { font-family: var(--type); font-size: 14px; margin: 0; color: var(--ink-soft); }
.date-badge { display: inline-block; font-family: var(--type); font-weight: 700; font-size: 13px; background: var(--c, var(--culture)); color: var(--on-accent); padding: 2px 6px; border-radius: 6px; margin-right: 6px; }
.also { font-family: var(--type); font-size: 13px; margin-top: 18px; }
.archive-list { list-style: none; padding: 0; margin: 24px 0 40px; }
.archive-list a { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; margin-bottom: 10px; border: 2px solid var(--rule); border-radius: 14px; box-shadow: 3px 3px 0 var(--rule); background: var(--paper-2); font-family: var(--display); font-weight: var(--dw, 400); font-size: 22px; text-decoration: none; }
.archive-list span { font-family: var(--type); font-size: 13px; font-weight: 400; }
.page-intro { font-family: var(--type); font-size: 15px; color: var(--ink-soft); margin: 10px 0 0; }
.soon { font-family: var(--type); font-size: 16px; padding: 30px 0 10px; }
.styleline .src-date { display: block; margin-top: 4px; }
.sr { position: absolute; left: -9999px; }
.coupon a.get { text-decoration: none; display: inline-block; }

/* The sticker sits just after the name, never on top of it */
.mast h1 { position: relative; display: inline-block; max-width: calc(100% - 130px); }
.mast h1 .sticker { position: absolute; top: 6px; right: -124px; left: auto; width: 110px; font-size: 19px; }
@media (min-width: 761px) { .mast h1 { font-size: clamp(64px, 10vw, 136px); } .mast h1 .l2 { padding-left: .05em; } }
@media (max-width: 760px) {
  .mast h1 { max-width: calc(100% - 92px); }
  .mast h1 .sticker { top: 0; right: -88px; width: 78px; font-size: 12px; }
}
