/* Los Cafecitos — palette taken from the coffee plant: cafetal leaf, ripe cherry, maize, roasted bean */
:root {
  color-scheme: light;
  --ground: #EEF3F1;      /* cool pale sage ground */
  --paper: #FFFFFF;
  --ink: #241A14;         /* roasted bean */
  --light-roast: #473d31;
  --dark-coffee: #100602;
  --caramel-macchiato: #d3b596;
  --ink-soft: #5E5049;
  --line: #D5DFDA;
  --leaf: #1F5C46;        /* cafetal green */
  --leaf-deep: #143F30;
  --leaf-tint: #DCEBE3;
  --cherry: #C2264B;      /* ripe coffee cherry */
  --cherry-hover: #9E1B3B;
  --cherry-tint: #F8DFE5;
  --maize: #F2B632;
  --maize-hover: #E0A21B;
  --maize-tint: #FCEFCC;
  --maize-muted: #c3b188;

  /* Radial Gradients */
  --warm-latte-grad: radial-gradient(circle, #EADDCA 0%, #B9904E 45%, #4A2C2A 100%);
  --dark-roast-grad: radial-gradient(circle at 50% 50%, #44403C 0%, #1C1917 55%, #0C0A09 100%);
  --caramel-macchiato-grad: radial-gradient(circle at 30% 30%, #D4A373 0%, #8D5B4C 50%, #3D2B1F 100%);
  --iced-caramel-latte: radial-gradient(circle at center, #F4EBE1 0%, #DDB892 40%, #7F5539 100%);
  --rich-mocha-swirl: radial-gradient(circle at 50% 40%, #5C3D2E 0%, #2D1A12 60%, #140A07 100%);
  --matcha-espresso-fusion: radial-gradient(circle at center, #A3B18A 0%, #475531 45%, #2B1810 100%);


  /* roles (these change between light and dark) */
  --link: var(--leaf);
  --btn: var(--leaf);
  --btn-hover: var(--leaf-deep);
  --header-bg: var(--light-roast);
  --hero-bg: var(--caramel-macchiato-grad);
  --hero-text: var(--paper);
  --section-header: var(--dark-coffee);
  --on-maize: #241A14;    /* text on yellow stays dark in both themes */
  --footer-bg: #241A14;
  --input-bg: #FFFFFF;
  --board-bg: #D9C6A5;    /* cork bulletin board */
  --board-dots: rgba(36, 26, 20, .08);
  --tag-leaf-fg: #143F30;
  --tag-cherry-fg: #8E1734;
  --tag-maize-fg: #6E4E00;
  --hover-wash: rgba(36, 26, 20, .05);
  --radius-sm: 6px;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(36, 26, 20, .06), 0 6px 18px -10px rgba(20, 63, 48, .35);
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1180px;
}

/* Dark theme: the same coffee-plant palette at night (espresso ground, crema text).
   Used when the visitor picks it, or when their device is in dark mode and they haven't picked light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #1A1613;
    --paper: #25201C;
    --ink: #EDE4DA;
    --ink-soft: #B5A99F;
    --line: #3D352F;
    --leaf-tint: #1E3A2F;
    --cherry-tint: #43202A;
    --maize-tint: #3B311B;
    --link: #82CFA4;
    --btn: #2E7A59;
    --btn-hover: #25664A;
    --header-bg: var(--light-roast);
    --hero-bg: var(--dark-roast-grad);
    --hero-text: var(--ink);
    --section-header: var(--caramel-macchiato);
    --light-roast: #473d31;
    --footer-bg: #0F0D0B;
    --input-bg: #1E1A17;
    --board-bg: #3A3027;
    --board-dots: rgba(0, 0, 0, .25);
    --tag-leaf-fg: #A6DDBF;
    --tag-cherry-fg: #F4A8BA;
    --tag-maize-fg: #F2D27A;
    --hover-wash: rgba(255, 255, 255, .06);
    --shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 8px 22px -12px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #1A1613;
  --paper: #25201C;
  --ink: #EDE4DA;
  --ink-soft: #B5A99F;
  --line: #3D352F;
  --leaf-tint: #1E3A2F;
  --cherry-tint: #43202A;
  --maize-tint: #3B311B;
  --link: #82CFA4;
  --btn: #2E7A59;
  --btn-hover: #25664A;
  --header-bg: var(--light-roast);
  --hero-bg: var(--dark-roast-grad);
  --hero-text: var(--ink);
  --section-header: var(--caramel-macchiato);
  --footer-bg: #0F0D0B;
  --input-bg: #1E1A17;
  --board-bg: #3A3027;
  --board-dots: rgba(0, 0, 0, .25);
  --tag-leaf-fg: #A6DDBF;
  --tag-cherry-fg: #F4A8BA;
  --tag-maize-fg: #F2D27A;
  --hover-wash: rgba(255, 255, 255, .06);
  --shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 8px 22px -12px rgba(0, 0, 0, .8);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--cherry); }
:focus-visible { outline: 3px solid var(--maize); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.prose { max-width: 68ch; }
.prose p { line-height: 1.7; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--paper); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; background: var(--header-bg); color: #fff; z-index: 99999; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; white-space: nowrap; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.main-nav { display: flex; gap: 2px; margin-right: auto; }
.main-nav a { color: #D9E9E1; text-decoration: none; padding: 8px 10px; border-radius: 999px; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a[aria-current="page"] { background: var(--maize); color: var(--on-maize); }
.user-nav { display: flex; gap: 6px; align-items: center; flex: none; }
.user-nav .btn { white-space: nowrap; }
.user-nav form { margin: 0; }
.theme-switch { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #D9E9E1; background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.theme-switch:hover { color: #fff; background: rgba(255,255,255,.1); }
.theme-switch svg { width: 18px; height: 18px; }
.theme-switch .i-sun { display: none; }
:root[data-theme="dark"] .theme-switch .i-sun { display: block; }
:root[data-theme="dark"] .theme-switch .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-switch .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-switch .i-moon { display: none; }
}
.lang-switch { color: #D9E9E1; font-weight: 600; font-size: .9rem; text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.lang-switch::before { content: "🌐"; margin-right: 5px; font-size: .85em; }
.lang-switch:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-toggle { display: none; }

/* Medium screens: logo only, so the menu stays on one row */
@media (min-width: 1181px) and (max-width: 1299px) {
  .site-header .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1180px) {
  .site-header .wrap { padding-block: 10px; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 6px 12px; border-radius: 999px; font: inherit; cursor: pointer; }
  .main-nav, .user-nav { display: none; width: 100%; }
  .site-header.open .main-nav, .site-header.open .user-nav { display: flex; }
  .main-nav { flex-direction: column; }
  .user-nav { padding-bottom: 12px; flex-wrap: wrap; }
}

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 15px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; background: var(--btn); color: #fff; transition: background .15s; }
.btn:hover { background: var(--btn-hover); color: #fff; }
.btn-cherry { background: var(--cherry); }
.btn-cherry:hover { background: var(--cherry-hover); }
.btn-maize { background: var(--maize); color: var(--on-maize); }
.btn-maize:hover { background: var(--maize-hover); color: var(--on-maize); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: var(--hover-wash); color: inherit; }
.site-header .btn-ghost { color: #fff; }
.site-header .btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; }

.form { background: var(--paper); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); max-width: 760px; }
.form-narrow { max-width: 460px; margin-inline: auto; }
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.hint { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number],
input[type=datetime-local], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--input-bg); color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px var(--leaf-tint); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; accent-color: var(--btn); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border-left: 4px solid; }
.alert-success { background: var(--leaf-tint); border-color: var(--btn); }
.alert-error { background: var(--cherry-tint); border-color: var(--cherry); }
.alert-info { background: var(--maize-tint); border-color: var(--maize); }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- Page scaffolding ---------- */
main { padding-bottom: 72px; }
.page-head { padding: 44px 0 28px; }
.page-head p { color: var(--ink-soft); max-width: 60ch; }
.page-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.es { display: block; font-family: var(--sans); font-size: .95rem; color: var(--cherry); font-weight: 600; margin-bottom: 6px; letter-spacing: 0; }
.section { margin-top: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.section-head h2 { margin: 0; color: var(--section-header); }
.section-head a { font-weight: 600; white-space: nowrap; }

.layout-side { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .layout-side { grid-template-columns: 1fr; } }
.filters { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 16px; }
@media (max-width: 860px) { .filters { position: static; } }
.filters h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; margin: 14px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.filter-list a:hover { background: var(--ground); color: var(--ink); }
.filter-list a[aria-current="true"] { background: var(--btn); color: #fff; }
.count { color: var(--ink-soft); font-size: .85rem; }
.filter-list a[aria-current="true"] .count { color: #CFE5DA; }

.searchbar { display: flex; gap: 10px; flex-wrap: wrap; background: var(--paper); padding: 10px; border-radius: 999px; box-shadow: var(--shadow); }
.searchbar input, .searchbar select { border: 0; flex: 1 1 180px; border-radius: 999px; background: var(--ground); }
.searchbar .btn { flex: none; }
@media (max-width: 640px) { .searchbar { border-radius: var(--radius); } }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pager a, .pager span { padding: 8px 14px; border-radius: 999px; background: var(--paper); text-decoration: none; }
.pager span { background: var(--btn); color: #fff; }

.empty { background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: 36px; text-align: center; }
.empty p { color: var(--ink-soft); }

.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--leaf-tint); color: var(--tag-leaf-fg); }
.tag-cherry { background: var(--cherry-tint); color: var(--tag-cherry-fg); }
.tag-maize { background: var(--maize-tint); color: var(--tag-maize-fg); }
.tag-plain { background: var(--ground); color: var(--ink-soft); }
.verified { color: var(--link); font-weight: 700; font-size: .85rem; display: inline-flex; gap: 4px; align-items: center; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Home ---------- */
.hero { background: var(--hero-bg); color: #fff; padding: 60px 0 0; overflow: hidden; position: relative; }
.hero::after { /* row of coffee cherries along the bottom edge */
  content: ""; display: block; height: 28px; margin-top: 52px;
  background: radial-gradient(circle at 14px 14px, var(--light-roast) 9px, transparent 10px) 0 0 / 34px 28px repeat-x;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; margin-bottom: 18px; }
.hero p { font-size: 1.15rem; color: var(--hero-text); max-width: 46ch; }
.hero .searchbar { margin-top: 26px; max-width: 780px; }
.hero .searchbar select { color: var(--ink); }
/* hero search in two rows: what + where, then state, distance, near me, search */
.hero .searchbar { flex-wrap: wrap; border-radius: 26px; }
.hero .searchbar #hero-q { flex: 1 1 55%; }
.hero .searchbar #hero-city { flex: 1 1 30%; }
.hero .searchbar .state-select { flex: 0 1 130px; }
.hero .searchbar .radius-select { flex: 1 1 190px; }
.hero .searchbar .btn { flex: none; }
@media (max-width: 640px) {
  .hero .searchbar #hero-q, .hero .searchbar #hero-city { flex-basis: 100%; }
  .hero .searchbar .btn[type=submit] { flex: 1 1 100%; }
}
.hero .near-status { color: var(--hero-text); margin-top: 8px; }
.hero .searchbar input { color: var(--ink); }
.hero .searchbar input::placeholder { color: var(--ink-soft); }
.hero-board { background: var(--maize-muted); color: var(--on-maize); border-radius: var(--radius); padding: 22px 24px; transform: rotate(1.2deg); box-shadow: 0 18px 30px -18px rgba(0,0,0,.5); }
.hero-board h2 { font-size: 1.3rem; }
.hero-board ul { list-style: none; margin: 0; padding: 0; }
.hero-board li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(36,26,20,.15); }
.hero-board a { color: var(--on-maize); font-weight: 600; text-decoration: none; }
.hero-board a:hover { text-decoration: underline; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 13px; border-radius: 999px; text-decoration: none; background: rgba(255,255,255,.1); color: #fff; font-size: .9rem; }
.chip:hover { background: rgba(255,255,255,.2); color: #fff; }
.page-chips .chip { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.page-chips .chip:hover { background: var(--leaf-tint); color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* News */
.lead-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; text-decoration: none; color: inherit; }
.lead-story img, .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--leaf-tint); }
.lead-story h3 { font-size: 1.6rem; }
@media (max-width: 640px) { .lead-story { grid-template-columns: 1fr; } }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.story-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.story-list a:hover { color: var(--cherry); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.news-item a { color: inherit; text-decoration: none; }
.news-item h3 { margin-top: 12px; }
.news-item a:hover h3 { color: var(--cherry); }
.placeholder-img { display: grid; place-items: center; font-size: 2.6rem; }

/* Events: date block list */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.datebox { background: var(--paper); border-radius: var(--radius-sm); text-align: center; padding: 6px 0 8px; box-shadow: var(--shadow); border-top: 6px solid var(--cherry); }
.datebox .m { font-size: .8rem; font-weight: 700; color: var(--cherry); }
.datebox .d { font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.event-row h3 { margin-bottom: 4px; font-size: 1.12rem; }
.event-row h3 a { color: var(--ink); text-decoration: none; }
.event-row h3 a:hover { color: var(--cherry); }

/* Directory */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.biz { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.biz-top { display: flex; gap: 12px; align-items: center; }
.biz-logo { width: 52px; height: 52px; border-radius: 50%; background: var(--leaf-tint); display: grid; place-items: center; font-size: 1.5rem; flex: none; overflow: hidden; }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz h3 { margin: 0; font-size: 1.12rem; }
.biz h3 a { color: var(--ink); text-decoration: none; }
.biz h3 a:hover { color: var(--cherry); }
.biz .meta { font-size: .88rem; color: var(--ink-soft); }
.biz p { margin: 0; font-size: .95rem; }

/* Bulletin board (jobs + classifieds) */
.board { background: var(--board-bg); background-image: radial-gradient(var(--board-dots) 1px, transparent 1px); background-size: 6px 6px; border-radius: var(--radius); padding: 18px; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pin { position: relative; background: var(--paper); padding: 16px 18px 14px; border-radius: 3px; box-shadow: 0 2px 4px rgba(36,26,20,.18); }
.pin::before { content: ""; position: absolute; top: -6px; left: 50%; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--cherry); box-shadow: 0 2px 2px rgba(0,0,0,.25); }
.pin:nth-child(3n+2)::before { background: var(--btn); }
.pin:nth-child(3n)::before { background: var(--maize); }
.pin:nth-child(odd) { transform: rotate(-.35deg); }
.pin:nth-child(even) { transform: rotate(.35deg); }
.pin h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.pin h3 a { color: var(--ink); text-decoration: none; }
.pin h3 a:hover { color: var(--cherry); }
.pin .meta { font-size: .88rem; color: var(--ink-soft); display: flex; gap: 6px 14px; flex-wrap: wrap; }
.pin .pay, .price { font-weight: 700; color: var(--link); }
.pin-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
@media (prefers-reduced-motion: reduce) { .pin, .hero-board { transform: none !important; } }

/* Recipes */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.recipe-card { text-decoration: none; color: inherit; }
.recipe-card img, .recipe-card .thumb { aspect-ratio: 1; border-radius: 50% 50% var(--radius) var(--radius); object-fit: cover; }
.recipe-card h3 { margin: 12px 0 4px; }
.recipe-card:hover h3 { color: var(--cherry); }
.recipe-layout { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .recipe-layout { grid-template-columns: 1fr; } }
.ingredients { background: var(--maize-tint); border-radius: var(--radius); padding: 22px 24px; }
.ingredients ul { padding-left: 20px; margin: 0; }
.ingredients li { padding: 4px 0; }
.ingredients-text ul, .ingredients-text ol { padding-left: 20px; margin: 0 0 .8em; }
.ingredients-text > :last-child { margin-bottom: 0; }
.ingredients-text h3 { margin: .9em 0 .3em; font-size: 1.05rem; }
.ingredients-text h3:first-child { margin-top: 0; }
.ingredients-text p { margin: 0 0 .6em; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--btn); color: #fff; display: grid; place-items: center; font-family: var(--serif); }
.facts { display: flex; gap: 22px; flex-wrap: wrap; margin: 16px 0 24px; }
.facts div { font-size: .9rem; color: var(--ink-soft); }
.facts strong { display: block; font-size: 1.15rem; color: var(--ink); font-family: var(--serif); font-weight: 400; }

/* Detail pages */
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 1.1rem; }
.dl { margin: 0; }
.dl dt { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }

/* Tables (account/admin) */
.table-wrap { overflow-x: auto; }
th { color: var(--ink); }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
th { background: var(--leaf-tint); font-weight: 700; font-size: .85rem; }
tr:last-child td { border-bottom: 0; }
td form { display: inline; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat strong { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }

.steps-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .steps-choice { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #CDBFB6; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--maize); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 3px 0; }
.footer-grid h4 { font-family: var(--sans); font-weight: 700; color: #fff; font-size: 1rem; }
.footer-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* Home: recipes sit in a narrower column — keep three small tiles in a row */
.two-col .recipe-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.two-col .recipe-card h3 { font-size: 1.02rem; }
@media (max-width: 520px) { .two-col .recipe-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Photos: gallery (main photo + thumbnails) ---------- */
.gallery { margin: 0 0 24px; }
.gallery-main { aspect-ratio: 4 / 3; max-height: 75vh; border-radius: var(--radius); overflow: hidden; background: var(--leaf-tint); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs a { display: block; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; opacity: .75; transition: opacity .15s; }
.gallery-thumbs a:hover, .gallery-thumbs a[aria-current="true"] { opacity: 1; }
.gallery-thumbs a[aria-current="true"] { outline-color: var(--link); }
.gallery-thumbs a:focus-visible { outline-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .gallery-main { border-radius: var(--radius-sm); }
  .gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .gallery-thumbs a { width: 100%; height: auto; aspect-ratio: 1; }
}

/* ---------- Photos: picker in forms ---------- */
.photo-picker { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0 0 18px; min-width: 0; }
.photo-picker legend { font-weight: 600; font-size: .95rem; padding: 0 6px; }
.photo-picker .hint { margin: 0 0 8px; }
.photo-note { color: var(--ink); background: var(--leaf-tint); padding: 8px 10px; border-radius: var(--radius-sm); }
.photo-list { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.photo-list:empty { display: none; }
.photo-item { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.photo-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--leaf-tint); }
.photo-item.is-main img { box-shadow: 0 0 0 3px var(--link); }
.photo-item.is-removed img { opacity: .35; }
.photo-picker .photo-opt { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; font-size: .85rem; cursor: pointer; }
.photo-tag { font-size: .75rem; font-weight: 700; color: var(--link); }
.photo-add { display: block; margin-top: 4px; }
.photo-input { font: inherit; font-size: .9rem; color: var(--ink-soft); max-width: 100%; }
.photo-input::file-selector-button { font: 600 .85rem var(--sans); border: 0; border-radius: 999px; padding: 8px 16px; margin-right: 10px; background: var(--btn); color: #fff; cursor: pointer; }
.photo-input::file-selector-button:hover { background: var(--btn-hover); }
.photo-status { margin: 8px 0 0; }
.photo-status.is-error { color: var(--tag-cherry-fg); font-weight: 600; }
.photo-item .btn-link { align-self: flex-start; font-size: .85rem; }

/* ---------- Sponsor ads ---------- */
.sponsors { margin: 40px 0 8px; }
.sponsors-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 12px; }
.sponsors-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sponsor-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sponsor-card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s; }
.sponsor-card a:hover { transform: translateY(-2px); }
.sponsor-card a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.sponsor-card img, .sponsor-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--leaf-tint); }
.sponsor-ph { display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem; color: var(--link); }
.sponsor-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.sponsor-tag { font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.sponsor-body strong { font-size: 1.02rem; line-height: 1.3; }
.sponsor-text { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  /* one swipeable row on phones, so ads don't push the content down */
  .sponsor-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .sponsor-list::-webkit-scrollbar { display: none; }
  .sponsor-card { flex: 0 0 82%; scroll-snap-align: start; }
  .sponsor-list > .sponsor-card:only-child { flex-basis: 100%; }
  .sponsor-card a { flex-direction: row; }
  .sponsor-card img, .sponsor-ph { width: 36%; flex: none; aspect-ratio: auto; min-height: 112px; }
  .sponsor-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Tier badges and cards */
.tier-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.tier-badge.tier-oro { background: var(--maize); color: var(--on-maize); }
.tier-badge.tier-plata { background: var(--line); color: var(--ink); }
.tier-badge.tier-bronce { background: var(--cherry-tint); color: var(--tag-cherry-fg); }
.tier-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tier-card { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tier-card p { margin: 8px 0 0; }
.choice-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choice-group legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.choice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; cursor: pointer; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 16px; }
.photo-picker[data-max="1"] .photo-opt:has(input[type="radio"]) { display: none; }

/* ---------- Admin tabs ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); margin: 8px 0 24px; scrollbar-width: thin; }
.tabs a { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 14px; text-decoration: none; color: var(--ink-soft); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tabs a:hover { color: var(--ink); background: var(--hover-wash); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--link); }
.tab-count { font-size: .75rem; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--ink); }
.tab-count.has-items { background: var(--cherry); color: #fff; }
.ad-review { display: grid; grid-template-columns: 220px 1fr; gap: 20px; background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.ad-review img, .ad-review .sponsor-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.ad-review h3 { margin: 0 0 4px; }
.ad-review .grid-3 { margin-top: 12px; }
@media (max-width: 760px) { .ad-review { grid-template-columns: 1fr; } }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Account menu in the header ---------- */
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; color: #fff; font-weight: 600; font-size: .9rem; border: 1px solid rgba(255,255,255,.35); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.account-menu[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.account-menu summary:hover { background: rgba(255,255,255,.1); }
.account-menu summary:focus-visible { outline: 2px solid var(--maize); outline-offset: 2px; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--maize); color: var(--on-maize); font-size: .85rem; font-weight: 700; }
.account-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); padding: 6px; z-index: 40; display: flex; flex-direction: column; }
.account-pop a, .account-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font: 500 .95rem var(--sans); background: none; border: 0; cursor: pointer; }
.account-pop a:hover, .account-pop button:hover, .account-pop a:focus-visible, .account-pop button:focus-visible { background: var(--hover-wash); }
.account-pop a[aria-current="page"] { font-weight: 700; }
.account-pop form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
@media (max-width: 1180px) {
  /* inside the opened phone menu, the account links open in place */
  .account-menu { flex-basis: 100%; }
  .account-menu summary { display: inline-flex; }
  .account-pop { position: static; margin-top: 8px; box-shadow: none; max-width: 320px; }
}

/* ---------- Business plans ---------- */
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); margin-top: 6px; }
.segmented a { padding: 8px 18px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.segmented a[aria-current="true"] { background: var(--btn); color: #fff; }
.segmented .save { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--maize); color: var(--on-maize); }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; margin-top: 8px; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); border: 2px solid transparent; }
.plan-card.is-popular { border-color: var(--maize); }
.plan-card h2 { margin: 0 0 4px; font-size: 1.5rem; }
.plan-tagline { min-height: 2.8em; margin: 0; }
.plan-flag { position: absolute; top: -12px; left: 22px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--maize); color: var(--on-maize); }
.plan-flag-quiet { background: var(--ink); color: var(--paper); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 16px 0; }
.plan-price strong { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.plan-price .small { flex-basis: 100%; }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: .93rem; }
.plan-features li { padding-left: 24px; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--link); font-weight: 700; }
.plan-cta { margin-top: auto; }
.plan-cta form { display: grid; gap: 8px; }
.plan-cta select { padding: 8px 10px; }
.plan-cta .btn { justify-content: center; width: 100%; }
.plan-cta .is-current { cursor: default; opacity: .75; }
.plan-mine { margin-bottom: 28px; }
.plan-mine h2 { font-size: 1.15rem; margin: 0 0 8px; font-family: var(--sans); font-weight: 700; }
.plan-mine ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.plan-mine li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.plan-faq details { background: var(--paper); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.plan-faq summary { font-weight: 600; cursor: pointer; }
.plan-faq details p { margin: 10px 0 0; }

/* Plan badges and highlighted listings */
.plan-badge { display: inline-block; align-self: center; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.plan-badge.plan-plus { background: var(--leaf-tint); color: var(--tag-leaf-fg); }
.plan-badge.plan-featured { background: var(--maize); color: var(--on-maize); }
.plan-badge.plan-partner { background: var(--ink); color: var(--paper); }
.biz.is-highlight { box-shadow: 0 0 0 2px var(--maize), var(--shadow); }
.biz.is-partner { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }

.owner-actions { display: flex; align-items: center; gap: 14px; margin: -4px 0 18px; }
.owner-actions form { margin: 0; }
.owner-cell { white-space: nowrap; }
.owner-cell form { display: inline; margin-left: 8px; }

/* ---------- Admin: categories ---------- */
.cat-table input { padding: 7px 9px; font-size: .92rem; min-width: 0; width: 100%; }
.cat-table td { vertical-align: middle; }
.cat-table .cat-icon, .cat-add .cat-icon { width: 3.4em; text-align: center; }
.cat-table .cat-sort, .cat-add .cat-sort { width: 4.6em; }
.cat-delete summary { list-style: none; cursor: pointer; }
.cat-delete summary::-webkit-details-marker { display: none; }
.cat-delete[open] form { display: grid; gap: 6px; margin-top: 6px; min-width: 180px; }
.cat-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; background: var(--paper); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-add input { width: auto; flex: 1 1 160px; padding: 8px 10px; }
.cat-add .cat-icon, .cat-add .cat-sort { flex: 0 0 auto; }

/* Saved location bar and state picker */
.loc-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 12px 0 0; font-size: .92rem; }
.loc-bar span { font-weight: 600; }
.searchbar .state-select { flex: 0 1 190px; width: auto; border: 0; background: var(--ground); color: var(--ink); font: inherit; padding: 10px 8px; }
@media (max-width: 640px) { .searchbar .state-select { flex-basis: 100%; } }
#hero-state { flex: 0 0 84px; }


/* ---------- Local news (headlines from other sites) ---------- */
.news-loc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.news-loc input { flex: 1 1 180px; max-width: 260px; }
.news-loc select { flex: 0 1 220px; width: auto; }
.feed-list { display: grid; gap: 0; }
.feed-item { padding: 16px 0; border-top: 1px solid var(--line); }
.feed-list .feed-item:first-child { border-top: 0; padding-top: 4px; }
.feed-item h3 { font-size: 1.12rem; margin: 0 0 6px; line-height: 1.3; }
.feed-item h3 a { color: var(--ink); text-decoration: none; }
.feed-item h3 a:hover { color: var(--cherry); text-decoration: underline; }
.feed-item p { margin: 0 0 8px; color: var(--ink-soft); font-size: .95rem; }
.feed-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .84rem; color: var(--ink-soft); }
.feed-meta strong { color: var(--ink); font-weight: 600; }
.feed-local { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 6px; margin-bottom: 28px; }
.feed-local h2, .feed-side h2 { font-size: 1.15rem; margin: 0 0 8px; }
.feed-side { margin-bottom: 28px; }
.feed-side .feed-item h3 { font-size: 1rem; }
.feed-home .feed-item:first-child h3 { font-size: 1.35rem; }
.source-list { list-style: none; margin: 0; padding: 0; }
.source-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.notice { background: var(--leaf-tint); color: var(--ink); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 22px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
section > .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 6px 0 16px; }
.news-filter select { width: auto; flex: 0 1 260px; }
.news-filter .check { align-items: center; }
.news-filter .check input { margin-top: 0; }
@media (max-width: 640px) { .news-loc input, .news-loc select { max-width: none; flex-basis: 100%; } }

/* ---------- Sponsor ad pricing ---------- */
.price-cards .tier-card { display: flex; flex-direction: column; gap: 4px; }
.price-list { margin: 10px 0 0; display: grid; gap: 6px; }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.price-list dt { font-size: .92rem; color: var(--ink-soft); }
.price-list dd { margin: 0; white-space: nowrap; font-size: .92rem; }
.price-list dd strong { font-size: 1.15rem; color: var(--ink); }
.price-list .price-all dt { color: var(--ink); font-weight: 600; }
.price-terms { margin-top: 16px; }
.price-terms p { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.price-terms p.small { display: block; max-width: 75ch; }
.price-box { background: var(--paper); border: 2px solid var(--maize); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; }
.price-box-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.price-total { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }
.price-save { color: var(--tag-leaf-fg); font-weight: 600; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.pay-row form { margin: 0; }
.renew-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; max-width: 760px; }
.renew-option { display: grid; gap: 4px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; cursor: pointer; border: 2px solid transparent; }
.renew-option:has(input:checked) { border-color: var(--maize); }
.renew-option input { justify-self: start; accent-color: var(--btn); }
.renew-months { font-weight: 600; }
.renew-price { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }

/* Sponsor ads without their own image show the business photo, or its logo whole (not cropped) */
.sponsor-card img.is-logo, .ad-review img.is-logo, .sponsors img.is-logo { object-fit: contain; background: #fff; padding: 14px; box-sizing: border-box; }
.img-source { font-size: .8rem; color: var(--ink-soft); margin: 6px 0 0; }

/* Business logo upload */
.logo-row { display: flex; gap: 16px; align-items: flex-start; }
.logo-preview { flex: none; width: 96px; height: 96px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; font-size: 2.2rem; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.logo-controls { flex: 1; min-width: 0; }
.logo-controls .hint { margin: 6px 0 0; }
.logo-error { margin: 8px 0 0; }
.biz-logo img { object-fit: contain; background: #fff; }
@media (max-width: 520px) { .logo-preview { width: 72px; height: 72px; } }

/* Business registration (UBI, EIN, licenses) */
.reg-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 20px; background: var(--paper); }
.reg-box legend { font-weight: 700; padding: 0 6px; }
.reg-status { margin: 0 0 12px; font-size: .92rem; }
.reg-status.reg-verified { color: var(--tag-leaf-fg); font-weight: 600; }
.reg-status.reg-rejected { color: var(--cherry); }
.reg-warning { font-size: .85rem; color: var(--ink-soft); margin: 0 0 10px; }
.reg-warning strong { color: var(--cherry); }
.reg-line { margin-top: 6px; }
.reg-missing { color: var(--cherry); }
.reg-review { display: grid; grid-template-columns: 1fr 320px; gap: 20px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.reg-review h3 { margin: 0 0 4px; }
.reg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.reg-facts dt { font-size: .8rem; color: var(--ink-soft); }
.reg-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.reg-review-actions { display: flex; flex-direction: column; }
.reg-review-actions textarea { width: 100%; }
.reg-account { margin-top: 4px; }
.verified.registered { color: var(--tag-leaf-fg); }
@media (max-width: 760px) { .reg-review { grid-template-columns: 1fr; } }

/* Job application résumés */
.resume-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground); width: fit-content; max-width: 100%; }
.resume-icon { font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--cherry); border-radius: 4px; padding: 3px 6px; }
.resume-error { margin: 8px 0 0; }
.resume-preview { background: #fff; color: #1d1d1d; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 48px; max-width: 820px; font-size: 1rem; line-height: 1.55; }
.resume-preview p { margin: 0 0 8px; color: #1d1d1d; white-space: pre-wrap; tab-size: 6; overflow-wrap: anywhere; max-width: none; }
.resume-preview .resume-first { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
@media (max-width: 640px) { .resume-preview { padding: 22px 18px; } }
.applicant-row { flex-wrap: wrap; }
.applicant-row > div { min-width: 0; flex: 1 1 260px; }
.applicant-status { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.applicant-status select { width: auto; max-width: 100%; }
.panel .prose { overflow-wrap: anywhere; }

/* Classifieds: "Me interesa" */
.interest-panel { border: 2px solid var(--cherry); }
.interest-btn { width: 100%; justify-content: center; font-size: 1.05rem; }
.interest-share { list-style: none; margin: 0 0 8px; padding: 8px 10px; background: var(--ground); border-radius: var(--radius-sm); }
.interest-share li { padding: 2px 0; overflow-wrap: anywhere; }
.interest-note summary { cursor: pointer; color: var(--link); }
.interest-note textarea { margin-top: 6px; width: 100%; }
.interest-done { font-weight: 700; color: var(--tag-leaf-fg); margin: 0 0 4px; }

/* Event page: tickets and website buttons */
.event-links { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.event-links .btn { justify-content: center; text-align: center; }

/* Los Cafecitos' own cards that fill empty sponsor spots */
.house-card a { border: 2px dashed var(--line); box-shadow: none; background: var(--paper); }
.house-ph { font-size: 3rem; background: var(--maize-tint, var(--leaf-tint)); }


/* Sponsor cards: always two side by side on wider screens, so a single ad doesn't stretch across the page */
@media (min-width: 641px) {
  .sponsor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* picture on the left, text on the right: compact cards instead of tall banners */
  .sponsor-card a { flex-direction: row; min-height: 168px; }
  .sponsor-card img, .sponsor-ph { width: 40%; flex: none; aspect-ratio: auto; height: auto; min-height: 168px; }
  .sponsor-body { justify-content: center; padding: 16px 18px; }
}

/* Sign-up bot trap: off-screen (not display:none, which some bots skip) */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.confirm-box h1 { margin-top: 0; }
.verify-banner { background: var(--maize-tint); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.confirm-box form.form-actions { margin: 4px 0 16px; }

/* Admin → Miembros */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.member-chips { margin: 0 0 14px; }
.member-chips .chip.is-on { background: var(--leaf); color: #fff; }
.member-chips .chip.is-on .muted { color: inherit; opacity: .8; }
.members-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.members-search input[type="search"] { flex: 1 1 260px; max-width: 420px; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; padding: 10px 12px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.bulk-bar select { width: auto; }
.bulk-bar input[type="text"] { flex: 1 1 200px; max-width: 320px; }
.members-table .col-check { width: 36px; text-align: center; }
.members-table .col-check input { width: 18px; height: 18px; }
.member-actions { white-space: nowrap; }
.member-actions .btn { margin: 2px 0; }
tr.member-deactivated td, tr.member-banned td { color: var(--ink-soft); }
@media (max-width: 640px) { .member-actions { white-space: normal; } }
@media (max-width: 640px) {
  /* phones: each member becomes a card (checkbox on the left, details and buttons stacked) */
  .members-table, .members-table tbody { display: block; min-width: 0; }
  .members-table thead tr { display: flex; align-items: center; }
  .members-table thead th:not(.col-check) { display: none; }
  .members-table tbody tr { display: grid; grid-template-columns: 36px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .members-table tbody td { display: block; grid-column: 2; border: 0; padding: 2px 8px; }
  .members-table tbody td.col-check { grid-column: 1; grid-row: 1 / span 5; padding-top: 4px; }
  .member-actions { padding-top: 8px !important; }
}

/* Mi cuenta → Eliminar mi cuenta */
.danger-box { border: 2px solid var(--cherry, #C2264B); background: var(--cherry-tint); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; color: var(--ink); }
.danger-box p { margin: 0 0 8px; }
.danger-box ul { margin: 0 0 10px; padding-left: 20px; }
.account-danger { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-link { color: var(--cherry); }
.account-danger .h4 { font-size: 1.05rem; margin: 0 0 4px; }

/* Blog */
.blog-topics { margin: 14px 0 0; }
.blog-topics .chip.is-on { background: var(--leaf); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 8px 0 24px; }
.blog-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.blog-card-img { display: block; aspect-ratio: 16 / 9; background: var(--leaf-tint); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img .placeholder-img { display: grid; place-items: center; height: 100%; font-size: 2.4rem; }
.blog-card-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.blog-card-body h2, .blog-card-body h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.blog-card-body h2 a, .blog-card-body h3 a { color: var(--ink); text-decoration: none; }
.blog-card-body h2 a:hover, .blog-card-body h3 a:hover { text-decoration: underline; }
.blog-card-body p { margin: 0; color: var(--ink-soft); }
.blog-topic { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf); text-decoration: none; }
@media (min-width: 900px) {
  .blog-card.is-lead { grid-column: 1 / -1; flex-direction: row; }
  .blog-card.is-lead .blog-card-img { flex: 0 0 56%; aspect-ratio: 16 / 9; }
  .blog-card.is-lead .blog-card-body { justify-content: center; padding: 24px 28px; }
  .blog-card.is-lead h2 { font-size: 1.7rem; }
}
.blog-post { max-width: 760px; margin: 0 auto; padding: 28px 0 8px; }
.blog-post h1 { margin: 6px 0 8px; line-height: 1.15; }
.blog-meta { margin: 0 0 18px; font-size: .95rem; }
.blog-cover { width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 20px; display: block; }
.blog-lead { font-size: 1.2rem; line-height: 1.5; margin: 0 0 18px; }
.blog-body { font-size: 1.08rem; line-height: 1.7; }
.blog-body h2 { margin: 1.6em 0 .5em; }
.blog-body h3 { margin: 1.4em 0 .4em; }
.blog-body blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--maize); color: var(--ink-soft); }
.blog-body ul, .blog-body ol { padding-left: 1.4em; }
.blog-related { max-width: 1100px; margin: 30px auto 10px; }
.format-help { background: var(--ground); border-radius: 8px; padding: 10px 12px; font-size: .85rem; white-space: pre-wrap; margin: 8px 0; }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.topic-row input { flex: 1 1 150px; min-width: 0; }
.topic-row .topic-sort { flex: 0 0 70px; }
.topic-row .topic-count { flex: 0 0 30px; text-align: center; }
.blog-admin .section-head span { display: inline-flex; gap: 8px; flex-wrap: wrap; }
/* cards and covers keep a 16:9 frame whatever the photo's shape */
.blog-card-img { position: relative; overflow: hidden; flex: none; }
.blog-card-img img { position: absolute; inset: 0; }
.blog-cover { aspect-ratio: 16 / 9; object-fit: cover; }

/* Landing pages (/p/…) */
.lp-hero { padding: 64px 0; background: var(--leaf-deep, #143F30); color: #fff; }
.lp-hero h1, .lp-hero h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 0 0 14px; }
.lp-hero .lp-sub { font-size: 1.2rem; line-height: 1.5; color: #DCEBE3; margin: 0 0 24px; max-width: 46ch; }
.lp-hero-inner { display: grid; gap: 32px; align-items: center; }
.lp-hero-inner { grid-template-columns: 1fr; text-align: center; }
.lp-hero .lp-sub { margin-left: auto; margin-right: auto; }
/* Full image: the whole picture, uncropped, text below */
.lp-hero-image:not(.lp-hero-noimg) { padding: 40px 0 56px; }
.lp-hero-image.lp-hero-notext { padding: 32px 0; }
.lp-hero-img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin: 0 auto; border-radius: var(--radius); }
.lp-hero-img-link { display: block; border-radius: var(--radius); }
/* Image beside: text left, image right (stacked on phones, image below the text) */
.lp-hero-side:not(.lp-hero-noimg) .lp-hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); text-align: left; }
.lp-hero-side:not(.lp-hero-noimg) .lp-hero-text { order: -1; }
.lp-hero-side:not(.lp-hero-noimg) .lp-sub { margin-left: 0; }
.lp-hero-side .lp-hero-img { width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.lp-hero-side.lp-hero-notext .lp-hero-inner { grid-template-columns: 1fr; }
.lp-hero-img-link:focus-visible { outline: 3px solid var(--maize, #F2B705); outline-offset: 4px; }
.lp-hero-background { background-size: cover; background-position: center; position: relative; padding: 110px 0; }
.lp-hero-background::before { content: ''; position: absolute; inset: 0; background: rgba(20, 63, 48, .68); }
.lp-hero-background .lp-hero-inner { position: relative; }
@media (max-width: 760px) { .lp-hero { padding: 40px 0; } .lp-hero-side:not(.lp-hero-noimg) .lp-hero-inner { grid-template-columns: 1fr; } .lp-hero-image:not(.lp-hero-noimg) { padding: 20px 0 36px; } .lp-hero-image .lp-hero-inner { gap: 24px; } .lp-hero-background { padding: 70px 0; } }
.lp-section { padding: 44px 0; margin: 0; }
.lp-narrow { max-width: 760px; }
.lp-center { text-align: center; }
.lp-text { font-size: 1.08rem; line-height: 1.7; }
.lp-figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.lp-figure figcaption { margin-top: 8px; text-align: center; }
.lp-features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 18px; }
.lp-feature { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.lp-feature h3 { margin: 6px 0; font-size: 1.15rem; }
.lp-feature p { margin: 0; color: var(--ink-soft); }
.lp-icon { font-size: 2rem; }
.lp-quote { margin: 0; padding: 26px 30px; background: var(--paper); border-left: 5px solid var(--maize); border-radius: var(--radius); font-size: 1.25rem; line-height: 1.5; }
.lp-quote footer { margin-top: 10px; font-size: .95rem; color: var(--ink-soft); }
.lp-faq details { background: var(--paper); border-radius: 10px; padding: 14px 18px; margin: 0 0 10px; box-shadow: var(--shadow); }
.lp-faq summary { cursor: pointer; font-weight: 600; }
.lp-cta { background: var(--leaf); color: #fff; border-radius: var(--radius); padding: 40px 28px; text-align: center; }
.lp-cta h2 { color: #fff; margin-top: 0; }
.lp-cta p { color: #DCEBE3; max-width: 56ch; margin: 0 auto 20px; }
.lp-form-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.lp-form-card h2 { margin-top: 0; }
.lp-thanks { text-align: center; padding: 10px 0; }
.site-footer-bare { padding: 18px 0; }
.site-footer-bare .footer-base { border: 0; margin: 0; padding: 0; }
/* the editor */
.lp-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 6px; margin: 0 0 18px; background: var(--paper); }
.lp-box legend { font-weight: 700; padding: 0 6px; }
.lp-block.is-focus { outline: 3px solid var(--maize); }
.lp-block-tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: -6px 0 8px; }
.lp-items { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0 0 12px; }
.lp-item { display: flex; flex-direction: column; gap: 6px; background: var(--ground); border-radius: 10px; padding: 10px; }
.lp-icon-input { width: 70px; }
.lp-fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 4px 0 10px; }
.lp-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.lp-checks { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.lp-thumb { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; }
.lp-thumb img { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; }
.lp-image-field input[type="file"] { margin-bottom: 6px; }
.lp-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line); }
.lp-save { position: sticky; bottom: 0; background: var(--ground); padding: 12px 0; z-index: 5; }
.lp-danger { display: flex; gap: 10px; }
.lp-url { background: var(--leaf-tint); padding: 8px 12px; border-radius: 8px; }
.lp-bar-cell { width: 40%; }
.lp-bar { display: block; height: 10px; background: var(--leaf); border-radius: 5px; min-width: 2px; }
.lp-answer { max-width: 26ch; overflow-wrap: anywhere; }
.lp-form-card .form { background: none; box-shadow: none; padding: 0; max-width: none; margin: 0; }
.lp-editor .form { max-width: 980px; }

/* Landing page statistics: engagement */
.stat .small { display: block; margin-top: .15rem; }
.lp-breakdowns { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.lp-breakdowns > * { min-width: 0; }
.lp-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 140px; align-items: end; margin: .5rem 0 2rem; }
.lp-hour { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.lp-hour span { display: block; background: var(--leaf); border-radius: 3px 3px 0 0; min-height: 2px; }
.lp-hour small { font-size: .7rem; color: var(--muted, #777); height: 1rem; }
.page-head .hint { overflow-wrap: anywhere; }
.lp-example-url { overflow-wrap: anywhere; }

/* Admin → Códigos QR */
.qr-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .qr-layout { grid-template-columns: 1fr; } }
.qr-layout > * { min-width: 0; }
.qr-results { position: sticky; top: 16px; }
@media (max-width: 900px) { .qr-results { position: static; } }
.qr-rows { display: grid; gap: 8px; margin-bottom: 12px; }
.qr-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.qr-row-head { margin-bottom: -4px; }
.qr-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.qr-grid.qr-one { grid-template-columns: minmax(0, 340px); }
.qr-card { margin: 0; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 8px; }
.qr-card img { width: 100%; height: auto; aspect-ratio: 1; display: block; image-rendering: pixelated; }
.qr-card figcaption { display: flex; flex-direction: column; gap: 6px; color: #222; }
.qr-url { width: 100%; font-family: ui-monospace, Menlo, monospace; padding: 6px 8px; border: 1px solid #ddd; border-radius: 6px; background: #fafafa; color: #333; }
.qr-dl a { white-space: nowrap; }

/* Landing pages: text block with an image beside it (stacks on phones, image first) */
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.lp-split-left .lp-split-media { order: -1; }
.lp-split-media img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.lp-split-text > h2:first-child { margin-top: 0; }
@media (max-width: 760px) { .lp-split { grid-template-columns: 1fr; gap: 20px; } .lp-split-media { order: -1; } }
.lp-side-image { border-top: 1px dashed rgba(0,0,0,.12); padding-top: 12px; margin-top: 4px; }

/* Admin → Negocios → Importar CSV */
.imp-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; margin-bottom: 32px; }
@media (max-width: 900px) { .imp-layout { grid-template-columns: 1fr; } }
.imp-layout > * { min-width: 0; }
.imp-help { display: grid; gap: 16px; }
.imp-help .card h2, .imp-form h2 { margin-top: 0; font-size: 1.15rem; }
.imp-dup-list { padding-left: 1.2rem; margin: 8px 0; display: grid; gap: 4px; }
.imp-cats { columns: 2; padding-left: 1rem; }
@media (max-width: 560px) { .imp-cats { columns: 1; } }
.stat-row a.stat { text-decoration: none; color: inherit; }
.stat-row a.stat.is-on { outline: 2px solid var(--leaf, #1f6b4f); outline-offset: -2px; }
.stat-new strong { color: #1f6b4f; } .stat-dup strong { color: #8a5a00; } .stat-err strong { color: #b3261e; }
.imp-confirm { margin: 16px 0; } .imp-confirm h2 { margin-top: 0; } .imp-confirm fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.imp-confirm legend { font-weight: 600; margin-bottom: 4px; }
.imp-result { margin: 16px 0; } .imp-result h2 { margin-top: 0; }
.tag-imp-row-new, .tag-imp-done { background: #e3f3ea; color: #1f6b4f; }
.tag-imp-row-duplicate, .tag-imp-preview { background: #fff3d6; color: #8a5a00; }
.tag-imp-row-error { background: #fde7e5; color: #b3261e; }
.tag-imp-undone, .tag-imp-running { background: #eceff1; color: #555; }
.imp-table td { vertical-align: top; }
.imp-table tr.imp-error td { background: #fffafa; }
.inline-form { display: inline-block; margin: 0 0 12px; }

/* Business edit page: admin owner panel */
.owner-panel { margin-top: 32px; padding: 24px; border: 2px dashed rgba(0,0,0,.14); border-radius: var(--radius, 14px); background: var(--card, #fff); }
@media (max-width: 560px) { .owner-panel { padding: 16px; } }
.owner-panel h2 { margin-top: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.owner-actions { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.owner-actions:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
@media (max-width: 700px) { .owner-actions { grid-template-columns: 1fr; } }
.owner-change { background: none; box-shadow: none; padding: 0; }
.tag-warn { background: #fff3d6; color: #8a5a00; }

/* Reviews */
.stars { position: relative; display: inline-block; line-height: 1; font-size: 1.05em; letter-spacing: 1px; vertical-align: -1px; }
.stars-off { color: #d9d4cc; }
.stars-on { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #e2a400; }
.review-summary .rs-score { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.review-summary .rs-avg { font-size: 2.4rem; line-height: 1; font-family: var(--serif, inherit); }
.review-summary .rs-score .stars { font-size: 1.25rem; }
.rs-bars { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
.rs-bars li { display: grid; grid-template-columns: 2.4em 1fr 2.8em; gap: 8px; align-items: center; }
.rs-bar { height: 8px; background: #ece7df; border-radius: 99px; overflow: hidden; }
.rs-bar span { display: block; height: 100%; background: #e2a400; border-radius: 99px; }
.rs-bars li > span:last-child { text-align: right; }
.rs-cta { width: 100%; justify-content: center; text-align: center; }
.rs-members { margin: 8px 0 0; }
.reviews { margin-top: 12px; }
.review-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.review { padding: 16px 18px; background: var(--card, #fff); border-radius: var(--radius, 14px); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review-meta { margin: 4px 0 8px; }
.review-body p { margin: 0 0 8px; }
.review-report { margin: 0; text-align: right; max-width: none; }
.review-report a { color: var(--muted, #777); }
.review-dispute { margin-top: 8px; }
.card-rating { margin-top: 4px; display: flex; gap: 4px; align-items: center; }
/* star picker: radios, highest first in the markup and shown reversed so hovering fills to the left */
.star-input { border: 0; padding: 0; margin: 0 0 18px; }
.star-input legend { font-weight: 600; margin-bottom: 6px; }
.star-choices { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-choices label { font-size: 2.4rem; line-height: 1; color: #d9d4cc; cursor: pointer; padding: 2px; border-radius: 8px; transition: color .1s, transform .1s; }
.star-choices label:hover, .star-choices label:hover ~ label, .star-choices input:checked ~ label { color: #e2a400; }
.star-choices input:focus-visible + label { outline: 3px solid var(--leaf, #1f6b4f); outline-offset: 2px; }
.star-choices label:active { transform: scale(.92); }
.star-pick { display: inline-flex; flex-direction: column; }
.star-input .star-scale { display: flex; justify-content: space-between; width: 100%; max-width: none; margin: 2px 0 0; }
.review-agree { margin: 6px 0 16px; align-items: flex-start; }
.review-delete { margin-top: 12px; }
.review-share { background: var(--card, #fff); padding: 24px; border-radius: var(--radius, 14px); box-shadow: 0 1px 3px rgba(0,0,0,.08); margin: 20px 0 24px; }
@media (max-width: 560px) { .review-share { padding: 16px; } }
.review-share h2 { margin-top: 0; }
.review-share p { max-width: none; }
.share-steps { padding-left: 1.2rem; display: grid; gap: 4px; }
.review-copy { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; background: #fafafa; resize: vertical; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn-google:hover { background: #f6f8fc; color: #1f1f1f; }
.btn-google span { font-weight: 700; color: #4285f4; margin-right: 2px; }
.review-admin td { vertical-align: top; }
.review-admin tr.is-hidden td { opacity: .7; }
.review-admin-body { margin-top: 4px; max-width: 46ch; white-space: pre-line; }
.review-admin-actions form { display: grid; gap: 6px; min-width: 150px; }
.review-admin-actions input { font-size: .85rem; padding: 6px 8px; }
.head-rating { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; text-decoration: none; color: inherit; font-size: .95rem; }
.head-rating:hover strong { text-decoration: underline; }
.rev-cta-mobile { display: none; }
@media (max-width: 900px) { .rev-cta-mobile { display: block; } }
.biz-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.biz-export { display: flex; gap: 6px; align-items: center; margin: 0; }
.biz-export select { font-size: .85rem; padding: 5px 8px; border-radius: 99px; }
.biz-tools .btn { white-space: nowrap; }
@media (max-width: 640px) { .section-head:has(.biz-tools) { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* Admin → Códigos */
.codes-tools { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; margin-bottom: 24px; }
@media (max-width: 900px) { .codes-tools { grid-template-columns: 1fr; } }
.codes-tools .card { padding: 20px; } .codes-tools h2 { margin-top: 0; font-size: 1.1rem; }
.codes-add-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.codes-add-grid .codes-wide { grid-column: span 2; }
@media (max-width: 560px) { .codes-add-grid { grid-template-columns: 1fr 1fr; } }
.codes-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.codes-upload input[type=text] { max-width: 11rem; }
.codes-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.codes-filter input[type=search] { min-width: 14rem; flex: 1 1 14rem; max-width: 24rem; }
.codes-table td { vertical-align: middle; }
.codes-table input { width: 100%; min-width: 7rem; padding: 6px 8px; font-size: .9rem; }
.codes-table input.codes-state { min-width: 3.5rem; width: 4.5rem; }
.codes-table tr.is-unnamed .codes-code strong { color: #8a5a00; }
.codes-code { white-space: nowrap; }
.codes-actions form { display: flex; gap: 6px; }
.codes-del { padding-inline: 10px; }
.qr-or { margin: 12px 0 6px; font-weight: 600; }
.qr-lists { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.qr-lists .inline-form { margin: 0; }
.places-roll { margin: 6px 0 12px; } .places-roll summary { cursor: pointer; padding: 6px 0; }
.codes-tools > .card { background: var(--card, #fff); border-radius: var(--radius, 14px); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.codes-filter select { width: auto; flex: 0 0 auto; }
.codes-upload input[type=file] { max-width: 100%; }
.codes-tools, .codes-add-grid > * { min-width: 0; }

/* Admin → Correos: sent emails and campaign pages (kept from the previous stylesheet) */
.mail-admin td:last-child { white-space: nowrap; }
.mail-admin h3 { margin-top: 26px; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.camp-links { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin: 0 0 24px; }
.camp-links h2 { margin-top: 0; font-size: 1.15rem; }
.camp-links textarea, .camp-links input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }


/* Installed app (iPhone notch / home bar): keep content clear of the screen edges */
.site-header { padding-top: env(safe-area-inset-top); }
.site-footer { padding-bottom: calc(env(safe-area-inset-bottom) + 8px); }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
/* inside the installed app, links to "install the app" aren't needed */
.is-app [data-hide-in-app] { display: none !important; }

/* /app page */
.app-page { padding: 32px 16px 48px; }
.app-hero { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.app-icon { border-radius: 22%; box-shadow: 0 8px 24px rgba(0,0,0,.18); flex: none; }
.app-hero h1 { margin: 0 0 8px; }
.app-perks { padding-left: 1.2rem; margin: 10px 0 0; display: grid; gap: 4px; }
@media (max-width: 600px) { .app-hero { flex-direction: column; gap: 14px; } .app-icon { width: 72px; height: 72px; } }
.app-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; margin-bottom: 20px; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } }
.app-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.app-card h2 { margin-top: 0; font-size: 1.25rem; }
.app-steps { padding-left: 1.2rem; display: grid; gap: 6px; }
.app-other { margin: 12px 0; } .app-other summary { cursor: pointer; }
.push-form fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.push-form legend { font-weight: 600; margin-bottom: 6px; }
.push-form .check { align-items: flex-start; }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.push-status { margin: 10px 0 0; font-weight: 600; min-height: 1.2em; }
.push-status.is-ok { color: #1f6b4f; } .push-status.is-bad { color: #b3261e; }
.push-ios-note { display: none; padding: 10px 12px; border-radius: 10px; background: #fff3d6; color: #6b4a00; }
.push-box.needs-install .push-ios-note { display: block; }
.push-box.needs-install .push-form, .push-box.is-unsupported .push-form button { display: none; }
.offline-page { text-align: center; padding: 64px 16px; max-width: 520px; }
.offline-page img { border-radius: 22%; margin-bottom: 12px; }
.push-compose { margin: 16px 0; padding: 20px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); } .push-compose h3 { margin-top: 0; } .push-digest { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }

/* Admin → Miembros: resend confirmation to everyone waiting */
.resend-all { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .75rem 0; padding: .75rem 1rem; border-radius: 10px; background: var(--hover-wash); border: 1px solid var(--line); }
.resend-all p { margin: 0; flex: 1 1 22rem; }

/* "Install the app" banner (phones) */
.app-banner { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px; border-radius: 14px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .35);
  transform: translateY(140%); transition: transform .35s ease; }
.app-banner.is-in { transform: none; }
.app-banner[hidden] { display: none !important; }
.app-banner-icon { width: 44px; height: 44px; border-radius: 22%; flex: none; }
.app-banner-text { flex: 1 1 auto; min-width: 0; font-size: .86rem; line-height: 1.3; }
.app-banner-text > strong { display: block; font-size: .95rem; }
.app-banner-text > span { display: block; }
.app-banner-text span { color: var(--ink-soft); }
.app-banner .btn { flex: none; }
.app-banner-close { flex: none; width: 36px; height: 36px; border: 0; background: none; color: var(--ink-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.app-banner-close:hover, .app-banner-close:focus-visible { background: var(--hover-wash); }
.has-app-banner .site-footer { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
@media (prefers-reduced-motion: reduce) { .app-banner { transition: none; } }

/* Homepage: "Take Los Cafecitos with you" */
.app-promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; border-left: 6px solid var(--maize); }
.app-promo-icon { border-radius: 22%; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.app-promo h2 { margin: 0 0 6px; }
.app-promo p { margin: 0; }
.app-promo-perks { margin: 10px 0 0; padding-left: 1.2rem; display: grid; gap: 3px; color: var(--ink-soft); font-size: .95rem; }
.app-promo-actions { display: grid; gap: 8px; justify-items: center; text-align: center; }
@media (max-width: 760px) {
  .app-promo { grid-template-columns: auto minmax(0, 1fr); padding: 20px; gap: 14px 16px; align-items: start; }
  .app-promo-perks { font-size: .9rem; }
  .app-promo-icon { width: 56px; height: 56px; margin-top: 4px; }
  .app-promo-actions { grid-column: 1 / -1; justify-items: stretch; }
  .app-promo-actions .btn { width: 100%; justify-content: center; }
}

/* Home-based businesses */
.tag-home { white-space: nowrap; }
.home-note { display: block; margin-top: 4px; }
.home-based-field .check { align-items: flex-start; }

/* Text formatting toolbar (jobs, events, classifieds, recipes) */
.fmt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px; border: 1.5px solid var(--line); border-bottom: 0;
  border-radius: var(--radius-sm, 10px) var(--radius-sm, 10px) 0 0; background: var(--hover-wash); }
.fmt-bar[hidden] { display: none !important; }
.fmt-bar + textarea.has-fmt-bar, .fmt-bar ~ textarea.has-fmt-bar { border-top-left-radius: 0; border-top-right-radius: 0; }
.fmt-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 34px; padding: 0 8px; border: 0; border-radius: 7px;
  background: none; color: var(--ink); font: inherit; font-size: .95rem; line-height: 1; cursor: pointer; }
.fmt-btn svg { fill: currentColor; }
.fmt-btn svg[fill="none"] { fill: none; }
.fmt-btn:hover:not(:disabled), .fmt-btn:focus-visible { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.fmt-btn:disabled { opacity: .35; cursor: default; }
.fmt-btn em { font-family: Georgia, serif; font-size: 1.05rem; }
.fmt-small { font-size: .72em; margin-left: 1px; }
.fmt-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.fmt-grow { flex: 1 1 auto; }
.fmt-preview-btn { font-size: .85rem; font-weight: 600; padding: 0 12px; }
.fmt-preview-btn[aria-pressed="true"] { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.fmt-preview { padding: 12px 14px; border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-sm, 10px) var(--radius-sm, 10px); background: var(--paper); overflow-wrap: anywhere; }
.fmt-preview > :first-child { margin-top: 0; }
.fmt-hint code { font-size: .85em; padding: 0 3px; border-radius: 4px; background: var(--hover-wash); white-space: nowrap; }
.prose h3 { margin: 1.2em 0 .4em; }
.prose blockquote { margin: 1em 0; padding: .2em 0 .2em 1em; border-left: 4px solid var(--maize); color: var(--ink-soft); }
.recipe-intro { font-size: 1.15rem; }
@media (max-width: 480px) {
  .fmt-bar { gap: 0; padding: 3px; }
  .fmt-btn { min-width: 30px; padding: 0 4px; }
  .fmt-sep { margin: 0 2px; }
  .fmt-preview-btn { padding: 0 6px; }
}

/* Recipes: tips and tricks */
.recipe-box { margin-top: 8px; padding: 18px 22px; border-radius: var(--radius); background: var(--hover-wash); border-left: 5px solid var(--maize); }
.recipe-box + .recipe-box { margin-top: 16px; }
.recipe-box h2 { margin: 0 0 8px; font-size: 1.3rem; }
.recipe-box .prose > :last-child { margin-bottom: 0; }
/* Preparation written with the toolbar: numbered steps get the same round numbers as before */
.recipe-method ol { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; }
.recipe-method ol > li { counter-increment: step; position: relative; padding: 4px 0 18px 52px; min-height: 36px; }
.recipe-method ol > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--btn); color: #fff; display: grid; place-items: center; font-family: var(--serif); }
.recipe-method ul { margin: 0 0 1em; }
.recipe-method h3:first-child { margin-top: 0; }

/* Weather in the header (views/partials/weather.ejs) */
.wx { position: relative; flex: none; }
.wx-pill { list-style: none; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 11px 0 8px; border-radius: 999px; cursor: pointer;
  color: #fff; font-weight: 600; font-size: .9rem; border: 1px solid rgba(255,255,255,.35); white-space: nowrap; user-select: none; }
.wx-pill::-webkit-details-marker { display: none; }
.wx-pill:hover, .wx[open] .wx-pill { background: rgba(255,255,255,.1); }
.wx-icon { font-size: 1.1rem; line-height: 1; }
.wx-temp { min-width: 2.2em; font-variant-numeric: tabular-nums; }
.wx-pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(330px, calc(100vw - 24px)); z-index: 5; padding: 16px; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .45); border: 1px solid var(--line); }
/* opening: slides down from the pill and fades in; closing (.is-closing, set by public/js/weather.js) the reverse */
.wx-pop { transform-origin: top right; }
.wx[open] .wx-pop { animation: wx-in .22s cubic-bezier(.2, .8, .3, 1); }
.wx.is-closing .wx-pop { animation: wx-out .16s ease-in forwards; }
@keyframes wx-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wx-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .wx[open] .wx-pop, .wx.is-closing .wx-pop { animation: none; } }
.wx-now { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.wx-now-icon { font-size: 2.4rem; line-height: 1; }
.wx-now p { margin: 0; }
.wx-place { font-weight: 700; }
.wx-default { font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.wx-now-temp { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
.wx-now-temp span { font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }
.wx-days { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.wx-days li { display: grid; grid-template-columns: 4.2em 1.8em 1fr auto; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.wx-day { font-weight: 600; }
.wx-day-icon { font-size: 1.15rem; text-align: center; }
.wx-pop-chance { font-size: .8rem; color: var(--ink-soft); }
.wx-hilo { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-hilo span:last-child { color: var(--ink-soft); margin-left: 4px; }
.wx-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.wx-row { display: flex; gap: 6px; align-items: center; }
.wx-row input { flex: 1 1 auto; min-width: 0; padding: 7px 10px; }
.wx-row-2 { justify-content: space-between; margin-top: 8px; }
.wx-units { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.wx-units button { border: 0; background: none; color: var(--ink); font: 600 .85rem var(--sans); padding: 4px 10px; cursor: pointer; }
.wx-units button[aria-pressed="true"] { background: var(--btn); color: #fff; }
.wx-status { margin: 6px 0 0; min-height: 1.2em; }
.wx-status.is-bad { color: var(--cherry); }
.wx-status.is-ok { color: var(--btn); }
.wx-source { margin: 8px 0 0; font-size: .75rem; color: var(--ink-soft); }
/* wide screens: menu, then the weather, then the account buttons (the header may be a bit wider than the page) */
.site-header .wrap { width: min(1320px, 100% - 32px); }
@media (min-width: 1181px) {
  .site-header .main-nav { order: 1; }
  .site-header .wx { order: 2; }
  .site-header .user-nav { order: 3; }
}
/* phones and tablets: the weather stays visible next to the Menu button */
@media (max-width: 1180px) {
  .site-header .wx { margin-left: auto; }
  .site-header .wx + .nav-toggle { margin-left: 0; }
  .wx-pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 80px); overflow: auto; }
}
/* Profile → Clima */
.wx-settings { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 4px; margin: 0 0 18px; }
.wx-settings legend { font-weight: 700; padding: 0 6px; }
.wx-settings .wx-now-place { margin: 0 0 12px; }

/* "Servicio necesario" */
.dir-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-form .lede, .svc-sent .lede, .page-head .lede { font-size: 1.08rem; color: var(--ink-soft); }
.svc-contact { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px 4px; margin: 0 0 18px; }
.svc-contact legend { font-weight: 700; padding: 0 6px; }
.svc-consent { background: var(--maize-tint); border: 1px solid var(--maize); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; }
.svc-consent p { margin: 0 0 8px; }
.svc-consent .check { font-weight: 600; }
.svc-biz-list { font-size: 1.1rem; font-weight: 600; }
.svc-usage { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.svc-usage li { padding: 10px 14px; border-radius: 10px; background: var(--hover-wash); }
.svc-received { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.svc-card { padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-card h2 { margin: 2px 0 4px; font-size: 1.25rem; }
.svc-card p { margin: 0 0 8px; }
.svc-message { font-style: italic; color: var(--ink-soft); overflow-wrap: anywhere; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-actions .btn { overflow-wrap: anywhere; }
.svc-mine { padding-left: 1.1rem; }
.svc-mine li { margin-bottom: 4px; }

/* Directory categories in groups: sidebar */
.cat-group details > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); }
.cat-group details > summary::-webkit-details-marker { display: none; }
.cat-group details > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0 6px; opacity: .55; transition: transform .2s ease; flex: none; }
.cat-group details[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.cat-group details > summary .count { margin-left: auto; }
.cat-group details > summary:hover { background: var(--ground); }
.cat-group details[open] > summary { font-weight: 600; }
.cat-subs { margin: 2px 0 6px 14px; padding-left: 8px; border-left: 2px solid var(--line); }
.cat-subs a { padding: 5px 10px; font-size: .95rem; }
.cat-group details[open] .cat-subs { animation: cat-open .2s ease-out; }
@keyframes cat-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cat-group details[open] .cat-subs { animation: none; } .cat-group details > summary::after { transition: none; } }
/* Admin → Categorías */
.cat-main-row td { border-top: 2px solid var(--line); font-weight: 600; }
.cat-sub-row td:first-child { padding-left: 18px; white-space: nowrap; }
.cat-indent { color: var(--ink-soft); margin-right: 4px; }
.cat-parent { max-width: 220px; }

/* Business form: main category + up to 3 subcategories */
.cat-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.cat-picker > .field { margin-bottom: 0; }
.cat-subs-box { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 16px 10px; margin: 0; min-width: 0; background: var(--paper); }
.cat-subs-box legend { font-weight: 700; padding: 0 6px; }
.cat-subs-count { font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.cat-subs-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--maize-tint); border-left: 4px solid var(--maize); font-size: .92rem; }
.cat-sub-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 2px 14px; }
.cat-sub-options + .cat-sub-options { margin-top: 10px; }
.cat-sub-group { grid-column: 1 / -1; margin: 0 0 4px; font-weight: 700; color: var(--ink-soft); }
.cat-picker.is-enhanced .cat-sub-group { display: none; }
.cat-sub-options .check { margin: 0; padding: 5px 0; }
.cat-sub-options .check.is-disabled { opacity: .45; }
.cat-subs-box [data-subs-empty] { margin: 4px 0; }
.cat-picker:not(.is-enhanced) [data-subs-empty] { display: none; }
@media (max-width: 720px) { .cat-picker { grid-template-columns: 1fr; } }
.tag-sub { text-decoration: none; }
.tag-sub:hover { text-decoration: underline; }

/* Directory distance search */
.searchbar .radius-select { flex: 0 1 150px; }
.searchbar .state-select { flex: 0 1 170px; }
@media (max-width: 640px) { .searchbar .radius-select, .searchbar .state-select { flex: 1 1 140px; } .searchbar .btn[type=submit] { flex: 1 1 100%; } }
.near-status { margin: 6px 0 0; min-height: 0; color: var(--ink-soft); }
.near-status:empty { display: none; }
.loc-bar-warn { background: var(--maize-tint); }
.geo-note { margin: 4px 0 0; }
.distance { white-space: nowrap; font-weight: 600; color: var(--btn); }

/* Category icons uploaded as images (shown where the emoji would be, at about its size) */
.cat-img { display: inline-block; width: 1.2em; height: 1.2em; object-fit: contain; vertical-align: -0.22em; }
.biz-logo .cat-img { width: 58%; height: 58%; vertical-align: middle; object-fit: contain; background: transparent; }
.chip .cat-img { margin-right: .1em; }
/* Admin → Categorías: emoji, image and upload in the icon cell */
.cat-icon-cell { min-width: 150px; }
.cat-icon-row { display: flex; align-items: center; gap: .4rem; }
.cat-img-preview { width: 32px; height: 32px; flex: none; border-radius: 6px; background: repeating-conic-gradient(#0000000d 0 25%, transparent 0 50%) 0 0 / 10px 10px; }
.cat-file { position: relative; display: block; margin-top: .3rem; cursor: pointer; }
.cat-file > span { font-weight: 600; color: var(--leaf); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.cat-file:hover > span { color: var(--leaf-deep); }
.cat-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cat-file input[type=file]:focus-visible + em, .cat-file:focus-within > span { outline: 2px solid var(--leaf); outline-offset: 2px; }
.cat-file em { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; color: var(--ink-soft); }
.cat-file.has-file > span { color: var(--cherry); }
.cat-remove { display: flex; align-items: center; gap: .35rem; margin-top: .25rem; font-weight: 400; white-space: nowrap; }
.cat-remove input[type=checkbox] { width: auto; margin: 0; }
.cat-add .cat-file { display: inline-block; margin-top: 0; align-self: center; }
