/* Lunchgruppen redesign: tokens, base and the shared layout (nav, footer, message pages).
   Loaded after the old stylesheets, which stay until every page is rebuilt (see step 8 of the redesign). */

/* ---------- fonts (self-hosted, SIL Open Font License; see the LICENSE files next to them) ---------- */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/fraunces-latin-opsz-italic.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/fraunces-latin-ext-opsz-italic.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens: one palette for every page ---------- */
:root {
    --bg: #f5eee2; --soft: #f3ebdd; --paper-2: #ece2d0; --card: #fffcf6; --ecard: #fbf7f0; --white: #fffdf9;
    --ink: #2b2420; --ink-2: #6a5e55; --line: #e6dccb; --rule: #dccfba;
    --tomato: #c4462f; --olive: #6d7b3b; --gold: #b48a2c;
    /* the logo's blue (#009ee1), darker so it reads as text on the page (4.6:1); only for the site's name */
    --brand: #0072a3;
    /* score tones: below 2, below 2.75, below 3.25, the rest */
    --bad: #c4462f; --meh: #d29a2e; --ok: #9fa04a; --good: #5d8a3c;
    --radius: 18px;
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --serif: 'Fraunces', Georgia, serif;
    --shadow: 0 1px 2px #2b24200d, 0 10px 26px -14px #5e4a3040;
    --chart-grid: #e6dccb; --chart-muted: #8a7d72; --chart-ink: #2b2420; --chart-line: #2b2420; --chart-fill: #6d7b3b14; --chart-bg: #fbf7f0;
    --chart-hi: #5d8a3c; --chart-lo: #c4462f; --chart-band: #9fa04a1f;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* always reserve the scrollbar's space, so short and long pages line up when navigating between them */
html { scrollbar-gutter: stable; }
html, body { min-height: 100%; font-family: var(--sans); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.5 var(--sans);
}
main { display: block; }
/* What the pages relied on from Bootstrap's reset. [hidden] must win over display rules: the start page's search
   hides cards and rows that are display: grid. */
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote { margin-top: 0; }
p, ul, ol, dl { margin-bottom: 1rem; }
small { font-size: .875em; }
img, svg { vertical-align: middle; }
button, input, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, select { text-transform: none; }
button:not(:disabled), [type=button]:not(:disabled), [type=submit]:not(:disabled) { cursor: pointer; }
label { display: inline-block; }
/* FocusOnNavigate (Routes.razor) moves focus to the page's h1 for screen readers; no ring for that */
h1:focus { outline: none; }

/* Blazor's own error bar (MainLayout) and error boundary, hidden until something goes wrong */
#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 12px 48px 12px 20px; background: #f1e2c6; border-top: 3px solid var(--tomato); color: var(--ink); font-weight: 600; box-shadow: 0 -6px 18px -10px #2b242066; }
#blazor-error-ui .reload { color: var(--tomato); margin-left: 8px; }
#blazor-error-ui .dismiss { position: absolute; right: 16px; top: 10px; cursor: pointer; }
.blazor-error-boundary { background: #c4462f; color: #fff; padding: 12px 16px; border-radius: 6px; }
.blazor-error-boundary::after { content: "Något gick fel."; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.kicker { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tomato); }

/* ---------- nav ---------- */
.topnav { position: sticky; top: 0; z-index: 5; background: #f5eee2e8; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topnav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.topnav .logo { position: relative; display: block; line-height: 0; }
.topnav .logo img { height: 42px; }
/* a shade darker than the page, so the pill shows (a little lighter than the start page's filter) */
.topnav nav { display: flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 999px; margin-left: auto; }
.topnav nav a { padding: 7px 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.topnav nav a:hover { color: var(--ink); }
.topnav nav a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.topnav nav a.adm { display: inline-flex; align-items: center; gap: 6px; }
.topnav nav a.adm i { font-style: normal; line-height: 1; }
.topnav .avatar-s { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; text-decoration: none; }
.topnav .avatar-s:hover { color: #fff; box-shadow: 0 0 0 3px var(--soft), 0 0 0 4px var(--olive); }

/* ---------- the pages ---------- */
.lg-page { width: 100%; }
.lg-page a { color: inherit; }

/* ---------- shared pieces: ring, medal, category bars, pills ---------- */
.ring { --s: 3; --c: var(--good); width: 66px; height: 66px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: radial-gradient(closest-side, var(--card) 76%, transparent 77% 100%), conic-gradient(var(--c) calc(var(--s) * 20%), var(--soft) 0); }
.ring b { font: 800 19px var(--serif); letter-spacing: -.02em; }
.ring.sm { width: 54px; height: 54px; }
.ring.sm b { font-size: 14.5px; }
.medal { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.medal.gold { background: #d4a72c; }
.medal.silver { background: #a9b0b8; }
.medal.bronze { background: #bf7b48; }
/* card style (F) */
.fbars { display: grid; gap: 7px; }
.fb { display: grid; grid-template-columns: 82px 1fr 30px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.fb .t { height: 7px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.fb .t i { display: block; height: 100%; border-radius: 4px; }
.fb b { text-align: right; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.fb.hl span { color: var(--ink); font-weight: 700; }
/* list style (E) */
.ebars { display: grid; gap: 6px; }
.eb { display: grid; grid-template-columns: 78px 1fr 32px; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-2); }
.eb .t { height: 7px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.eb .t i { display: block; height: 100%; border-radius: 4px; }
.eb b { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.eb.hl span, .eb.hl b { color: var(--ink); font-weight: 700; }
.pill { font-size: 12.5px; font-weight: 600; background: var(--soft); border-radius: 999px; padding: 4px 10px; }
.status { font: 700 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--tomato); border: 1px solid #c4462f66; padding: 1px 6px; font-style: normal; }

/* ---------- landing page ---------- */
/* intro follows the view: cards get F's leaders, the list gets E's top 3. Both share one grid cell, so the
   header is as tall in either view and the tools below never move; the inactive one is only made invisible. */
.intros { display: grid; align-items: end; }
.intros > .intro { grid-area: 1 / 1; }
.landing.view-list .intro-cards, .landing:not(.view-list) .intro-list { visibility: hidden; }
.intro { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 36px 0 18px; }
.intro h1 { font: 800 36px/1.08 var(--serif); letter-spacing: -.02em; margin: 0; }
.intro h1 em { font-style: italic; font-weight: 400; color: var(--tomato); }
/* "Lunchgruppen.se –" as a small blue wordmark in front, and the twist at the end on a line of its own */
.intro h1 .site { font: 700 .55em/1 var(--sans); letter-spacing: .02em; color: var(--brand); vertical-align: .25em; }
.intro h1 .twist { display: block; white-space: nowrap; }
.intro p { margin: 8px 0 0; color: var(--ink-2); }
.leaders-wrap .lbl, .top3 .lbl { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.leaders-wrap .lbl { margin-bottom: 8px; }
.leaders { display: flex; gap: 8px; }
.leader { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; min-width: 150px; text-decoration: none; }
.leader:hover b { text-decoration: underline; text-decoration-color: var(--tomato); text-underline-offset: 3px; }
.leader small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.leader b { display: block; font: 600 16px var(--serif); margin-top: 2px; }
.leader span { font: 800 20px var(--serif); }
.intro-list { grid-template-columns: 1.4fr 1fr; gap: 48px; }
.intro-list h1 { margin-top: 8px; }
.intro-list p { max-width: 52ch; }
.top3 { border-top: 2px solid var(--ink); padding-top: 10px; }
.top3 ol { list-style: none; margin: 6px 0 0; padding: 0; }
.top3 li { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--rule); font: 600 17px var(--serif); }
.top3 li a { text-decoration: none; }
.top3 li a:hover { text-decoration: underline; text-decoration-color: var(--tomato); }
.top3 li i { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.top3 li b { font-weight: 800; }

/* tools: F's controls with E's accent for the active choice */
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
/* the widest thing in the row; at least 280px, so the controls beside it can't squeeze it */
.lg-page .search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; flex: 1; min-width: 280px; margin: 0; }
.lg-page .search input { border: 0; outline: 0; font: inherit; padding: 12px 0; flex: 1; background: none; min-width: 0; color: var(--ink); }
.lg-page .search:focus-within { border-color: var(--ink-2); }
/* the way to Lunchkartan, beside the search: an icon button as tall as the search box */
.lg-page a.map-link { align-self: stretch; display: grid; place-items: center; width: 48px; flex-shrink: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color .12s; }
.lg-page a.map-link:hover { border-color: var(--ink-2); }
/* the way to Lunchbanditen, a line under the top 3 */
.lg-page a.bandit-line { display: inline-flex; align-items: baseline; gap: 7px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.bandit-line b { color: var(--tomato); }
.bandit-line:hover b { text-decoration: underline; }
.bandit-line i { display: inline-block; font-style: normal; font-size: 16px; line-height: 1; }
.bandit-line:hover i { animation: bandit-shake .45s ease-in-out; }
@keyframes bandit-shake { 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
.map-ico { display: block; flex-shrink: 0; }
.ctl { display: flex; align-items: center; gap: 8px; }
.ctl + .ctl { margin-left: 10px; }
.ctl-l { font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.seg { display: flex; background: #e9dcc5; border: 1px solid #dccdb2; border-radius: 12px; padding: 3px; }
.seg a { font: 600 13.5px var(--sans); color: var(--ink-2); padding: 7px 13px; border-radius: 9px; white-space: nowrap; text-decoration: none; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--ink); color: var(--bg); }
/* the chosen sort's direction; clicking it again turns the order around */
.seg a .dir { font-style: normal; margin-left: 4px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 20px; scrollbar-width: none; }
.chip { flex-shrink: 0; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; font: 600 13px/16px var(--sans); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.lg-page a.chip { color: var(--ink-2); }
.lg-page a.chip:hover { color: var(--ink); border-color: var(--ink-2); }
.lg-page .chip.on, .lg-page a.chip.on:hover { background: var(--olive); border-color: var(--olive); color: #fff; }
/* Members always count; guests is an add-on attached to it */
.chipgroup { display: flex; flex-shrink: 0; border: 1px solid var(--olive); border-radius: 999px; overflow: hidden; }
.chipgroup .chip { border: 0; border-radius: 0; }
.lg-page .chipgroup .base { background: var(--olive); color: #fff; padding-right: 11px; }
.lg-page .chipgroup .addon { background: var(--card); color: var(--olive); border-left: 1px dashed var(--olive); padding-left: 11px; }
.lg-page .chipgroup .addon.on { background: #8d9a58; color: #fff; border-left: 1px solid #ffffff59; }
/* fixed-width slot so + and ✓ take the same room; the chip's fixed line-height keeps the ✓ (a fallback-font
   glyph with a taller line) from changing its height */
.chipgroup .sym { display: inline-block; width: 1.1em; font-style: normal; text-align: left; }

/* cards (F) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 16px; }
.lcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.lcard .meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.lcard .meta .when { font: italic 400 14px var(--serif); }
.lcard .meta .rk { margin-left: auto; display: flex; align-items: center; gap: 5px; font-weight: 700; background: var(--soft); border-radius: 6px; padding: 2px 8px; }
.lcard .hd { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.lcard .hd:hover h3 { text-decoration: underline; text-decoration-color: var(--tomato); text-underline-offset: 3px; }
.lcard h3 { margin: 0; font: 600 19px/1.2 var(--serif); }
.lcard .ft { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 11px; margin-top: auto; }
/* the website link is only there when one is logged, and says where it goes */
.lg-page .lcard .site { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.lg-page .lcard .site:hover { color: var(--ink); border-color: var(--ink-2); }

/* list (E) */
.lrow { display: grid; grid-template-columns: 96px minmax(0, 1.3fr) minmax(0, 1.4fr) 92px; gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px dotted var(--rule); }
.lrow.colhead { padding: 10px 0 8px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.lrow.colhead .r { text-align: right; }
.lrow .when { font: italic 400 15px var(--serif); color: var(--ink-2); line-height: 1.25; }
.lrow .nm { display: block; font: 600 20px/1.2 var(--serif); text-decoration: none; }
.lrow .nm:hover { text-decoration: underline; text-decoration-color: var(--tomato); text-underline-offset: 3px; }
.lrow .sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lrow .tot { text-align: right; font: 800 34px/1 var(--serif); letter-spacing: -.02em; }
.lrow .tot small { display: block; font: 500 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }

/* the search hides places with the hidden attribute; cards and rows set their own display, so restate it */
[data-place][hidden], [data-place-empty][hidden] { display: none; }
.landing .empty { color: var(--ink-2); padding: 24px 0; }
.landing .foot { text-align: center; color: var(--ink-2); font-size: 13px; margin: 32px auto 20px; max-width: 70ch; }
.about-lg { max-width: 70ch; margin: 0 auto 48px; color: var(--ink-2); font-size: 14px; }
.about-lg summary { cursor: pointer; text-align: center; font-weight: 600; color: var(--ink); }
.about-lg .title { font: 600 18px var(--serif); color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 24px 0; font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---------- log out (a POST form, so a link preview can't sign anyone out) ---------- */
.logout-form { margin: 0; }
.logout-form button { border: 0; background: none; padding: 0; font: 600 14px var(--sans); color: var(--tomato); cursor: pointer; }
.logout-form button:hover { text-decoration: underline; }

/* ---------- message pages (404 and errors) ---------- */
.page-msg { padding: 74px 20px 80px; max-width: 760px; }
.page-msg h1 { font: 800 42px/1.05 var(--serif); letter-spacing: -.02em; margin: 8px 0 0; }
.page-msg p { color: var(--ink-2); margin: 12px 0 0; max-width: 56ch; }
.page-msg img { display: block; width: 100%; max-width: 560px; margin: 28px 0 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-msg .pri { display: inline-block; margin-top: 24px; font: 700 14px var(--sans); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; }
.page-msg code { font-size: 13px; }

/* a place's location on its own line under the name (PlaceName.razor), in small grey text with the map pin */
.pname-loc { display: block; font: 600 12.5px/1.3 var(--sans); color: var(--ink-2); letter-spacing: .01em; margin-top: 3px; }
.pname-loc svg { width: .72em; height: .96em; vertical-align: -.08em; margin-right: .3em; }
.pname-loc svg path { fill: var(--tomato); }
.pname-loc svg circle { fill: var(--card); }
.leader .pname-loc { font-size: 11.5px; margin-top: 1px; }
.pg-head h1 .pname-loc { font-size: 17px; margin-top: 10px; letter-spacing: .01em; }
/* read out by screen readers, not shown */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- restaurant page ---------- */
.placepg { padding: 28px 0 80px; }
.placepg .crumb, .themepg .crumb { font-size: 13.5px; color: var(--ink-2); text-decoration: none; display: inline-block; margin-bottom: 22px; }
.placepg .crumb:hover, .themepg .crumb:hover { color: var(--tomato); }
/* the crumb, and for admins a link to the place in admin: a different kind of action, so it looks like a button */
.placepg .crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 22px; }
.placepg .crumbs .crumb { margin-bottom: 0; }
.placepg .admin-link { font: 700 12.5px var(--sans); color: var(--tomato); text-decoration: none; border: 1.5px solid var(--tomato); border-radius: 999px; padding: 3px 12px; }
.placepg .admin-link:hover, .placepg .admin-link:focus-visible { background: var(--tomato); color: #fff; }
.ex { font: 700 10.5px var(--sans); background: var(--gold); color: #fff; padding: 2px 8px; border-radius: 3px; letter-spacing: .08em; text-transform: uppercase; }
.pg-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.pg-head h1 { font: 800 64px/1 var(--serif); margin: 8px 0 14px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pstatus { display: inline-block; background: #f1e2c6; border-left: 3px solid var(--gold); padding: 3px 10px; font-size: 13px; margin-left: 8px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; }
.pg-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--ink-2); }
.pg-nav span { display: inline-flex; align-items: center; gap: 6px; }
.placepg .pg-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.placepg .pg-nav a:hover { color: var(--tomato); }
.pg-nav b { color: var(--ink); }
.pg-nav .sep { width: 1px; height: 16px; background: var(--rule); }
.pg-score { text-align: right; }
.pg-score b { font: 800 92px/0.9 var(--serif); letter-spacing: -.04em; }
.pg-score small { font: 400 22px var(--serif); color: var(--ink-2); }
.pg-score span { display: block; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 30px; align-items: start; }
.pg-grid > * { min-width: 0; }
.placepg .auto { display: flex; gap: 8px; align-items: center; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.lede p { font: 400 19px/1.6 var(--serif); margin: 0 0 14px; }
.lede p:first-child { font-size: 23px; line-height: 1.5; }
.lede p:first-child::first-letter { font: 800 64px/.8 var(--serif); float: left; margin: 8px 10px 0 0; color: var(--tomato); }
.placepg .box { background: var(--ecard); border: 1px solid var(--rule); padding: 20px; margin-top: 26px; }
.placepg .box .h { font: 700 21px var(--serif); margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.placepg .box .h small { font: 500 12.5px var(--sans); color: var(--ink-2); }
.one-visit { margin: 6px 0; font-size: 14px; color: var(--chart-muted); }
.chartbox .chart svg { display: block; }
.chartbox .chart.narrow { display: none; }
.chartbox .lg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); margin-top: 4px; padding-left: 30px; }
.chartbox .lg i { display: inline-block; width: 16px; border-top: 2.5px solid var(--chart-line); vertical-align: middle; margin-right: 5px; }
.chartbox .lg i.d { border-top: 1.5px dashed var(--ink-2); }
.chartbox .lg i.hi, .chartbox .lg i.lo { width: 18px; border-top: 2px dotted var(--chart-hi); position: relative; }
.chartbox .lg i.lo { border-top-color: var(--chart-lo); }
.chartbox .lg i.hi::after, .chartbox .lg i.lo::after { content: ""; position: absolute; left: 5px; top: -5px; width: 8px; height: 8px; background: var(--chart-lo); }
.chartbox .lg i.hi::after { background: var(--chart-hi); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cats { display: grid; gap: 16px; }
.cat .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cat .top > span { font: 600 17px var(--serif); }
.cat .top small { font: 500 12.5px var(--sans); color: var(--ink-2); }
.cat .top b { font: 800 20px var(--serif); }
.cat .nw { white-space: nowrap; }
.cat .t { height: 10px; border-radius: 5px; background: var(--paper-2); position: relative; margin-top: 6px; }
.cat .t i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; }
.cat .t u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.cat-lg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin-top: 16px; padding-top: 12px; border-top: 1px dotted var(--rule); }
.cat-lg u { display: inline-block; width: 2px; height: 14px; background: var(--ink); }
.placepg .viewer { padding: 0; overflow: hidden; }
.viewer .h { padding: 18px 20px 0; }
.viewer .main { aspect-ratio: 3 / 2; background: var(--paper-2); position: relative; margin: 0 20px 18px; }
.viewer .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer .main figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; width: fit-content; background: #000000a0; color: #fff; font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.viewer .main figcaption[hidden] { display: none; }
.viewer .main em { position: absolute; right: 14px; top: 14px; background: #000000a0; color: #fff; font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.viewer .strip { display: flex; gap: 8px; padding: 0 20px 18px; margin-top: -6px; overflow-x: auto; }
.viewer .strip a { flex: 0 0 76px; height: 58px; border: 3px solid transparent; background: var(--paper-2); }
.viewer .strip a.on { border-color: var(--tomato); }
.viewer .strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecard { background: var(--ecard); border: 1px solid var(--rule); padding: 24px; }
.side > * + * { margin-top: 18px; }
.side h3 { font: 700 19px var(--serif); margin: 0 0 8px; }
.ledger { font-size: 14px; }
.ledger div { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px dotted var(--rule); }
.ledger div i { flex: 1; }
.ledger b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.placepg .map { display: block; aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--rule); position: relative; }
.placepg .map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placepg .map span { position: absolute; left: 10px; bottom: 10px; background: var(--ink); color: var(--bg); font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
/* "Visa hela Lunchkartan", right under the map picture */
.placepg a.to-map { display: inline-flex; align-items: center; gap: 7px; justify-self: start; font-size: 13.5px; font-weight: 600; color: var(--tomato); text-decoration: none; }
.placepg a.to-map:hover { text-decoration: underline; }
.placepg .to-map .map-ico { color: var(--ink); }
.nb2 a { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 9px 8px; border-bottom: 1px dotted var(--rule); text-decoration: none; }
.nb2 a:last-child { border-bottom: 0; }
.nb2 a:not(.cur):hover span { color: var(--tomato); }
.placepg .nb2 a.cur { background: var(--ink); color: var(--bg); }
.nb2 a small { color: var(--ink-2); }
.nb2 a.cur small { color: #cbbfae; }
.nb2 a span { font: 600 15px var(--serif); min-width: 0; overflow-wrap: anywhere; }
.nb2 a b { font: 800 16px var(--serif); }
/* a chain's other locations on the place page: a closed one greyed, its status on a line of its own under the name */
.chain-card h3 small { display: block; font: 500 12.5px var(--sans); color: var(--ink-2); margin-top: 2px; }
.chain-card a.closed span, .chain-card a.closed b { color: var(--ink-2); }
.chain-card a.closed b { font-weight: 600; }
.chain-card a .st { display: block; font: 600 10.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--tomato); margin-top: 2px; }
.placepg .chain-card a.closed.cur span, .placepg .chain-card a.closed.cur b { color: var(--bg); }
.placepg .chain-card a.cur .st { color: #e8907d; }

/* ---------- rating form and receipt ---------- */
/* a paper slip with a torn top edge */
.slip { max-width: 640px; margin: 44px auto 80px; background: var(--ecard); border: 1px solid var(--rule); padding: 36px 40px; box-shadow: 0 18px 40px -24px #5e4a3066; position: relative; }
.slip::before { content: ""; position: absolute; inset: -1px -1px auto; height: 8px; background: radial-gradient(circle at 6px 0, var(--bg) 5px, transparent 5.5px) 0 0 / 12px 8px repeat-x; }
.slip h2 { font: 800 36px var(--serif); margin: 0 0 4px; }
.slip .sub { color: var(--ink-2); margin: 0 0 22px; }
.slip .f { display: block; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 0 0 6px; }
.slip .f small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.slip .hint { display: block; color: var(--ink-2); font-size: 12px; margin-top: 6px; }
.slip input[type=text], .slip input[type=number], .slip input[type=url] { width: 100%; font: 500 17px var(--sans); padding: 12px 14px; border: 1px solid var(--rule); background: #fff; border-radius: 4px; color: var(--ink); }
.slip input:disabled, .slip button:disabled { cursor: not-allowed; opacity: .6; }
.field { margin-bottom: 22px; }
.rate + .field { border-top: 1px dotted var(--rule); padding-top: 18px; margin-top: 4px; }
.ferr { color: var(--tomato); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.go { width: 100%; font: 700 18px var(--serif); padding: 16px; background: var(--tomato); color: #fff; border: 0; border-radius: 4px; cursor: pointer; margin-top: 8px; }
.suggest { display: flex; align-items: center; gap: 10px; background: #f1e2c6; border-left: 3px solid var(--gold); padding: 10px 14px; font-size: 14px; margin: 10px 0 0; }
.suggest button, .picked button { margin-left: auto; font: 600 12.5px var(--sans); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.suggest button { border: 0; background: var(--ink); color: var(--bg); }
/* place search with suggestions; the last option adds a new place */
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6; list-style: none; margin: 0; padding: 6px 0; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 14px 30px -18px #5e4a3088; max-height: 320px; overflow: auto; }
.combo-list button { display: flex; width: 100%; gap: 10px; align-items: baseline; border: 0; background: none; padding: 9px 14px; font: 500 15px var(--sans); text-align: left; cursor: pointer; color: var(--ink); }
.combo-list button:hover, .combo-list button:focus-visible { background: var(--paper-2); outline: 0; }
.combo-list button small { margin-left: auto; color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.combo-list .add { border-top: 1px dotted var(--rule); margin-top: 4px; padding-top: 4px; }
.combo-list .add button { color: var(--tomato); font-weight: 700; }
.combo-list .none { padding: 8px 14px; font-size: 13px; color: var(--ink-2); }
.picked { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; border: 1px solid var(--rule); background: #fff; padding: 10px 14px; border-radius: 4px; }
.picked b { font: 600 19px var(--serif); }
.picked .pstatus { margin-left: 0; }
.picked small { order: 3; flex-basis: 100%; color: var(--ink-2); font-size: 12.5px; }
.picked button { border: 1px solid var(--rule); background: none; color: var(--ink); }
.badge-new { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--olive); color: #fff; padding: 2px 8px; border-radius: 3px; }
/* a new place: a step under the field instead of a dialog after pressing Döm */
.newplace { margin-top: 10px; background: #fbf3e4; border: 1px solid var(--rule); border-left: 3px solid var(--olive); padding: 16px 18px; }
.np-head b { display: block; font: 600 18px var(--serif); }
.np-head small { color: var(--ink-2); font-size: 13px; }
.np-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.np-results button { width: 100%; text-align: left; display: grid; gap: 1px; background: #fff; border: 1px solid var(--rule); padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.np-results button b { font: 600 16px var(--serif); }
.np-results button span { font-size: 12.5px; color: var(--ink-2); }
.np-results button.on { border-color: var(--olive); box-shadow: inset 3px 0 0 var(--olive); }
.np-results button.np-have { background: var(--soft); border-style: dashed; }
.np-results button.np-have strong { color: var(--ink); font-weight: 600; }
.np-results button.np-have:disabled { cursor: default; }
.np-form { margin-top: 14px; display: grid; gap: 14px; }
.np-form .f { margin-bottom: 5px; }
.slip .np-form input { font-size: 16px; padding: 10px 12px; }
.np-form .unit { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.slip .np-form .unit input { width: 120px; }
.np-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.np-actions.np-only { margin-top: 12px; }
.np-actions button { font: 700 14px var(--sans); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.np-ok { background: var(--ink); color: var(--bg); border: 0; }
.np-cancel { background: none; border: 1px solid var(--rule); color: var(--ink); }
.np-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-2); }
/* one block per category: the question, the value, a slider filled in the value's tone */
.rate { padding: 16px 0; border-top: 1px dotted var(--rule); }
.rate .hd { display: flex; align-items: end; gap: 12px; }
.rate .q { font: 600 18px var(--serif); flex: 1; margin: 0; }
.rate .q small { display: block; font: 400 12.5px var(--sans); color: var(--ink-2); }
.rate output { font: 800 40px/1 var(--serif); font-variant-numeric: tabular-nums; }
input[type=range].sl { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; border-radius: 5px; margin: 14px 0 6px; background: linear-gradient(90deg, var(--c) var(--p), var(--paper-2) var(--p)); cursor: pointer; }
input[type=range].sl::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--c); box-shadow: 0 2px 6px #0002; }
input[type=range].sl::-moz-range-thumb { box-sizing: border-box; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--c); box-shadow: 0 2px 6px #0002; }
input[type=range].sl:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); }
/* photos: the file input covers the whole area, so photos can be dropped on it */
.drop { position: relative; display: grid; gap: 2px; border: 1.5px dashed var(--rule); background: #fff; border-radius: 4px; padding: 14px; text-align: center; cursor: pointer; color: var(--ink-2); font-size: 15px; }
.drop:hover, .drop:focus-within { border-color: var(--ink-2); color: var(--ink); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop small { font-size: 12px; }
.drop.off { opacity: .6; cursor: not-allowed; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.thumb { position: relative; display: grid; gap: 6px; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--rule); }
.slip .thumb input[type=text] { font-size: 13px; padding: 6px 8px; }
.thumb .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #000000a0; color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.thumb small { font-size: 12px; color: var(--olive); font-weight: 600; }
/* reminders: chosen people as chips, then a field with the rest as suggestions */
.people { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.people button { border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 5px 12px; font: 500 13px var(--sans); cursor: pointer; }
.slip .people input { width: auto; flex: 1; min-width: 140px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); border-color: transparent; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--olive); }
/* receipt */
.total { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 0; margin: 8px 0 24px; }
.total > span { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .12em; }
.total b { font: 800 44px var(--serif); }
.receipt .kicker { margin-bottom: 8px; }
.receipt .ebars { margin: 4px 0 2px; }
.receipt .ledger { margin: 4px 0 26px; }
.receipt .ledger b { text-align: right; white-space: normal; }
.h3 { font: 700 22px var(--serif); margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.lg-page .rc-actions a { font: 700 15px var(--sans); padding: 12px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--ink); }
.lg-page .rc-actions a.pri { background: var(--tomato); border-color: var(--tomato); color: #fff; }

/* ---------- achievement tiles (receipt, profile) ---------- */
.cheevos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rc-ach .cheevos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cv { position: relative; text-align: center; padding: 14px 8px; background: var(--ecard); border: 1px solid var(--rule); }
/* a solid disc inside the ring, so a dimmed (locked) picture fades against the card instead of showing the ring through it */
.cv .pic { position: relative; width: 74px; height: 74px; margin: 0 auto 8px; border-radius: 50%; padding: 4px;
    background: radial-gradient(closest-side, var(--ecard) calc(100% - 4px), transparent calc(100% - 4px)), conic-gradient(var(--olive) calc(var(--ring) * 1%), var(--paper-2) 0); }
/* registered so the ring can grow from its earlier value on the receipt */
@property --ring { syntax: '<number>'; inherits: false; initial-value: 0; }
.cv .pic.grow { animation: ring-grow 1.2s ease .4s backwards; }
@keyframes ring-grow { from { --ring: var(--ring-from); } }
.cv .pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--ecard); display: block; }
/* no ring when there's nothing to count: the picture takes its space, so every tile keeps the same size */
.cv .pic.plain { padding: 0; background: none; }
.cv .pic.plain img { border: 0; box-shadow: 0 0 0 1px var(--rule); }
.cv b { display: block; font: 600 14px/1.2 var(--serif); }
/* a block, so the lines follow its own line height and not the tile's 15px text (the margin keeps the gap under the name) */
.cv > span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--ink-2); }
.cv.locked img { filter: grayscale(1); opacity: .45; }
.cv.locked b { color: var(--ink-2); }
/* the level, as a badge on the ring */
.cv .lvl { position: absolute; right: -6px; bottom: -4px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--gold); color: #fff; border: 2.5px solid var(--ecard); display: grid; place-items: center; font: 800 13px/1 var(--serif); }
.cv.up { border-color: var(--gold); box-shadow: 0 0 0 2px #b48a2c2e; }
.cv.up .lvl { animation: lvl-pop .6s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
@keyframes lvl-pop { from { transform: scale(0); } to { transform: scale(1); } }
/* the ribbon sits on the tile's top edge, outside the flow, so the picture lines up with tiles without one */
.cv .ribbon { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: #fff; padding: 2px 8px; border-radius: 3px; }
.cv .delta { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--olive); }
.cv .state { display: block; margin-top: 4px; font: 700 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
/* diplomas: small printed diplomas, two to a row, with the additions the person got (Shared/DiplomaCard, Utilities/DiplomaArt) */
.dips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 34px; }
/* the content is centred in the space above the date, which stays at the bottom however tall the card in the row is */
.dcard { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
    min-height: 230px; padding: 30px 40px 22px; background: #fffdf6; border: 1px solid #d9c38a; box-shadow: inset 0 0 0 5px #fffdf6, inset 0 0 0 6px #e3cf98; }
.dcard .body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.dcard .times { margin-left: 6px; font: 700 12px var(--sans); color: var(--gold); vertical-align: .25em; letter-spacing: 0; }
.dcard .dnote { margin-top: 3px; font: italic 400 13.5px var(--serif); color: var(--ink-2); }
.dcard .awarded { margin-top: 16px; font: italic 700 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dcard > :not(.leaves) { position: relative; z-index: 1; }
.dcard .leaves { position: absolute; width: 84px; height: 84px; pointer-events: none; }
.dcard .leaves.tl { top: 2px; left: 2px; }
.dcard .leaves.tr { top: 2px; right: 2px; transform: scaleX(-1); }
.dcard .leaves.bl { bottom: 2px; left: 2px; transform: scaleY(-1); }
.dcard .leaves.br { bottom: 2px; right: 2px; transform: scale(-1, -1); }
.dcard b { font: 800 19px/1.15 var(--serif); letter-spacing: .02em; }
.dcard .txt { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.dcard .marks { display: flex; justify-content: center; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.dmark { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.dmark svg { display: block; overflow: visible; }
.dmark .t { font: 600 12px/1.15 var(--sans); color: var(--ink); max-width: 110px; }
@media (prefers-reduced-motion: reduce) {
    .cv .pic.grow, .cv.up .lvl, .bandit-line:hover i { animation: none; }
}

/* ---------- theme weeks: banner on the start page, their own page, a card on the place page ---------- */
.lg-page a.theme-banner { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin: 22px 0 0; padding: 12px 18px; background: #f1e2c6; border-left: 4px solid var(--gold); text-decoration: none; }
.theme-banner .kicker { color: var(--gold); }
.theme-banner b { font: 700 19px var(--serif); }
.theme-banner span:last-child { margin-left: auto; font-size: 14px; color: var(--ink-2); }
.lg-page a.theme-banner:hover span:last-child { color: var(--tomato); }
.themepg { padding: 34px 0 80px; }
.themepg h1 { font: 800 42px/1.05 var(--serif); letter-spacing: -.02em; margin: 6px 0 0; }
.themepg .lead { font-size: 20px; font-weight: 300; color: var(--ink-2); max-width: 60ch; margin: 10px 0 34px; }
.themepg .empty { color: var(--ink-2); }
/* linked to with #tema-{id}: the sticky menu shouldn't cover the heading */
.theme { scroll-margin-top: 84px; margin-bottom: 40px; }
.theme h2 { font: 800 30px var(--serif); margin: 4px 0 2px; }
.theme .sub { color: var(--ink-2); margin: 0 0 14px; }
.theme .kicker { display: flex; align-items: center; gap: 10px; }
.mk-live { font: 700 10.5px var(--sans); letter-spacing: .08em; background: var(--olive); color: #fff; padding: 2px 8px; border-radius: 3px; }
.theme .gitem .when { font: 700 15px var(--sans); font-style: normal; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.themes-card a { display: block; padding: 8px 0; border-bottom: 1px dotted var(--rule); text-decoration: none; }
.themes-card a:last-child { border-bottom: 0; }
.themes-card a b { display: block; font: 600 16px var(--serif); }
.themes-card a span { font-size: 13px; color: var(--ink-2); }
.themes-card a:hover b { color: var(--tomato); }

/* ---------- year in review: full-height slides, one idea each ---------- */
.yir .slide { min-height: calc(100svh - 64px); scroll-snap-align: start; display: grid; place-items: center; padding: 56px 24px; position: relative; }
.yir .slide:nth-child(even) { background: var(--soft); }
.yir .slide.dark { background: var(--ink); color: var(--bg); }
.yir .slide.you { background: linear-gradient(135deg, #fbf7f0, #f1e2c6); }
.yir .inner { width: min(980px, 100%); min-width: 0; }
.yir .dark .kicker { color: #e9a08f; }
.yir h1 { font: 800 clamp(56px, 11vw, 140px)/.95 var(--serif); letter-spacing: -.03em; margin: 8px 0; }
.yir h2 { font: 800 clamp(30px, 5vw, 52px)/1.05 var(--serif); letter-spacing: -.02em; margin: 6px 0 10px; }
.yir h2 small, .yir b small { font-size: .45em; font-weight: 700; letter-spacing: 0; }
.yir h2 small.was { font: 600 16px var(--sans); color: var(--ink-2); }
.yir .lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 0 0 26px; }
.yir .dark .lead { color: #cbbfae; }
.yir .dark .lead a { color: inherit; }
.yir a { text-decoration: none; }
.yir .nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.yir .num { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; }
/* value and unit on one line, the unit smaller */
.yir .num b { display: block; font: 800 clamp(30px, 4.4vw, 52px)/1 var(--serif); white-space: nowrap; }
.yir .num span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.yir .delta { font: 700 12.5px var(--sans); margin-top: 8px; display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); }
.yir .num .delta { display: inline-block; }
.yir .delta.up { color: var(--good); }
.yir .delta.down { color: var(--tomato); }
.yir .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.yir .card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; color: var(--ink); }
.yir a.card:hover .big { color: var(--tomato); }
.yir .card h3 { font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.yir .card .big { font: 800 30px/1.1 var(--serif); }
.yir .card .meta { color: var(--ink-2); font-size: 14px; }
.yir .card.ach img { float: right; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 0 8px 12px; box-shadow: 0 0 0 1px var(--line); }
.yir .rows { display: grid; gap: 8px; }
.yir .row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 140px 52px; gap: 12px; align-items: center; color: var(--ink); }
.yir a.row:hover .nm { color: var(--tomato); }
.yir .row .n { font: 800 16px var(--serif); color: var(--ink-2); }
.yir .row .nm { font: 600 17px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yir .row .bar { height: 10px; background: var(--paper-2); border-radius: 5px; overflow: hidden; }
.yir .row .bar i { display: block; height: 100%; border-radius: 5px; background: var(--olive); }
.yir .row b { text-align: right; font: 800 18px var(--serif); }
.yir .row.cat { grid-template-columns: 110px 1fr 52px 70px; margin-bottom: 8px; }
.yir .row.cat .nm { font: 600 15px var(--sans); }
.yir .row.cat .delta { margin: 0; text-align: center; }
.yir .podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; margin-top: 10px; }
.yir .step { text-align: center; color: var(--bg); }
.yir .step .who { font: 700 18px/1.2 var(--serif); margin-bottom: 8px; min-height: 2.4em; display: flex; align-items: end; justify-content: center; }
.yir .step .blk { border-radius: 14px 14px 0 0; color: #fff; padding: 14px 8px; font: 800 28px var(--serif); }
.yir .step .blk small { display: block; font: 600 12px var(--sans); opacity: .85; }
.yir .p1 .blk { background: #c89a2c; height: 190px; }
.yir .p2 .blk { background: #9aa1a8; height: 140px; }
.yir .p3 .blk { background: #b07045; height: 110px; }
.yir .never { margin-top: 22px; display: flex; gap: 10px 16px; flex-wrap: wrap; font-size: 14px; color: #cbbfae; }
.yir .never a { color: #cbbfae; }
.yir .never b { color: var(--bg); font-family: var(--serif); }
.yir .cal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; }
.yir .cal .wd { font-size: 11px; color: var(--ink-2); display: grid; grid-template-rows: repeat(5, 1fr); align-items: center; }
.yir .cal .wk { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: repeat(5, 1fr); gap: 3px; }
.yir .cal .wk i { width: 100%; aspect-ratio: 1; border-radius: 3px; background: var(--paper-2); display: block; }
.yir .cal .wk i.on { background: var(--olive); }
.yir .cal .wk i.th { background: var(--gold); }
.yir .cal .wk i.out { background: none; }
.yir .months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 11px; color: var(--ink-2); margin: 4px 0 0 34px; }
.yir .facts { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 22px; }
.yir .facts b { display: block; font: 800 26px var(--serif); }
.yir .facts span { font-size: 13px; color: var(--ink-2); }
.yir .chart { width: 100%; height: auto; display: block; }
.yir .chart.map { background: var(--ecard); border: 1px solid var(--line); border-radius: 18px; }
.yir .legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 8px; flex-wrap: wrap; }
.yir .legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
/* the photos: film reels gliding sideways in an endless loop, from edge to edge (Shared/PhotoCarousel.razor). Each track
   holds its photos twice and moves half its width (plus half a gap) per round, so the second copy takes the first one's
   place without a seam; about six seconds per photo. The bottom row of two runs the other way (see the component). The
   film's sprocket holes are punched out with a mask on the track, so they move with it and show the slide through;
   their spacing (--hole) divides one photo plus gap, so they line up again when the loop wraps. It all stops under the
   mouse or keyboard focus, both rows together. The edges fade out. */
.yir .slide.photos { grid-template-columns: minmax(0, 1fr); align-content: center; row-gap: 22px; }
/* out over the slide's side padding (--bleed) to the window's edges, but never wider than 1920 px: centred on wider screens */
.reel { --w: 260px; --h: 190px; --gap: 10px; --hole: 27px; --band: 22px; --film: #241d19; --bleed: 24px;
    justify-self: center; width: calc(100% + 2 * var(--bleed)); max-width: 1920px; min-width: 0; display: grid; gap: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.reel-row { overflow: hidden; }
.reel-track { --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 8' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0H27V8H0Z M9 1.5H18A1.5 1.5 0 0 1 19.5 3V5A1.5 1.5 0 0 1 18 6.5H9A1.5 1.5 0 0 1 7.5 5V3A1.5 1.5 0 0 1 9 1.5Z'/%3E%3C/svg%3E");
    display: flex; gap: var(--gap); width: max-content; padding: var(--band) 0; background: var(--film);
    /* the film, minus two rows of holes: solid edge, holes, solid middle, holes, solid edge */
    -webkit-mask-image: var(--tile), var(--tile), linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    mask-image: var(--tile), var(--tile), linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-position: 0 7px, 0 calc(100% - 7px), 0 0, 0 15px, 0 100%; mask-position: 0 7px, 0 calc(100% - 7px), 0 0, 0 15px, 0 100%;
    -webkit-mask-size: var(--hole) 8px, var(--hole) 8px, 100% 7px, 100% calc(100% - 30px), 100% 7px; mask-size: var(--hole) 8px, var(--hole) 8px, 100% 7px, 100% calc(100% - 30px), 100% 7px;
    -webkit-mask-repeat: repeat-x, repeat-x, no-repeat, no-repeat, no-repeat; mask-repeat: repeat-x, repeat-x, no-repeat, no-repeat, no-repeat; }
.reel.moves .reel-track { animation: reel-glide calc(var(--n) * 6s) linear infinite; }
.reel.moves .back .reel-track { animation-direction: reverse; }
/* paused under the mouse, and while a photo has keyboard focus. Not on :focus-within: a clicked photo keeps focus after
   its place opens in a new tab, so the reel stayed paused on coming back; a mouse click doesn't count as :focus-visible */
.reel.moves:hover .reel-track, .reel.moves:has(:focus-visible) .reel-track { animation-play-state: paused; }
@keyframes reel-glide { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.reel figure { flex: none; width: var(--w); height: var(--h); margin: 0; position: relative; overflow: hidden; border-radius: 3px; background: #3a302a; }
.reel figure a { display: block; height: 100%; }
.reel figure a:focus-visible { outline: 3px solid var(--bg); outline-offset: -3px; }
.reel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.reel figure a:hover img { transform: scale(1.04); }
/* the place name as a pill, like the photo captions on the place pages */
.reel figcaption { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: 12px; color: #fff; background: #000000a0; padding: 3px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
/* asked for less motion: one still reel to scroll sideways yourself, without the copies */
@media (prefers-reduced-motion: reduce) {
    .reel-row { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    .reel.moves .reel-track { animation: none; }
    .reel .back, .reel figure[aria-hidden] { display: none; }
    .reel figure { scroll-snap-align: center; }
    .reel img { transition: none; }
}
/* timeline: the years as stops on a line, one year's events at a time as cards. The year is chosen with hidden radio
   buttons; Review.razor writes the rules for each year (chosen stop: --dot and --ring; its cards: display) */
.yir .tl { position: relative; }
.yir .tl-r { position: absolute; opacity: 0; pointer-events: none; }
.yir .tl-rail { position: relative; display: flex; justify-content: space-between; margin: 26px 0 22px; }
.yir .tl-rail::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; height: 2px; background: var(--rule); }
.yir .tl-rail label { position: relative; display: grid; justify-items: center; gap: 8px; margin: 0; cursor: pointer; font: 800 18px var(--serif); color: var(--ink-2); }
.yir .tl-rail label:hover { color: var(--ink); }
.yir .tl-rail i { width: 20px; height: 20px; border-radius: 50%; background: var(--dot, var(--soft)); border: 2px solid var(--dot, var(--rule)); box-shadow: var(--ring, none); }
/* the year being reviewed keeps a tomato rim while another year is shown */
.yir .tl-rail label.cur i { border-color: var(--tomato); }
.yir .tl-rail small { font: 600 11.5px var(--sans); color: var(--ink-2); }
.yir .tl-panel { display: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.yir .tl-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.yir .tl-card .m { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.yir .tl-panel.cur .tl-card .m { color: var(--tomato); }
.yir .tl-card b { display: block; font: 700 18px/1.25 var(--serif); margin: 2px 0 4px; }
.yir .tl-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.yir .tl-card a { text-decoration: underline; }
.yir .prompt { display: grid; justify-items: start; gap: 14px; }
.yir .btn { display: inline-block; background: var(--tomato); color: #fff; font: 700 16px var(--sans); padding: 12px 22px; border-radius: 999px; }
.yir .note { font-size: 12.5px; color: var(--ink-2); margin-top: 14px; }
@media (max-width: 760px) {
    .yir .nums { grid-template-columns: 1fr 1fr; }
    .yir .two { grid-template-columns: 1fr; }
    .yir .row { grid-template-columns: 24px minmax(0, 1fr) 70px 46px; }
    .yir .row.cat { grid-template-columns: 90px 1fr 46px 60px; }
    /* one photo plus gap is 210 px here, so the holes come every 21 px */
    .reel { --w: 200px; --h: 150px; --hole: 21px; --bleed: 16px; }
    .yir .slide { padding: 40px 16px; }
    .yir .tl-rail label { font-size: 15px; }
    .yir .tl-rail small { display: none; }
}

/* ---------- account pages (login, register, password) ---------- */
.auth { max-width: 460px; }
.auth h1 { font: 800 36px/1.1 var(--serif); margin: 0 0 18px; }
.auth h1 + .sub { margin-top: -10px; }
.auth p { margin: 0 0 14px; }
.slip input[type=email], .slip input[type=password] { width: 100%; font: 500 17px var(--sans); padding: 12px 14px; border: 1px solid var(--rule); background: #fff; border-radius: 4px; color: var(--ink); }
/* the old site.css outlines fields green or red; here only an invalid field is marked */
.slip .valid.modified:not([type=checkbox]), .slip .invalid { outline: 0; }
.slip input.invalid { border-color: var(--tomato); }
.slip .validation-message { color: var(--tomato); font-size: 13px; font-weight: 600; margin-top: 6px; }
.auth .check { margin: 0 0 8px; }
.msg { padding: 10px 14px; border-left: 3px solid; font-size: 14px; margin: 0 0 18px; }
.msg.ok { background: #eef0e0; border-color: var(--olive); }
.msg.err { background: #f7e1da; border-color: var(--tomato); }
.lg-page .links { margin: 16px 0 0; font-size: 14px; }
.lg-page .links a { color: var(--ink); font-weight: 600; }
.lg-page .links a.btn-go { display: inline-block; background: var(--tomato); color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 999px; }

/* ---------- profile ---------- */
.prof { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; margin: 44px 0 80px; align-items: start; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font: 700 32px var(--serif); }
.prof h2 { font: 800 32px var(--serif); margin: 14px 0 0; overflow-wrap: anywhere; }
.since { color: var(--ink-2); font-size: 14px; }
.prof .ledger { margin-top: 18px; }
.prof .f { display: block; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 0 0 6px; }
.share { margin-top: 22px; font-size: 13px; }
.share-row { display: flex; align-items: center; border: 1px solid var(--rule); background: #fff; }
.share-row span { padding: 8px 0 8px 10px; color: var(--ink-2); white-space: nowrap; }
.share-row input { flex: 1; min-width: 0; font: inherit; padding: 8px 10px 8px 0; border: 0; background: none; color: var(--ink); outline: 0; }
.share-row:focus-within { border-color: var(--ink-2); }
.share button { margin-top: 8px; font: 600 12.5px var(--sans); padding: 6px 14px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
.share .ferr { margin: 8px 0 0; font-size: 13px; }
.share .saved { margin: 8px 0 0; font-weight: 600; color: var(--olive); }
.share .hint { display: block; color: var(--ink-2); font-size: 12px; margin-top: 8px; }
.lg-page .share-link { display: table; margin-top: 10px; color: var(--ink); font-weight: 600; }
.prof .logout-form { margin-top: 20px; padding-top: 14px; border-top: 1px dotted var(--rule); }
.profpg .h3 small { font: 400 13px var(--sans); color: var(--ink-2); margin-left: auto; }
.profpg .cheevos { margin-bottom: 34px; }
/* the legend, opened from a small i next to the count */
.ach-info { position: relative; }
.ach-info summary { list-style: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; cursor: pointer;
    font: italic 700 12px/1 var(--serif); color: var(--ink-2); }
.ach-info summary::-webkit-details-marker { display: none; }
.ach-info summary:hover, .ach-info[open] summary { border-color: var(--ink); color: var(--ink); }
.ach-info .ach-note { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: max-content; max-width: min(300px, calc(100vw - 32px));
    background: var(--ecard); border: 1px solid var(--rule); box-shadow: 0 6px 18px #0000001a; padding: 10px 12px; }
.ach-note { display: grid; gap: 8px; font: 400 12.5px/1.35 var(--sans); color: var(--ink-2); }
.ach-note span { display: flex; align-items: center; gap: 8px; }
.ach-note i { min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: #fff; display: grid; place-items: center; font: 800 11px var(--serif); font-style: normal; }
.ach-note i.r { background: conic-gradient(var(--olive) 40%, var(--paper-2) 0); border-radius: 50%;
    /* only the rim, like the ring around a tile */
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); }
.profpg .empty { color: var(--ink-2); }
/* lists of judgements and places, with labelled bars */
.glist { background: var(--ecard); border: 1px solid var(--rule); }
.gitem { display: grid; grid-template-columns: 80px minmax(0, 1fr) 230px 52px; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.gitem:last-child { border-bottom: 0; }
a.gitem[href]:hover { background: #f7efe2; }
.gitem .when { font: italic 400 14px var(--serif); color: var(--ink-2); }
.gitem .nm { font: 600 17px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gitem .sub { font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.gitem .sc { font: 800 22px var(--serif); text-align: right; }
.lbars { display: grid; gap: 4px; }
.lb { display: grid; grid-template-columns: 74px 1fr 28px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink-2); }
.lb .t { height: 5px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.lb .t i { display: block; height: 100%; border-radius: 3px; }
.lb b { text-align: right; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.two > div { min-width: 0; }
/* half-width lists: the bars get their own line under the name */
.two .gitem { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
.two .gitem .lbars { grid-column: 1 / -1; }

/* ---------- admin: square boxes, denser than the public pages; scoped to .adm since Bootstrap has its own .btn ---------- */
.adm { padding-bottom: 80px; }
.adm-loading { color: var(--ink-2); }
.adm-head { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin: 40px 0 18px; }
.adm-head h1 { font: 800 42px/1.05 var(--serif); letter-spacing: -.02em; margin: 8px 0 0; }
.adm-head p { color: var(--ink-2); max-width: 62ch; margin: 10px 0 0; }
.adm .cmp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; padding: 10px 14px; border: 1px dashed var(--rule); font-size: 13px; color: var(--ink-2); }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 0 20px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.lg-page .adm-tabs a { padding: 10px 0 8px; font: 600 14px var(--sans); color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.lg-page .adm-tabs a:hover { color: var(--ink); }
.lg-page .adm-tabs a.on { color: var(--ink); border-bottom-color: var(--tomato); }
.adm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adm-grid a { display: block; background: var(--ecard); border: 1px solid var(--rule); padding: 18px 20px; text-decoration: none; }
.adm-grid a:hover { border-color: var(--ink); }
.adm-grid b { display: block; font: 700 19px var(--serif); }
.adm-grid span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.adm-grid em { display: block; margin-top: 12px; font: 700 13px var(--sans); font-style: normal; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-bottom: 28px; align-items: start; }
.adm .box { background: var(--ecard); border: 1px solid var(--rule); padding: 20px 22px; }
.adm .box h2 { font: 700 22px var(--serif); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm .box > p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.adm .box + .box, .adm .box + .tbl, .adm .box.note + .toolbar { margin-top: 16px; }
.adm-cols > .box + .box, .role-cards > .box + .box { margin-top: 0; }
.adm .box.danger { border-color: #c4462f66; }
.adm .box.note { border-style: dashed; background: none; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.adm .box.note b, .adm .box.note a { color: var(--ink); }
.adm .box.jintro { margin-bottom: 14px; }
.adm .box h2 + .af { margin-top: 14px; }
.adm .box.add { margin-bottom: 14px; }
/* the things-to-look-over panel */
.todo .ti { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px dotted var(--rule); text-decoration: none; }
.todo .ti:first-of-type { border-top: 0; }
.todo .ti .n { font: 800 28px/1 var(--serif); text-align: right; color: var(--tomato); }
.todo .ti b { font: 600 17px var(--serif); }
.todo .ti span { display: block; font-size: 13px; color: var(--ink-2); }
.todo .ti .ti-go { font: 600 13px var(--sans); color: var(--ink-2); white-space: nowrap; }
.todo a.ti:hover .ti-go { color: var(--tomato); }
.todo .ti.done .n { color: var(--olive); }
/* tables built from grid rows, so they can restack on phones */
.adm .tbl { background: var(--ecard); border: 1px solid var(--rule); }
.adm .tr { display: grid; gap: 14px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.adm .tr.th { border-top: 0; border-bottom: 1px solid var(--rule); font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 10px 16px; }
.adm .tr.th + .tr { border-top: 0; }
.adm a.tr:hover { background: #f7efe2; }
.adm .tr .nm { font: 600 16px/1.25 var(--serif); overflow-wrap: anywhere; }
.adm .mut { color: var(--ink-2); font-size: 13px; }
.adm .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm .tr.hl { background: #d9a3240f; box-shadow: inset 3px 0 0 var(--gold); }
.adm .tr.empty { display: block; color: var(--ink-2); padding: 22px 16px; }
.t-places .tr { grid-template-columns: minmax(0, 1.7fr) 150px 90px 110px 110px; }
.t-jplaces .tr { grid-template-columns: minmax(0, 1.7fr) 90px 90px 130px; }
.t-users .tr { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 100px 60px 290px; }
/* disabled accounts: a closed section under the list */
.adm .off-accts { margin-top: 16px; }
.adm .off-accts summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.adm .off-accts summary::-webkit-details-marker { display: none; }
.adm .off-accts summary::before { content: "▸"; color: var(--ink-2); transition: transform .15s; }
.adm .off-accts[open] summary::before { transform: rotate(90deg); }
.adm .off-accts summary h2 { margin: 0; }
.adm .off-accts summary h2 small { font: 400 14px var(--sans); color: var(--ink-2); }
.adm .off-accts .tbl { margin-top: 14px; }
.adm .tr.off .nm { color: var(--ink-2); }
.t-ach .tr { grid-template-columns: 52px minmax(0, 1.5fr) minmax(0, 1.1fr) 110px 160px; }
.t-themes .tr { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) 80px minmax(190px, auto); }
/* a diploma's additions and hand-out (AdminDiploma): the table scrolls sideways on phones instead of restacking */
.adm .dip-panel + .dip-panel { margin-top: 12px; }
.adm .tr.award .dip-panel { background: var(--ecard); }
.marks-edit .tr { grid-template-columns: 52px minmax(0, 1fr) 140px 90px minmax(80px, auto); }
.marks-edit input, .marks-edit select, .give .prefill select { width: 100%; font: 500 14px var(--sans); padding: 7px 9px; border: 1px solid var(--rule); background: #fff; border-radius: 4px; color: var(--ink); }
.give .prefill { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 14px; font-size: 14px; }
.give .prefill select { width: auto; }
.give-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.give-tbl { min-width: calc(270px + var(--n) * 100px); }
.adm .give-tbl .tr { grid-template-columns: var(--cols) !important; }
.adm .give-tbl .tr.th { display: grid; }
.give-tbl .tr.th > div:not(:first-child), .give-tbl .ck { text-align: center; }
.give-tbl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--olive); }
.give-tbl .mk-h { display: flex; flex-direction: column; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font: 600 12px var(--sans); color: var(--ink); }
.give-tbl .tr.new { background: #eef0e0; }
.give-tbl .tr.chg { background: #fbf3e4; }
.give-tbl .since { display: block; font: 400 12px var(--sans); color: var(--ink-2); }
.give-tbl .since .lnk { border: 0; background: none; padding: 0 0 0 6px; font: 600 12px var(--sans); color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.give-tbl .since .lnk:hover { color: var(--tomato); }
.give-tbl .details { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.give-tbl .details input { font: 500 13px var(--sans); padding: 5px 7px; border: 1px solid var(--rule); background: #fff; border-radius: 4px; color: var(--ink); }
.give-tbl .details input[type=text] { flex: 1; min-width: 140px; }
.give-sum { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.give-sum .mut { margin-right: auto; }
@media (max-width: 760px) { .adm .give-tbl .tr.th { display: grid !important; } .marks-edit .tr { grid-template-columns: 40px minmax(0, 1fr) !important; } }
/* the log: an entry with an error message opens to show it */
.t-log .tr { grid-template-columns: 130px 80px 150px minmax(0, 1fr); align-items: baseline; }
.t-log .what { overflow-wrap: anywhere; }
/* where it came from: cut short, the full name is in the tooltip */
.t-log .tr > :nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-log .what .more { margin-left: 8px; font: 600 12px var(--sans); color: var(--ink-2); text-decoration: underline; }
.t-log details { border-top: 1px solid var(--line); }
.t-log details > summary.tr { border-top: 0; cursor: pointer; list-style: none; }
.t-log details > summary::-webkit-details-marker { display: none; }
.t-log details > summary:hover { background: #f7efe2; }
.t-log details[open] .more { display: none; }
.t-log pre { margin: 0 16px 14px; padding: 12px 14px; max-height: 360px; overflow: auto; background: var(--paper-2); font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm .seg button { font: 600 13.5px var(--sans); color: var(--ink-2); padding: 7px 13px; border-radius: 9px; white-space: nowrap; border: 0; background: none; cursor: pointer; }
.adm .seg button:hover { color: var(--ink); }
.adm .seg button.on { background: var(--ink); color: var(--bg); }
.adm button.chip { cursor: pointer; }
.lg-page button.chip:hover { color: var(--ink); border-color: var(--ink-2); }
.mk { display: inline-block; font: 700 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border: 1px solid; white-space: nowrap; }
.mk.warn { color: var(--tomato); border-color: #c4462f66; background: #c4462f0d; }
.mk.info { color: var(--ink-2); border-color: var(--rule); }
.mk.ok { color: var(--olive); border-color: #6f7d3a66; }
.mks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.st-closed { color: var(--tomato); }
code.rule { font: 600 11.5px ui-monospace, Consolas, monospace; background: var(--paper-2); padding: 1px 6px; color: var(--ink); }
.t-ach img { width: 44px; height: 44px; object-fit: contain; }
.t-ach .noimg { display: block; width: 44px; height: 44px; }
.notes { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.notes b { color: var(--ink); }
.adm .ledger b.mut { font-weight: 400; color: var(--ink-2); white-space: normal; text-align: right; }
.adm .tr.retired img { filter: grayscale(1); opacity: .6; }
.adm .tr.award { display: block; background: #fbf3e4; }
.adm .tr.award .given { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0 0; font-size: 14px; }
.adm .tr.award .given > .btn { margin-left: auto; }
.adm .tr.award .given .confirm { margin-top: 0; flex-basis: 100%; }
.icon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; }
.icon-list .ic { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); }
.icon-list .ic > div:not(.confirm) { flex: 1; min-width: 0; }
.icon-list .ic.unused { border-style: dashed; border-color: var(--rule); }
.icon-list img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--rule); }
.icon-list .nm { font: 600 14px var(--sans); overflow-wrap: anywhere; }
.icon-list .confirm { margin-top: 0; flex-basis: 100%; }
.t-cmp .tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 60px 70px 110px 110px; }
.t-cmp .tr.up { box-shadow: inset 3px 0 0 var(--good); }
.t-cmp .tr.down { box-shadow: inset 3px 0 0 var(--tomato); }
.t-cmp .tr.down .num:last-child { color: var(--tomato); font-weight: 700; }
.t-cmp .tr.up .num:last-child { color: var(--good); font-weight: 700; }
.adm .rebuild .sum { font-size: 14px; color: var(--ink-2); margin: 14px 0 10px; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.role-cards .box h2 { font-size: 20px; }
.role-cards .who { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
/* toolbar, buttons, forms */
.adm .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.adm .toolbar .search { max-width: 380px; }
.adm .toolbar .btn.pri { margin-left: auto; }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fchips .chip small { font-weight: 700; margin-left: 4px; opacity: .75; }
.adm .btn { font: 700 14px/1.3 var(--sans); padding: 9px 17px; border-radius: 999px; cursor: pointer; border: 1px solid var(--rule); background: none; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; box-shadow: none; }
.adm .btn:hover { border-color: var(--ink); color: var(--ink); }
.adm .btn.pri { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.adm .btn.danger { color: var(--tomato); border-color: #c4462f80; }
.adm .btn.danger.solid { background: var(--tomato); color: #fff; border-color: var(--tomato); }
.adm .btn.sm { font-size: 12.5px; padding: 5px 12px; }
.adm .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: auto; }
.adm .btn.done, .adm .btn.done:disabled { color: var(--olive); border-color: var(--olive); background: none; opacity: 1; }
.adm .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.adm .af { display: grid; gap: 14px; }
.adm .af label { display: block; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px; }
.adm .af label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
/* a checkbox reads like a sentence, not like the field labels above */
.adm .af label.check { display: flex; gap: 8px; align-items: center; margin: 0; font: 500 15px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.adm .af label.check input { width: 18px; height: 18px; padding: 0; accent-color: var(--olive); }
.adm .af input, .adm .af select { width: 100%; font: 500 15px var(--sans); padding: 9px 11px; border: 1px solid var(--rule); background: #fff; border-radius: 4px; color: var(--ink); }
.adm .af input[readonly] { background: var(--paper-2); color: var(--ink-2); }
.adm .af input:disabled { background: var(--paper-2); }
.adm .af .unit { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.adm .af .unit input { max-width: 120px; }
.adm .af .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm .af .cols3 { display: grid; grid-template-columns: 1.2fr 1.2fr auto; gap: 12px; align-items: end; }
.adm .af .hint { display: block; color: var(--ink-2); font-size: 12px; margin-top: 5px; }
/* a new achievement's start: the date or the retired achievement sits under its own choice */
.adm .af .starts { display: grid; gap: 8px; }
.adm .af .starts input[type=date], .adm .af .starts select { max-width: 380px; margin-left: 26px; width: calc(100% - 26px); }
.adm .af label.check:has(input:disabled) { color: var(--ink-2); cursor: default; }
.adm .af .icon-pick { display: flex; gap: 8px; align-items: center; }
.adm .af .icon-pick select { flex: 1; min-width: 0; }
.adm .af .icon-pick img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--rule); }
/* the file field hides inside its button */
.adm .af label.up { position: relative; flex: none; margin: 0; white-space: nowrap; cursor: pointer; font: 600 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.adm .af label.up input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; padding: 0; border: 0; }
.adm .ferr { margin: 12px 0 0; }
.adm .af .ferr { display: block; margin: 6px 0 0; font-size: 13px; }
.adm .newplace { margin-top: 14px; }
.dirty { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: #fff; padding: 2px 8px; border-radius: 3px; }
.lg-page .back { display: inline-block; margin-bottom: 14px; font: 600 14px var(--sans); color: var(--ink-2); text-decoration: none; }
.lg-page .back:hover { color: var(--ink); }
.adm .confirm { margin-top: 12px; padding: 12px 14px; border: 1px solid #c4462f66; background: #c4462f0d; font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm .confirm span { flex: 1 1 220px; }
.adm .c-acts .confirm { margin-top: 0; flex-basis: 100%; }
.adm .tr.retire { display: block; border-top: 0; padding-top: 0; }
.adm .tr.retire .confirm { margin-top: 0; }
.adm .confirm label.last { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.adm .confirm label.last input { font: 500 14px var(--sans); padding: 5px 8px; border: 1px solid var(--rule); background: #fff; border-radius: 4px; color: var(--ink); }
.mapph { aspect-ratio: 16 / 10; background: var(--paper-2) center / cover no-repeat; border: 1px solid var(--rule); display: grid; place-items: center; text-align: center; color: var(--ink-2); font-size: 13px; padding: 10px; }
.mapph.missing { background: repeating-linear-gradient(45deg, #c4462f0d 0 10px, transparent 10px 20px); border-color: #c4462f66; color: var(--tomato); font-weight: 600; }
/* judgements */
.visit { border: 1px solid var(--rule); background: var(--ecard); margin-bottom: 10px; }
.visit summary { cursor: pointer; padding: 13px 16px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.visit summary::-webkit-details-marker { display: none; }
.visit summary::before { content: "▸"; color: var(--ink-2); transition: transform .15s; }
.visit[open] summary::before { transform: rotate(90deg); }
.visit summary b { font: 600 17px var(--serif); }
.visit summary span { color: var(--ink-2); font-size: 13px; }
.visit summary .avg { margin-left: auto; font: 800 18px var(--serif); color: var(--ink); }
.jslips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 12px; padding: 0 16px 16px; }
.jslip { background: #fff; border: 1px solid var(--rule); padding: 14px 16px; }
.jslip.is-dirty { border-color: var(--gold); }
.js-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.js-h b { font: 600 16px var(--serif); }
.js-h .tot { margin-left: auto; font: 800 18px var(--serif); }
.js-c { display: grid; grid-template-columns: 82px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); padding: 7px 0; margin: 0; }
.js-c + .js-c { border-top: 1px dotted var(--line); }
.js-c input.sl { margin: 4px 0; }
.js-c input.sl:disabled { filter: grayscale(.35); opacity: .8; cursor: default; }
.js-c output { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.jslip .af { gap: 10px; margin-top: 10px; }
.adm .jslip .af input, .adm .jslip .af select { font-size: 14px; padding: 7px 9px; }
.js-ph { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; align-items: center; margin-top: 8px; }
.js-ph img { width: 48px; height: 48px; object-fit: cover; background: var(--paper-2); }
.js-ph .af { margin-top: 0; }
.js-ph button { border: 0; background: none; color: var(--ink-2); font-size: 18px; cursor: pointer; }
.js-up { margin-top: 10px; }
.js-up .drop { padding: 10px; font-size: 13px; }
.js-up .thumbs { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.adm .js-up .thumb input[type=text] { width: 100%; font-size: 12px; padding: 5px 7px; border: 1px solid var(--rule); }
.ro-note { font-size: 12px; color: var(--ink-2); margin: 2px 0 0; }
/* roles */
.rchips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.rchip { font: 600 12px var(--sans); padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--rule); background: none; color: var(--ink-2); cursor: pointer; }
.rchip.on { border-style: solid; border-color: var(--olive); background: var(--olive); color: #fff; }
.rchip:disabled { cursor: not-allowed; opacity: .6; }
.adm .saved { font: 600 12px var(--sans); color: var(--olive); }
.adm .saved.err { color: var(--tomato); }
.adm .tr.editing .af { gap: 0; }

/* ---------- map page (/karta; js/karta.js draws the map) ---------- */
/* the heading as on Lunchbanditen's page: same spacing, size and lead */
.mappg { padding: 34px 0 40px; }
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 18px; }
.mappg h1 { font: 800 42px/1.05 var(--serif); letter-spacing: -.02em; margin: 6px 0 0; }
.mappg .lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; margin: 10px 0 0; }
.mappg .lead b { color: var(--ink); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.map-legend li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; }
/* list and map side by side in one card, as tall as the window allows */
.mapbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: max(480px, calc(100dvh - 245px)); background: var(--ecard); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.map-list { grid-area: 1 / 1; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.mappg .search { flex: none; margin: 12px 12px 4px; min-width: 0; }
/* the list's order, once your position is known */
.map-order { display: flex; margin: 6px 12px 0; }
.map-order .seg button { font: 600 12.5px var(--sans); color: var(--ink-2); padding: 5px 11px; border: 0; border-radius: 9px; background: none; white-space: nowrap; }
.map-order .seg button:hover { color: var(--ink); }
.map-order .seg button.on { background: var(--ink); color: var(--bg); }
.map-items { position: relative; flex: 1; overflow-y: auto; padding: 8px 12px 12px; scrollbar-width: thin; }
.mitem { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 10px; outline: 2px solid transparent; transition: outline-color .15s; }
/* inside the card, so it doesn't peek out beside the map on phones when the card scrolls under it */
.mitem[open] { outline-color: var(--ink); outline-offset: -2px; }
.mitem summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none; border-radius: 14px; }
.mitem summary::-webkit-details-marker { display: none; }
.mitem summary:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.mitem .nm { min-width: 0; }
.mitem .nm b { display: block; font: 600 16.5px/1.2 var(--serif); }
.mitem summary:hover .nm b { text-decoration: underline; text-decoration-color: var(--tomato); text-underline-offset: 3px; }
.mitem .nm small { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin-top: 3px; font-size: 12px; color: var(--ink-2); }
/* the distance follows the price like the other parts, about a space apart; on a narrow card it moves to a line of its own */
.mitem .nm small .dist { margin-left: -2px; white-space: nowrap; }
.mdetail { padding: 2px 14px 14px; }
.mdetail .when { margin: 10px 0 6px; font-size: 12.5px; color: var(--ink-2); }
.mdetail .links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 600; }
.mappg .mdetail .links a { color: var(--tomato); text-decoration: none; }
.mappg .mdetail .links a:hover { text-decoration: underline; }
.map-items .empty { margin: 16px 4px; color: var(--ink-2); font-size: 14px; }
.map-frame { grid-area: 1 / 2; position: relative; min-height: 0; }
.mappg .map { position: relative; height: 100%; background: var(--paper-2); }
/* a place on the map; Google puts a marker's bottom on its spot, so the dot is moved down to sit centred on it */
.map-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px #2b242059, 0 1px 3px #2b242040; transform: translateY(50%); cursor: pointer; transition: transform .12s; }
.map-dot:hover { transform: translateY(50%) scale(1.35); }
/* where you are: an ink dot with a soft halo, apart from the score colours; centred on the spot like the places */
.map-me { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--white); box-shadow: 0 0 0 6px #2b242026, 0 1px 4px #2b242066; transform: translateY(50%); }
/* the "Visa var jag är" button, styled like Google's own controls beside it */
.map-locate { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 10px 10px 0; border: 0; border-radius: 8px; background: #fff; color: #666; box-shadow: 0 1px 4px #0000004d; cursor: pointer; }
.map-locate:hover { color: var(--ink); }
.map-locate.busy svg { animation: map-locate-pulse 1s ease-in-out infinite; }
@keyframes map-locate-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .map-locate.busy svg { animation: none; opacity: .5; } }
.map-note { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; text-align: center; box-shadow: var(--shadow); }
.map-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: var(--ink-2); font-weight: 600; }
.mappg .foot { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-2); }
/* the info window on a pin (Google draws the frame; the inside is ours) */
.map-iw-title { font: 600 17px/1.2 var(--serif); color: var(--ink); }
.map-iw { display: flex; align-items: center; gap: 12px; padding: 2px 0 4px; font: 13px/1.4 var(--sans); color: var(--ink); }
.map-iw > div { display: grid; gap: 4px; }
.map-iw small { font-size: 12px; color: var(--ink-2); }
.map-iw-links { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.map-iw a { color: var(--tomato); font-weight: 600; text-decoration: none; white-space: nowrap; }
.map-iw a:hover { text-decoration: underline; }
/* phones: the map held at the top, the list scrolling under it */
@media (max-width: 860px) {
    .mappg h1 { font-size: 36px; }
    .mapbox { display: block; height: auto; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
    .map-frame { position: sticky; top: 64px; z-index: 2; height: 46vh; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
    .map-list { border-right: 0; }
    .mappg .search { margin: 12px 0 4px; }
    .map-order { margin: 6px 0 0; }
    .map-items { overflow: visible; padding: 8px 0 0; }
}

/* ---------- phones ---------- */
@media (max-width: 860px) {
    /* restaurant page */
    .pg-head { grid-template-columns: 1fr; gap: 16px; }
    .pg-head h1 { font-size: 44px; }
    .pg-score { text-align: left; }
    .pg-score b { font-size: 70px; }
    .pg-grid { grid-template-columns: 1fr; gap: 10px; }
    .lede p:first-child { font-size: 20px; }
    .cat .top small { display: block; }
    .pstatus { display: table; margin: 6px 0 0; }
    /* profile */
    .prof, .two { grid-template-columns: minmax(0, 1fr); }
    .prof { margin: 24px 0 48px; gap: 30px; }
    .profpg .cheevos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gitem { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
    .gitem .when { grid-column: 1 / -1; font-size: 13px; }
    .gitem .lbars { grid-column: 1 / -1; }
    /* admin: one column; tables restack with the first cell and the most important one on top */
    .adm-grid, .adm-cols { grid-template-columns: minmax(0, 1fr); }
    .adm-head h1 { font-size: 32px; }
    .adm .cmp { margin: 0; }
    .adm-tabs { gap: 0 14px; }
    .adm .tr.th { display: none; }
    .adm .tr { grid-template-columns: minmax(0, 1fr) auto !important; gap: 6px 12px; }
    .t-places .c-dist, .t-places .c-last { display: none; }
    .t-places .c-url { grid-column: 2; grid-row: 1; }
    .t-places .c-status { grid-column: 1 / -1; font-size: 13px; }
    .t-jplaces .c-visits, .t-jplaces .c-last { display: none; }
    .t-users .c-roles, .t-users .c-acts { grid-column: 1 / -1; }
    .t-log .what { grid-column: 1 / -1; }
    .t-users .c-last, .t-users .c-cnt { display: none; }
    .t-ach .tr { grid-template-columns: 44px minmax(0, 1fr) !important; }
    .t-ach .c-rule, .t-ach .c-lvl { grid-column: 1 / -1; }
    .t-ach .c-by { display: none; }
    .t-themes .c-acts, .t-themes .editing .af { grid-column: 1 / -1; }
    /* judgement sliders: name and value on one line, a full-width slider under it */
    .js-c { grid-template-columns: 1fr auto; row-gap: 4px; padding: 10px 0; }
    .js-c input.sl { grid-column: 1 / -1; grid-row: 2; margin: 6px 0 4px; }
    .adm .af .cols2, .adm .af .cols3 { grid-template-columns: 1fr; }
    .adm .toolbar .btn.pri { margin-left: 0; }
    /* diary rows: date, then name and score side by side, then the bars */
    .gitem .when ~ .sc { grid-row: 2; grid-column: 2; }
    .gitem .when ~ .lbars { grid-row: 3; }
    .topnav .wrap { gap: 10px; }
    .topnav nav a { padding: 7px 10px; }
    .topnav .logo, .avatar-s { flex-shrink: 0; }
    .page-msg h1 { font-size: 32px; }
    /* landing */
    .intro, .intro-list { grid-template-columns: 1fr; gap: 20px; }
    .intro h1 { font-size: 28px; }
    /* three equal columns that always fit; long names wrap instead of scrolling sideways */
    .leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .leader { min-width: 0; padding: 9px 10px; }
    .leader b { font-size: 14.5px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
    .leader span { font-size: 18px; }
    .ctl-l { display: none; }
    .ctl.view .seg a span { display: none; }
    .seg a { padding: 7px 10px; }
    .ctl.view { margin-left: auto; }
    /* narrow enough that the map button fits beside it on the smallest phones, wide enough that the sorting still wraps below */
    .lg-page .search { min-width: 160px; }
    .lrow { grid-template-columns: 1fr auto; gap: 8px 16px; }
    .lrow.colhead { display: none; }
    .lrow:not(.colhead):first-of-type, .lrow.colhead + .lrow { border-top: 2px solid var(--ink); }
    .lrow .when { grid-column: 1 / -1; }
    .lrow .ebars { grid-column: 1 / -1; grid-row: 3; }
    .lrow .tot { grid-row: 2; grid-column: 2; }
}
/* the restaurant chart has a narrower drawing for phones, so its numbers stay readable */
@media (max-width: 600px) {
    .chartbox .chart.wide { display: none; }
    .chartbox .chart.narrow { display: block; }
    .placepg .box:not(.viewer) { padding: 16px; }
    .viewer .main { margin: 0 16px 16px; }
    .viewer .h { padding: 16px 16px 0; }
    .viewer .strip { padding: 0 16px 16px; }
    /* rating form */
    .slip { padding: 28px 20px; margin: 24px auto 48px; }
    .slip h2 { font-size: 30px; }
    .cheevos, .profpg .cheevos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dips { grid-template-columns: minmax(0, 1fr); }
    .dcard { padding: 28px 30px 22px; }
}
/* with the admin tab the menu needs about 455px, so below that admin is only the cog */
@media (max-width: 480px) {
    .topnav nav a.adm span { display: none; }
    .topnav nav a { padding: 7px 8px; }
}
/* the narrowest phones: tighter menu so logo, tabs and avatar fit without sideways scroll */
@media (max-width: 400px) {
    .wrap { padding: 0 16px; }
    .topnav .logo img { height: 36px; }
    .topnav nav { gap: 2px; padding: 3px; }
    .topnav .wrap { gap: 8px; }
    .topnav nav a { padding: 6px 7px; font-size: 13px; }
    .topnav .avatar-s { width: 32px; height: 32px; font-size: 12px; }
}
@media (max-width: 350px) {
    .topnav .wrap { gap: 6px; }
    .topnav .logo img { height: 30px; }
    .topnav nav a { padding: 6px 5px; font-size: 12.5px; }
}
