/* Storefront (2026): a template for directories of shops and stores. Teal and amber on warm white,
   a search-first header, departments A to Z on the home page, store cards. System fonts only. */
:root {
  --ink: #17252a; --muted: #5d6b70; --line: #e6e1d7; --ground: #faf8f4; --card: #fff;
  --teal: #0f766e; --teal-dark: #0b5953; --teal-ink: #0a3d39; --mint: #e5f3f0;
  --amber: #f59e0b; --amber-dark: #b45309; --amber-soft: #fff6e5;
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.6 var(--font); color: var(--ink); background: var(--ground); }
body.sf { display: flex; flex-direction: column; min-height: 100vh; }
body.sf > * { width: 100%; }
.sf-main { flex: 1 0 auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--amber-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; color: var(--teal-ink); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* header */
.sf-head { background: var(--card); border-bottom: 1px solid var(--line); }
.sf-bar { display: flex; align-items: center; gap: 14px 22px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.sf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-ink); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.sf-brand:hover { color: var(--teal-ink); text-decoration: none; }
.sf-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--teal); color: #fff; font-size: 20px; font-weight: 800; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); text-transform: uppercase; }
.sf-search { flex: 1 1 380px; display: flex; align-items: center; gap: 0; border: 2px solid var(--teal); border-radius: 999px; background: var(--card); padding-left: 14px; overflow: hidden; }
.sf-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.sf-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 16px var(--font); padding: 11px 10px; background: transparent; color: var(--ink); }
.sf-search button { border: 0; background: var(--teal); color: #fff; font: 700 15px var(--font); padding: 12px 22px; cursor: pointer; }
.sf-search button:hover { background: var(--teal-dark); }
.sf-search:focus-within { box-shadow: 0 0 0 4px rgba(15, 118, 110, .15); }
.btn-post { display: inline-block; background: var(--amber); color: #3a2300 !important; font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.btn-post:hover { background: #fbbf24; text-decoration: none; }
.sf-nav { background: var(--teal-ink); }
.sf-nav-in { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; min-height: 44px; font-size: 14.5px; }
.sf-nav a { color: #d6ece8; font-weight: 600; }
.sf-nav a:hover { color: #fff; text-decoration: none; }
.sf-all { display: inline-flex; align-items: center; gap: 7px; color: #fff !important; background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 8px; margin-right: 6px; }
.sf-all svg { width: 17px; height: 17px; }
.sf-main { padding-top: 26px; padding-bottom: 40px; }

/* home */
.sf-hero { background: linear-gradient(135deg, var(--teal-ink), var(--teal) 70%); color: #e2f2ef; border-radius: 20px; padding: 34px 36px; margin-bottom: 22px; position: relative; overflow: hidden; }
.sf-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.55), transparent 65%); }
.sf-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; position: relative; }
.sf-hero p { margin: 0; font-size: 18px; max-width: 60ch; position: relative; }
.sf-az { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 22px; position: sticky; top: 0; z-index: 3; box-shadow: 0 6px 16px -12px rgba(10, 61, 57, .4); }
.sf-az-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.sf-az a { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; background: var(--mint); color: var(--teal-ink); font-weight: 800; font-size: 14px; }
.sf-az a:hover { background: var(--teal); color: #fff; text-decoration: none; }
.sf-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sf-dep { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; display: flex; flex-direction: column; scroll-margin-top: 70px; transition: border-color .15s, box-shadow .15s; }
.sf-dep:hover { border-color: #cfc7b8; box-shadow: 0 10px 24px -18px rgba(10, 61, 57, .45); }
.sf-dep-head { display: flex; align-items: center; gap: 12px; color: var(--teal-ink); margin-bottom: 8px; }
.sf-dep-head:hover { text-decoration: none; }
.sf-dep-head:hover .catname { color: var(--teal); text-decoration: underline; }
.sf-init { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; font-weight: 800; font-size: 19px; text-transform: uppercase; }
.catname { font-weight: 800; font-size: 17px; line-height: 1.3; }
.sf-dep .sublist { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14.5px; }
.sf-dep .sublist li { padding: 3px 0; border-bottom: 1px dashed #eee9df; }
.sf-dep .sublist li:last-child { border-bottom: 0; }
.sf-dep .sublist a { color: var(--ink); }
.sf-dep .sublist a:hover { color: var(--teal); }
.sf-dep-all { margin-top: auto; font-size: 14px; font-weight: 700; }
.c1 .sf-init { background: #e5f3f0; color: #0b5953; }
.c2 .sf-init { background: #fff1d6; color: #92400e; }
.c3 .sf-init { background: #fde4ea; color: #9f1239; }
.c4 .sf-init { background: #e6e9fb; color: #3730a3; }
.c5 .sf-init { background: #e3f6e8; color: #166534; }
.c6 .sf-init { background: #ffe8dc; color: #9a3412; }
.c7 .sf-init { background: #e0f2fe; color: #075985; }
.c8 .sf-init { background: #f3e8fb; color: #6b21a8; }

/* listing pages (templates/_shared/category_page.tpl) */
.pagehead h1 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 6px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 18px; }
.panel.notice { background: var(--amber-soft); border-color: #f6d9a3; }
.panel.empty { text-align: center; padding: 28px 18px; }
.panel.empty p { color: var(--muted); }
.catdesc { margin: 0 0 18px; color: var(--muted); font-size: 16.5px; max-width: 75ch; }
.sec { font-size: 19px; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.subgrid { list-style: none; margin: 0 0 8px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); columns: 4 210px; column-gap: 26px; }
.subgrid li { break-inside: avoid; padding: 5px 0; border-bottom: 1px dashed #eee9df; font-size: 15px; }
.subgrid a { color: var(--ink); font-weight: 600; }
.subgrid a:hover { color: var(--teal); }
.count { color: var(--muted); font-size: .85em; font-weight: 400; }
.cattree { font-size: 15px; }
.cattree-path { overflow: hidden; color: var(--muted); }
.cattree-path strong { color: var(--teal-ink); }
.cattree-path .sep { color: #b6aea0; margin: 0 7px; }
.cattree .addhere { float: right; background: var(--amber-soft); color: var(--amber-dark); border: 1px solid #f6d9a3; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; }
.cattree .addhere:hover { background: var(--amber); color: #3a2300; text-decoration: none; }
.cattree-others { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cattree-others summary { cursor: pointer; color: var(--teal); font-weight: 700; font-size: 14.5px; }
.cattree-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cattree-list a { padding: 3px 11px; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--ink); }
.cattree-list a:hover { background: var(--mint); border-color: #b9ddd6; text-decoration: none; }

/* store cards (link.tpl, spotlight.tpl) */
.listing { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 12px; }
.sf-store { display: flex; gap: 16px; align-items: flex-start; }
.sf-av { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--mint); color: var(--teal-ink); font-weight: 800; font-size: 22px; text-transform: uppercase; border: 1px solid #cfe7e2; }
.sf-store-body { flex: 1; min-width: 0; }
.listing h3 { margin: 0; font-size: 18px; }
.listing h3 a { color: var(--teal-ink); }
.listing h3 a:hover { color: var(--teal); }
.listing-url { font-size: 13.5px; color: var(--teal); word-break: break-all; margin-top: 1px; }
.listing p { margin: 6px 0 8px; color: #3c4a4f; font-size: 15px; }
.sf-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.listing-more { font-size: 14px; font-weight: 700; }
.listing-bizpage { display: inline-block; font-size: 14px; font-weight: 700; }
.listing.premium { border: 2px solid var(--amber); background: linear-gradient(180deg, var(--amber-soft), var(--card) 60%); }
.listing.premium .sf-av { background: var(--amber); color: #3a2300; border-color: var(--amber); }
.badge { float: right; margin-left: 10px; background: var(--amber); color: #3a2300; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.listcount { font-size: 14px; color: var(--muted); margin: 12px 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pager a, .pager .current { display: inline-block; min-width: 38px; text-align: center; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-weight: 600; }
.pager a:hover { border-color: var(--teal); text-decoration: none; }
.pager .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* forms and pages (submit, contact, payment, details) */
.panel input[type="text"], .panel input[type="email"], .panel input[type="url"], .panel input[type="password"], .panel input:not([type]), .panel textarea, .panel select {
  font: 15px var(--font); color: var(--ink); background: var(--card); border: 1px solid #d3ccbf; border-radius: 8px; padding: 9px 11px; max-width: 100%; }
.panel input:focus, .panel textarea:focus, .panel select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.panel textarea { width: 100%; max-width: 620px; }
.panel input[type="submit"], .panel .submit { background: var(--teal); color: #fff; border: 0; border-radius: 999px; font: 700 15px var(--font); padding: 10px 26px; cursor: pointer; }
.panel input[type="submit"]:hover, .panel .submit:hover { background: var(--teal-dark); }
.panel ul { margin: 6px 0 12px 20px; padding: 0; }
.agree-box { margin: 14px 0 4px; padding: 10px 12px; background: var(--ground); border: 1px solid var(--line); border-radius: 8px; }
.agree-box label { cursor: pointer; }
.agree-error { color: #b91c1c; font-weight: 700; }
.renew-link { margin: 12px 0; padding: 10px 12px; background: var(--ground); border: 1px solid var(--line); border-radius: 8px; }
.premium-box { margin: 4px 0 10px 26px; padding: 12px 14px; border: 1px solid #f6d9a3; background: var(--amber-soft); border-radius: 10px; max-width: 640px; }
.premium-perks { margin: 0 0 8px 18px; padding: 0; }
.premium-perks li { margin: 2px 0; }
.premium-preview .pp-label { font-size: 12px; color: var(--amber-dark); margin-bottom: 4px; font-weight: 700; }
.premium-preview .listing { margin-bottom: 0; }
.premium-preview .listing h3 a { cursor: default; text-decoration: none; }
.bizpage-addon { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #f6d9a3; }
.bizpage-addon label { cursor: pointer; }
.bizpage-addon .premium-perks { margin-top: 6px; }
.bizpage-offer { padding: 12px 14px; border: 1px solid #f6d9a3; background: var(--amber-soft); border-radius: 10px; }
.home-intro { margin: 0 0 18px; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.catblock { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.sublist { list-style: none; padding: 0; margin: 6px 0 0; }
.legal h3 { margin-top: 24px; }
.legal p, .legal li { color: #3c4a4f; }

/* footer */
.sf-foot { background: var(--teal-ink); color: #b9d6d1; margin-top: 30px; }
.sf-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 30px; padding-top: 26px; padding-bottom: 26px; font-size: 14.5px; }
.sf-foot .sf-brand { color: #fff; font-size: 18px; }
.sf-foot .sf-logo { width: 32px; height: 32px; font-size: 16px; background: var(--amber); color: #3a2300; }
.sf-foot p { margin: 0; }
.sf-copy { margin-top: 6px !important; font-size: 13.5px; }
.sf-foot a { color: #fff; }
.sf-foot a:hover { color: var(--amber); }

@media (max-width: 760px) {
  .sf-bar { gap: 10px; }
  .sf-search { order: 3; flex-basis: 100%; }
  .btn-post { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .sf-hero { padding: 24px 22px; border-radius: 16px; }
  .sf-az { position: static; }
  .cattree .addhere { float: none; display: table; margin: 0 0 8px; }
  .sf-dep .sublist li:nth-child(n+4) { display: none; }
  .sf-dep .sublist li:nth-child(3) { border-bottom: 0; }
  .sf-av { width: 42px; height: 42px; font-size: 18px; border-radius: 12px; }
  .listing { padding: 14px; }
  .badge { float: none; display: inline-block; margin: 0 0 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* adverts (core markup): match the palette */
.sf .wds-ad-text { border-color: var(--line); border-radius: var(--radius); background: var(--card); }
.sf .wds-ad-title { color: var(--teal-ink); }
.sf .wds-ad-host { color: var(--teal); }
