/* CXZ Community — warm, everyday spaces for people and their stories. */
:root {
  color-scheme: light;
  --page: #f7f6f2;
  --paper: #ffffff;
  --ink: #2c332e;
  --muted: #687261;
  --subtle: #7b8575;
  --line: #e9e9e2;
  --accent: #e8683d;
  --accent-dark: #d5552c;
  --peach: #fff0e7;
  --sage: #e9eee2;
  --green: #49624e;
  --sand: #f1ecd9;
  --radius: 16px;
  --shadow: 0 8px 28px rgb(44 51 46 / 5%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { border: 0; background: none; }
button, a { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #d97c4b; }
button:focus:not(:focus-visible) { outline: none; }
svg { display: block; flex-shrink: 0; }
img { display: block; max-width: 100%; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
p { overflow-wrap: anywhere; }
::selection { background: #f8ceb7; color: var(--ink); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: -70px; left: 20px; padding: 11px 16px; border-radius: 8px; background: var(--ink); color: white; font-size: 13px; }
.skip-link:focus-visible { top: 12px; }

/* Navigation */
.site-header { height: 76px; position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-align: left; padding: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: white; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-copy { display: flex; flex-direction: column; gap: 0; }
.brand-copy strong { font-size: 20px; line-height: 1.2; letter-spacing: -.7px; font-weight: 800; }
.brand-copy > span { font-size: 10px; color: #92978d; letter-spacing: 1.2px; line-height: 1.9; }
.brand-copy .brand-dot { color: var(--accent); font-size: inherit; letter-spacing: inherit; line-height: inherit; }
.header-nav { display: flex; align-self: stretch; align-items: stretch; gap: 27px; margin-left: 15px; }
.nav-link { position: relative; padding: 0 1px; color: #687261; font-size: 14px; white-space: nowrap; transition: color .18s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active { font-weight: 650; }
.nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 22px; height: 3px; border-radius: 3px 3px 0 0; transform: translateX(-50%); background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; max-width: 100%; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; line-height: 1.5; font-weight: 600; white-space: normal; overflow-wrap: anywhere; transition: background .18s, box-shadow .18s, transform .18s; }
.button svg { width: 16px; height: 16px; }
.button.primary { color: white; background: #c94e27; }
.button.primary:hover { background: #af421f; box-shadow: 0 4px 12px rgb(232 104 61 / 15%); }
.button.secondary { border-color: var(--line); background: white; color: #686f64; }
.button.secondary:hover { background: #f6f7f2; border-color: #d6dbd0; }
.button:active { transform: translateY(1px); }
.button.full-width, .full-width { width: 100%; }
.avatar-button { width: 36px; height: 36px; margin-left: 4px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #eee9db; color: #797260; font-weight: 700; font-size: 12px; border: 2px solid white; box-shadow: 0 0 0 1px var(--line); }
.avatar-button svg { width: 18px; height: 18px; }
.search-strip { max-width: 1440px; margin: 0 auto; padding: 22px 32px 25px; display: flex; align-items: center; gap: 12px; }
.search-box { display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; flex: 1; padding: 0 14px; border: 1px solid var(--line); background: white; border-radius: 10px; color: #8e9389; transition: border-color .18s, box-shadow .18s; }
.search-box:focus-within { border-color: #d9bca7; box-shadow: 0 0 0 3px rgb(232 104 61 / 7%); }
.search-box svg { width: 17px; height: 17px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); padding: 10px 0; font-size: 13px; }
.search-box input::placeholder { color: #788270; }
.search-box kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; padding: 2px 5px; flex-shrink: 0; border: 1px solid #e9eae4; border-radius: 5px; background: #fafbf8; color: #788270; font-family: inherit; font-size: 10px; }
.location-select { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #707969; }
.location-select svg { width: 16px; height: 16px; }
.location-select select { min-width: 82px; height: 100%; border: 0; background: transparent; font-size: 12px; color: #68715f; cursor: pointer; }
.preview-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #e5e7dc; border-radius: 6px; color: #6d775f; background: #f0f2e8; white-space: nowrap; font-size: 11px; letter-spacing: .4px; }
.preview-pill > span { width: 5px; height: 5px; border-radius: 50%; background: #a3b18a; }

/* Three-column community layout */
.page-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr) 280px; align-items: start; gap: 26px; max-width: 1440px; margin: 0 auto; padding: 0 32px 40px; }
.left-sidebar { position: sticky; top: 101px; min-width: 0; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 12px; color: #737e68; font-size: 11px; font-weight: 600; letter-spacing: 2px; }
.sidebar-heading > span { font-size: 9px; color: #869078; letter-spacing: 1px; }
.category-list { display: flex; flex-direction: column; gap: 5px; }
.category-button { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; width: 100%; min-height: 62px; gap: 10px; padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; text-align: left; transition: background .18s, border-color .18s; }
.category-button:hover { background: #eeefe8; }
.category-button.active { background: white; border-color: #eae7df; box-shadow: 0 2px 6px rgb(53 58 43 / 2%); }
.icon-tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e9eede; color: #88996c; }
.icon-tile svg { width: 17px; height: 17px; }
.category-button:nth-child(2) .icon-tile { color: #bb9570; background: #f0e9dc; }
.category-button:nth-child(3) .icon-tile { color: #869dbc; background: #e8edf2; }
.category-button:nth-child(4) .icon-tile { color: #b38d84; background: #f2e6e0; }
.category-button:nth-child(5) .icon-tile { color: #a393b0; background: #ece6ef; }
.category-button:nth-child(6) .icon-tile { color: #6d998c; background: #e2eee6; }
.category-button.active .icon-tile { color: var(--accent); background: #fff0e5; }
.category-name { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.category-name strong { font-size: 14px; font-weight: 550; }
.category-name small { color: #788270; font-size: 10px; letter-spacing: .3px; line-height: 1.4; }
.category-button.active .category-name strong { color: var(--accent); font-weight: 650; }
.category-count { color: #737e68; font-size: 11px; font-variant-numeric: tabular-nums; }
.category-button.active .category-count { color: #b96943; }
.sidebar-note { position: relative; margin-top: 31px; padding: 19px 17px 17px; overflow: hidden; border-radius: 13px; border: 1px solid #e3e7d8; background: #edf0e6; }
.small-label { display: block; color: #97a084; font-size: 9px; font-weight: 650; letter-spacing: 1.4px; margin-bottom: 10px; }
.sidebar-note h3 { margin-bottom: 8px; font-size: 14px; font-weight: 650; line-height: 1.7; }
.sidebar-note p { margin-bottom: 16px; color: #687261; font-size: 12px; line-height: 1.9; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; font-size: 12px; line-height: 1.7; font-weight: 600; color: #637652; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button svg { width: 14px; height: 14px; }
.sidebar-bottom { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 18px 12px; color: #7d8772; font-size: 11px; line-height: 1.8; }
.sidebar-bottom button { padding: 0; color: inherit; font-size: inherit; }
.sidebar-bottom button:hover { color: #68715f; }
.main-content { min-width: 0; }

/* Welcoming feature cards */
.hero-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; margin-bottom: 28px; }
.hero-card { position: relative; min-width: 0; overflow: hidden; min-height: 220px; padding: 24px 23px; border-radius: var(--radius); }
.hero-main { background: #f3e8d9; }
.eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 9px; font-weight: 650; letter-spacing: 1.4px; line-height: 1.5; }
.hero-main .eyebrow { color: #b5926e; }
.hero-main h1 { position: relative; z-index: 1; margin: 0 0 10px; max-width: 72%; font-size: clamp(23px, 2.05vw, 30px); line-height: 1.38; letter-spacing: -.8px; font-weight: 760; }
.hero-main h1 em { color: var(--accent); font-style: normal; }
.hero-main h1 > span { color: var(--accent); }
.hero-main p { position: relative; z-index: 1; max-width: 64%; margin-bottom: 19px; color: #766958; font-size: 12px; line-height: 1.9; }
.hero-main .button { position: relative; z-index: 2; max-width: 100%; min-height: 32px; padding: 7px 11px; font-size: 12px; border-radius: 7px; }
.hero-art { position: absolute; width: 47%; max-width: 200px; right: -6px; bottom: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: auto; }
.hero-small { padding: 24px 21px; background: #e9edde; }
.hero-small .eyebrow { color: #899979; }
.hero-small h2 { position: relative; z-index: 1; margin: 0 0 10px; max-width: 95%; font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: -.5px; }
.hero-small p { position: relative; z-index: 1; margin-bottom: 17px; max-width: 95%; color: #687261; font-size: 12px; line-height: 1.9; }
.hero-small .text-button { position: relative; z-index: 1; color: #6d7b56; font-size: 12px; }
.sun-flower { position: absolute; right: 8px; bottom: -8px; width: 78px; height: 78px; color: #cdd6b5; font-size: 94px; line-height: 1; pointer-events: none; }
.sun-flower svg { width: 100%; height: 100%; }

/* Feed */
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.feed-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 11px; min-width: 0; }
.feed-title h2 { margin: 0; font-size: 18px; font-weight: 720; letter-spacing: -.3px; white-space: nowrap; }
.feed-title p { margin: 0; font-size: 12px; color: #687261; }
.feed-total { color: #737e68; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sort-select { max-width: 118px; border: 0; padding: 5px 0 5px 8px; background: transparent; color: #687261; font-size: 12px; cursor: pointer; }
.feed-tabs { display: flex; align-items: center; gap: 19px; margin-bottom: 16px; padding: 0 0 10px; border-bottom: 1px solid #e5e7dd; overflow-x: auto; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab { position: relative; flex-shrink: 0; padding: 5px 0; color: #687261; font-size: 14px; white-space: nowrap; }
.feed-tab:hover { color: var(--ink); }
.feed-tab.active { color: var(--accent); font-weight: 650; }
.feed-tab.active::after { position: absolute; content: ""; height: 2px; bottom: -11px; left: 0; width: 100%; background: var(--accent); border-radius: 2px; }
.feed-tab span { margin-left: 4px; font-size: 11px; }
.filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 0 0 13px; border: 1px solid #e7e5d9; border-radius: 9px; color: #687261; background: #f3f0e5; font-size: 12px; }
.filter-summary:empty { display: none; }
.filter-summary button { font-size: 12px; padding: 0; color: var(--accent); white-space: nowrap; }
.post-list { display: flex; flex-direction: column; gap: 13px; }
.post-card { position: relative; padding: 20px 22px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); transition: border-color .18s, box-shadow .18s; }
.post-card:hover { border-color: #d9dece; box-shadow: 0 3px 14px rgb(44 51 46 / 3%); }
.post-author { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; min-height: 31px; }
.author-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #899773; background: #ebeedf; font-size: 12px; font-weight: 650; flex-shrink: 0; }
.author-avatar span { line-height: 1; }
.author-avatar svg { width: 17px; height: 17px; }
.post-card:nth-child(3n + 2) .author-avatar { color: #b38f7f; background: #f3e8e0; }
.post-card:nth-child(3n) .author-avatar { color: #789893; background: #e7eeeb; }
.author-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.author-copy strong { font-size: 12px; font-weight: 600; }
.author-copy small { color: #737e68; font-size: 11px; line-height: 1.5; }
.post-context { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #737e68; font-size: 11px; flex-shrink: 0; }
.post-context svg { width: 12px; height: 12px; }
.category-label { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 5px; background: #f1f4e9; color: #6d7d57; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.category-label.cat-jobs { color: #82733d; background: #f7f3e5; }
.category-label.cat-housing { color: #52767e; background: #edf4f3; }
.category-label.cat-market { color: #9a6948; background: #fbf0e7; }
.category-label.cat-meetup { color: #846a88; background: #f3edf3; }
.category-label.cat-help { color: #5c7f61; background: #edf5ed; }
.post-card .author-avatar.avatar-life, .author-avatar.avatar-life { background: #e7eddd; color: #8b9b76; }
.post-card .author-avatar.avatar-jobs, .author-avatar.avatar-jobs { background: #efebd6; color: #a19465; }
.post-card .author-avatar.avatar-housing, .author-avatar.avatar-housing { background: #e0ece9; color: #759990; }
.post-card .author-avatar.avatar-market, .author-avatar.avatar-market { background: #f2e5d7; color: #b28a65; }
.post-card .author-avatar.avatar-meetup, .author-avatar.avatar-meetup { background: #ece2ec; color: #a586a2; }
.post-card .author-avatar.avatar-help, .author-avatar.avatar-help { background: #e4eedc; color: #86a070; }
.featured-dot { color: #d89468; font-size: 14px; }
.post-main h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; line-height: 1.6; letter-spacing: -.15px; }
.post-open { display: block; width: 100%; padding: 0; text-align: left; font-size: inherit; font-weight: inherit; line-height: inherit; }
.post-open:hover { color: var(--accent-dark); }
.post-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 13px; color: #687261; font-size: 14px; line-height: 1.9; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 15px; }
.tag-button { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 4px; background: #f3f5ee; color: #6d775f; font-size: 12px; line-height: 1.8; transition: color .18s, background .18s; }
.tag-button:hover { color: var(--green); background: #e8efdf; }
.tag-button:nth-child(2n) { background: #fbf3eb; color: #8b745b; }
.post-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 25px; padding-top: 10px; border-top: 1px solid #f2f3ed; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; color: #737e68; font-size: 12px; }
.post-meta > span, .post-meta > button { display: inline-flex; align-items: center; gap: 4px; }
.post-meta button { padding: 0; color: inherit; font-size: inherit; }
.post-meta svg { width: 13px; height: 13px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px; padding: 4px 5px; border-radius: 5px; color: #737e68; font-size: 12px; }
.icon-button svg { width: 15px; height: 15px; }
.icon-button:hover { color: var(--accent); background: #fff6ef; }
.icon-button.active { color: var(--accent); }
.icon-button.active svg { fill: #ffe0ce; }
.sample-label { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 2px 6px; border: 1px solid #e0e5d5; border-radius: 4px; background: #f0f2e8; white-space: nowrap; color: #6d775f; font-size: 11px; line-height: 1.7; font-weight: 400; }
.post-card > .sample-label { position: absolute; right: 22px; top: 19px; }
.post-cover { position: relative; width: 100%; min-height: 126px; margin: 12px 0 15px; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; border-radius: 8px; background: #e8ede1; color: #869876; }
.post-cover svg { max-width: 100%; height: 126px; }
.post-cover span { position: relative; z-index: 1; font-size: 13px; font-weight: 600; }
.empty-state { padding: 52px 24px; text-align: center; border: 1px dashed #d9decc; border-radius: 13px; background: #fffefa; color: #687261; }
.empty-state > svg { width: 35px; height: 35px; margin: 0 auto 14px; color: #a6b098; }
.empty-state h3 { margin: 0 0 8px; color: #5e6a54; font-size: 16px; }
.empty-state p { margin: 0 auto 18px; max-width: 300px; font-size: 13px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 23px; }
.guide-card { display: block; padding: 18px 19px; text-align: left; border: 1px solid #e3e8da; border-radius: 12px; background: #edf1e5; }
.guide-card:nth-child(2n) { background: #f3eee3; border-color: #eae3d5; }
.guide-card h3 { margin: 6px 0 5px; font-size: 14px; font-weight: 650; }
.guide-card p { margin: 0; color: #687261; font-size: 12px; line-height: 1.8; }
.guide-card > svg { width: 19px; height: 19px; margin-bottom: 10px; color: #94a278; }
.guide-card .text-button { margin-top: 10px; font-size: 12px; }

/* Neighbourhood sidebar */
.right-sidebar { display: flex; flex-direction: column; gap: 19px; min-width: 0; }
.welcome-card { position: relative; padding: 25px 23px 22px; overflow: hidden; border-radius: var(--radius); background: #4f654f; color: #fffef7; }
.welcome-card .eyebrow { color: #bdc8ad; font-size: 9px; margin-bottom: 13px; }
.welcome-card h2 { margin-bottom: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.3px; line-height: 1.5; }
.welcome-card p { margin-bottom: 15px; color: #e0e7d7; font-size: 12px; line-height: 1.9; }
.welcome-faces { display: flex; align-items: center; padding-left: 0; margin: 0 0 17px; }
.welcome-faces > span { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; border: 2px solid #4f654f; border-radius: 50%; background: #e1d8ba; color: #807253; font-size: 10px; font-weight: 600; }
.welcome-faces > span:first-child { margin-left: 0; }
.welcome-faces > span:nth-child(2) { background: #dcc4ad; color: #936c4c; }
.welcome-faces > span:nth-child(3) { background: #bfcdab; color: #6a7f4c; }
.welcome-faces > span:nth-child(4) { background: #c8d6d2; color: #6c857b; }
.welcome-faces > small { margin-left: 9px; color: #d6e0ca; font-size: 11px; }
.welcome-card .button.primary { min-height: 35px; padding: 8px 14px; background: #f7f1df; color: #566449; border-radius: 7px; font-size: 12px; }
.welcome-card .button.primary:hover { background: white; box-shadow: 0 3px 12px rgb(0 0 0 / 8%); }
.welcome-card > small { display: block; margin-top: 11px; color: #d6e0ca; text-align: center; font-size: 11px; line-height: 1.7; }
.sidebar-card { padding: 20px 20px 10px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.section-title h3 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: .1px; }
.section-title > span { padding: 2px 5px; border-radius: 4px; background: #fbf4e9; color: #c2a479; font-size: 9px; }
.section-title > button { padding: 0; color: #687261; font-size: 12px; }
.topic-list { display: flex; flex-direction: column; }
.topic-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) 12px; align-items: center; gap: 10px; width: 100%; min-height: 45px; padding: 10px 0; border-bottom: 1px solid #f0f2eb; text-align: left; }
.topic-row:last-child { border-bottom: 0; }
.topic-number { color: #869475; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.topic-row:nth-child(-n + 3) .topic-number { color: #d19b74; }
.topic-name { color: #687261; font-size: 12px; line-height: 1.7; }
.topic-arrow { color: #869475; font-size: 12px; }
.topic-row:hover .topic-name, .topic-row:hover .topic-arrow { color: var(--accent-dark); }
.guide-list { display: flex; flex-direction: column; }
.guide-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px 0; text-align: left; border-bottom: 1px solid #f0f2eb; }
.guide-row:last-child { border-bottom: 0; }
.guide-icon { display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 33px; border-radius: 9px; background: #eff2e8; color: #9bac82; }
.guide-icon svg { width: 16px; height: 16px; }
.guide-row:nth-child(2) .guide-icon { color: #bbab87; background: #f6f1e5; }
.guide-row:nth-child(3) .guide-icon { color: #96aaa3; background: #edf2ef; }
.guide-row > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide-row strong { color: #53624a; font-size: 12px; font-weight: 550; }
.guide-row small { color: #687261; font-size: 12px; }
.guide-row:hover strong { color: var(--accent-dark); }
.community-note { margin: 0; padding: 0 13px; color: #687261; font-size: 12px; line-height: 1.9; text-align: center; }
.community-note strong { font-weight: 500; color: #8d987e; }
.community-note > [data-icon] { display: flex; justify-content: center; margin: 0 0 10px; color: #b1bba2; }
.community-note > [data-icon] svg { width: 22px; height: 22px; }
.community-note p { margin-bottom: 7px; }
.community-note button { padding: 2px 4px; font-size: 12px; color: #687261; }
.community-note button:hover { color: var(--green); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 1376px; margin: 0 auto; padding: 20px 0 26px; border-top: 1px solid #e7e9de; color: #737e68; font-size: 11px; line-height: 1.8; }
.site-footer p { margin: 0; }
.site-footer button { padding: 0; color: inherit; font-size: inherit; }
.site-footer button:hover { color: #79866b; }
.mobile-nav, .mobile-compose { display: none; }

/* Dialogs and creation flows */
.modal { width: min(640px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 56px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 25px 100px rgb(28 38 28 / 20%); }
.modal:has(.modal-shell.wide) { width: min(760px, calc(100vw - 36px)); }
.modal::backdrop { background: rgb(37 45 35 / 42%); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .2s ease-out both; }
.modal-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 56px); min-width: 0; }
.modal-heading { position: relative; flex-shrink: 0; padding: 25px 28px 21px; border-bottom: 1px solid var(--line); }
.modal-heading h2 { padding-right: 34px; margin-bottom: 6px; font-size: 21px; line-height: 1.5; font-weight: 700; letter-spacing: -.4px; }
.modal-heading p { margin: 0; padding-right: 25px; color: #687261; font-size: 12px; line-height: 1.8; }
.close-button { position: absolute; right: 20px; top: 22px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #97a38b; background: #f2f4ed; font-size: 22px; line-height: 1; }
.close-button svg { width: 17px; height: 17px; }
.close-button:hover { background: #e7edde; color: var(--ink); }
.modal-body { overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 28px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-shrink: 0; padding: 17px 28px; border-top: 1px solid var(--line); background: #fafbf7; }
.composer-form { display: flex; flex-direction: column; gap: 18px; }
.modal-shell > .composer-form { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field > span { color: #5f6c53; font-size: 12px; font-weight: 600; }
.form-field > span > small { margin-left: 5px; font-weight: 400; color: #737e68; font-size: 11px; }
.form-field input, .form-field select, .form-field textarea, .comment-form textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #e1e6d8; border-radius: 8px; background: #fffefa; color: var(--ink); font-size: 12px; line-height: 1.7; outline: none; transition: border-color .18s, box-shadow .18s; }
.form-field input::placeholder, .form-field textarea::placeholder, .comment-form textarea::placeholder { color: #7b8575; }
.form-field select { cursor: pointer; min-height: 43px; }
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .comment-form textarea:focus { border-color: #bac4a8; box-shadow: 0 0 0 3px rgb(119 146 80 / 9%); }
.field-help { display: block; margin: 0; color: #687261; font-size: 11px; line-height: 1.8; font-weight: 400; }
.form-error { margin: 0; padding: 10px 12px; border: 1px solid #efd4c4; border-radius: 7px; background: #fff5ec; color: #bb6949; font-size: 12px; }
.form-error:empty { display: none; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }
.form-actions .field-help { margin-right: auto; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; color: #737e68; font-size: 11px; }
.detail-meta .author-avatar { width: 32px; height: 32px; }
.detail-meta strong { color: #5b6a4e; font-weight: 550; }
.detail-title { margin-bottom: 20px; font-size: 25px; line-height: 1.5; letter-spacing: -.4px; overflow-wrap: anywhere; }
.detail-content { color: #67765a; font-size: 14px; line-height: 2; overflow-wrap: anywhere; }
.detail-content p { margin: 0 0 16px; white-space: pre-wrap; }
.detail-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 23px 0 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-actions .icon-button { min-height: 35px; padding: 7px 12px; border: 1px solid #e4e9db; border-radius: 7px; color: #687261; font-size: 12px; }
.detail-actions .icon-button.active { color: var(--accent); border-color: #f0d4c3; background: #fff6ee; }
.button.secondary.is-liked, .detail-actions .button[aria-pressed="true"] { color: var(--accent); background: #fff5eb; border-color: #f0d4c3; }
.button.secondary.is-liked svg { fill: #ffe4d2; }
.button.secondary.danger { margin-left: auto; color: #b56951; border-color: #ecdacf; background: #fffaf5; }
.button.secondary.danger:hover { background: #fff0e4; }
.comment-section { margin-top: 26px; }
.comment-section h3 { margin: 0 0 20px; font-size: 15px; font-weight: 650; }
.comment-section h3 > span { display: inline-flex; justify-content: center; min-width: 20px; margin-left: 5px; padding: 0 5px; border-radius: 5px; background: #eff3e7; color: #91a17c; font-size: 11px; font-weight: 400; vertical-align: middle; }
.comment-list { display: flex; flex-direction: column; }
.comment { display: flex; gap: 11px; padding: 15px 0; border-bottom: 1px solid #edf0e6; }
.comment:first-child { padding-top: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-body strong { font-size: 12px; font-weight: 600; color: #637653; }
.comment-body p { margin: 5px 0 4px; font-size: 14px; line-height: 1.9; color: #687261; white-space: pre-wrap; }
.comment-body small { color: #737e68; font-size: 11px; }
.comment-body strong small { margin-left: 7px; font-weight: 400; }
.comment-form { margin-top: 22px; }
.comment-form > .form-field + .form-field { margin-top: 14px; }
.comment-form textarea { min-height: 95px; resize: vertical; }
.guide-detail { color: #687261; font-size: 13px; line-height: 2; }
.guide-detail h3 { margin: 23px 0 10px; color: #4e6241; font-size: 16px; }
.guide-detail h3:first-child { margin-top: 0; }
.guide-detail p { margin-bottom: 14px; }
.guide-detail ul, .guide-detail ol { margin: 10px 0 18px; padding-left: 21px; }
.guide-detail li { margin: 5px 0; padding-left: 3px; }
.guide-detail .notice { padding: 15px 17px; border-radius: 9px; background: #f1f4e9; color: #687261; font-size: 12px; }
.guide-lead { padding: 16px 18px; margin: 0 0 25px; border-left: 3px solid #d9c493; border-radius: 0 7px 7px 0; background: #f8f6eb; color: #687261; font-size: 13px; line-height: 1.9; }
.toast { position: fixed; z-index: 100; bottom: 27px; left: 50%; max-width: calc(100vw - 36px); padding: 12px 21px; border: 1px solid #586b4d; border-radius: 10px; background: #3c4e33; color: #fffef4; box-shadow: 0 8px 28px rgb(40 54 28 / 17%); font-size: 12px; line-height: 1.7; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Regional discovery and the first community service categories. */
.category-button .icon-tile.cat-needs { color: #a66542; background: #f7e8dc; }
.category-button .icon-tile.cat-crossborder { color: #547f7c; background: #e4efeb; }
.category-button .icon-tile.cat-friends { color: #8a6b90; background: #eee6f0; }
.category-button.active .icon-tile.cat-needs,
.category-button.active .icon-tile.cat-crossborder,
.category-button.active .icon-tile.cat-friends { color: var(--accent); background: #fff0e5; }
.category-label.cat-needs { color: #a0603d; background: #fbede2; }
.category-label.cat-crossborder { color: #4c7773; background: #e9f2ef; }
.category-label.cat-friends { color: #81628a; background: #f2eaf3; }
.post-card .author-avatar.avatar-needs, .author-avatar.avatar-needs { color: #a0603d; background: #f5e2d4; }
.post-card .author-avatar.avatar-crossborder, .author-avatar.avatar-crossborder { color: #4c7773; background: #dfeee9; }
.post-card .author-avatar.avatar-friends, .author-avatar.avatar-friends { color: #81628a; background: #ece0ee; }

.region-explorer { margin: 0 0 25px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.region-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; margin-bottom: 16px; }
.region-heading > div { min-width: 0; }
.region-heading h2 { margin: 0 0 4px; font-size: 16px; line-height: 1.6; font-weight: 650; letter-spacing: -.2px; }
.region-heading p { margin: 0; color: #687261; font-size: 12px; line-height: 1.8; }
.region-heading #current-region { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 8px; border: 1px solid #e0e6d6; border-radius: 6px; color: #627154; background: #f1f4e9; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.country-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 17px; }
.country-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; max-width: 100%; padding: 7px 13px; border: 1px solid #e5e9dc; border-radius: 8px; color: #687261; background: #f8f9f4; font-size: 12px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.country-tab.active, .country-tab[aria-pressed="true"] { border-color: #e9b79c; color: #a84d2c; background: #fff0e5; font-weight: 650; }
.region-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.region-controls .form-field { min-width: 0; }
.region-controls .form-field > span { font-size: 12px; color: #687261; }
.region-controls .form-field select { min-width: 0; min-height: 42px; padding: 9px 28px 9px 11px; background-color: #fffefa; font-size: 14px; line-height: 1.6; }
.region-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }
.region-chips:empty { display: none; }
.region-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; max-width: 100%; padding: 5px 10px; border: 1px solid #e3e8d9; border-radius: 6px; background: white; color: #687261; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.region-chip.active, .region-chip[aria-pressed="true"] { color: #49624e; background: #e9eee2; border-color: #aab99b; font-weight: 600; }

/* Additional fields belong to the form's existing scrollable body. */
.field-panel { display: flex; flex-direction: column; gap: 15px; min-width: 0; min-inline-size: 0; margin: 0; padding: 17px; border: 1px solid #eadccc; border-radius: 11px; background: #fcf7ee; }
.field-panel[hidden] { display: none; }
.field-panel > legend { padding: 0 5px; color: #886548; font-size: 13px; line-height: 1.7; font-weight: 600; }
.field-panel h3, .field-panel h4 { margin: 0; color: #7b5c42; font-size: 14px; line-height: 1.7; font-weight: 600; }
.field-panel > p { margin: 0; color: #687261; font-size: 12px; line-height: 1.8; }
.field-panel .form-row { margin: 0; min-width: 0; }
.field-panel .form-field { min-width: 0; }
.field-panel .form-field > span { color: #687261; }
.request-fields.field-panel { border-color: #ecd8c4; background: #fcf5eb; }
.crossborder-fields.field-panel { border-color: #d9e7df; background: #f1f7f2; }
.crossborder-fields.field-panel h3, .crossborder-fields.field-panel h4,
.crossborder-fields.field-panel > legend { color: #486e60; }
.field-panel:disabled { border-color: #e0e5d8; background: #f4f5ee; }
.form-field input:disabled, .form-field select:disabled, .form-field textarea:disabled { color: #7b8575; background: #eff2e8; border-color: #dfe5d6; opacity: 1; cursor: not-allowed; }

/* Concrete details make a request easy to scan without competing with its title. */
.post-card.request-card { border-left: 3px solid #d9976c; }
.post-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 13px; }
.fact-pill, .need-status { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 28px; padding: 4px 8px; border: 1px solid #e4e8dc; border-radius: 5px; color: #687261; background: #f6f8f0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.fact-pill svg, .need-status svg { width: 13px; height: 13px; flex-shrink: 0; }
.fact-pill strong { color: #4d5f42; font-weight: 600; }
.need-status { font-weight: 600; }
.need-status::before { content: ""; display: block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.need-status.open { color: #ac592f; border-color: #efd0b8; background: #fff0e3; }
.need-status.resolved { color: #567149; border-color: #d4e1c7; background: #edf4e6; }
.request-summary { margin: 21px 0 23px; padding: 18px; border: 1px solid #e8dfce; border-radius: 11px; background: #fbf8ef; }
.request-summary h3 { margin: 0 0 13px; color: #596447; font-size: 15px; line-height: 1.7; font-weight: 650; }
.request-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.request-summary dl > div { min-width: 0; padding-top: 10px; border-top: 1px solid #e7e3d5; }
.request-summary dt { margin: 0 0 5px; color: #738164; font-size: 12px; line-height: 1.6; }
.request-summary dd { min-width: 0; margin: 0; color: #47573d; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-summary p { margin: 12px 0 0; color: #687261; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-resolve { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 17px; }
.request-resolve button { min-height: 39px; font-size: 12px; }

/* Mid-size layouts keep the feed comfortable before removing its neighbours. */
@media (min-width: 1441px) {
  .hero-main h1 { font-size: 30px; }
}
@media (max-width: 1270px) {
  .header-inner, .search-strip { padding-left: 24px; padding-right: 24px; }
  .header-inner { gap: 24px; }
  .header-nav { gap: 22px; margin-left: 0; }
  .page-shell { padding-left: 24px; padding-right: 24px; gap: 20px; grid-template-columns: 194px minmax(0, 1fr) 246px; }
  .hero-card { padding: 21px 18px; min-height: 214px; }
  .hero-main h1 { font-size: 24px; }
  .hero-small h2 { font-size: 19px; }
  .hero-art { width: 43%; }
  .welcome-card { padding: 22px 19px 19px; }
  .sidebar-card { padding-left: 16px; padding-right: 16px; }
  .site-footer { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 1100px) {
  .page-shell { grid-template-columns: 194px minmax(0, 1fr); gap: 24px; }
  .right-sidebar { display: none; }
  .header-nav { gap: 21px; }
  .header-actions .button.secondary { display: none; }
  .hero-grid { grid-template-columns: 1.6fr 1fr; }
  .hero-card { min-height: 216px; padding: 24px; }
  .hero-main h1 { font-size: 28px; }
  .hero-art { width: 44%; }
  .hero-small h2 { font-size: 21px; }
  .hero-main p, .hero-small p { font-size: 12px; }
  .post-main h3 { font-size: 16px; }
  .post-excerpt { font-size: 14px; }
  .author-copy strong { font-size: 12px; }
}
@media (max-width: 900px) {
  .header-nav { gap: 16px; }
  .header-inner { gap: 23px; }
  .nav-link { font-size: 14px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy > span { font-size: 9px; }
  .search-strip { flex-wrap: wrap; row-gap: 7px; }
  .preview-pill { display: inline-flex; flex: 0 0 100%; justify-content: flex-end; min-height: 18px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .page-shell { grid-template-columns: 172px minmax(0, 1fr); gap: 18px; }
  .category-button { padding: 9px 7px; gap: 8px; grid-template-columns: 32px 1fr auto; }
  .category-count { font-size: 11px; }
  .hero-card { padding: 20px 18px; min-height: 213px; }
  .hero-main h1 { font-size: 24px; }
  .hero-main p { max-width: 70%; font-size: 12px; }
  .hero-small h2 { font-size: 19px; }
  .hero-small p { font-size: 12px; }
  .hero-art { width: 44%; right: -10px; }
  .feed-title { gap: 8px; }
  .feed-title p { font-size: 12px; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 78px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-header { height: 65px; }
  .header-inner { padding: 0 20px; gap: 14px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy > span { font-size: 8px; }
  .header-nav { display: none; }
  .header-actions { gap: 7px; }
  .header-actions .button.primary { min-height: 33px; padding: 7px 11px; font-size: 12px; }
  .avatar-button { width: 32px; height: 32px; margin-left: 3px; }
  .search-strip { padding: 17px 20px 14px; gap: 9px; }
  .search-box { height: 43px; border-radius: 9px; padding: 0 12px; }
  .search-box input { font-size: 13px; }
  .search-box kbd { display: none; }
  .location-select { height: 43px; padding-left: 10px; padding-right: 6px; }
  .location-select select { min-width: 72px; font-size: 12px; }
  .page-shell { display: block; padding: 0 20px 30px; }
  .left-sidebar { position: static; margin: 0 -20px 21px; }
  .sidebar-heading, .sidebar-note, .sidebar-bottom { display: none; }
  .category-list { flex-direction: row; gap: 8px; overflow-x: auto; padding: 2px 20px 8px; scrollbar-width: none; scroll-padding-left: 20px; }
  .category-list::-webkit-scrollbar { display: none; }
  .category-button { display: flex; width: auto; min-height: 41px; flex-shrink: 0; gap: 7px; padding: 7px 12px 7px 8px; border: 1px solid #e7e9df; border-radius: 9px; background: transparent; }
  .category-button.active { border-color: #edc7ad; background: #fff6ed; }
  .icon-tile { width: 26px; height: 26px; border-radius: 7px; }
  .icon-tile svg { width: 14px; height: 14px; }
  .category-name strong { font-size: 14px; white-space: nowrap; }
  .category-name small, .category-count { display: none; }
  .hero-grid { gap: 12px; margin-bottom: 25px; grid-template-columns: 1.7fr 1fr; }
  .hero-card { padding: 22px; min-height: 214px; }
  .hero-main h1 { font-size: 29px; }
  .hero-main p { max-width: 66%; font-size: 12px; }
  .hero-small h2 { font-size: 21px; }
  .hero-small p { font-size: 12px; }
  .hero-art { width: 43%; right: -4px; }
  .feed-title h2 { font-size: 18px; }
  .feed-title p { font-size: 12px; }
  .feed-tab { font-size: 14px; }
  .sort-select { font-size: 12px; }
  .post-card { padding: 20px 21px 14px; }
  .post-excerpt { font-size: 14px; line-height: 1.85; }
  .author-copy small, .post-context, .post-meta { font-size: 12px; }
  .tag-button { font-size: 12px; }
  .site-footer { margin: 0 20px; padding: 17px 0 15px; font-size: 11px; }
  .mobile-nav { position: fixed; z-index: 45; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; min-height: 65px; padding: 4px 10px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #e9ecdf; background: rgb(255 255 255 / 98%); box-shadow: 0 -3px 20px rgb(45 63 28 / 3%); }
  .mobile-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 53px; padding: 6px; color: #687261; font-size: 12px; }
  .mobile-nav > button svg { width: 20px; height: 20px; }
  .mobile-nav > button.active { color: var(--accent); font-weight: 650; }
  .mobile-nav > button.active svg { stroke-width: 2; }
  .mobile-compose { position: fixed; z-index: 44; right: 20px; bottom: calc(83px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--accent); color: white; box-shadow: 0 5px 18px rgb(199 83 43 / 24%); }
  .mobile-compose svg { width: 22px; height: 22px; }
  .mobile-nav > .mobile-compose { position: relative; right: auto; bottom: auto; display: flex; width: auto; height: auto; min-height: 53px; border-radius: 0; color: var(--accent); background: transparent; box-shadow: none; gap: 2px; padding-top: 0; }
  .mobile-nav > .mobile-compose > [data-icon] { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 10px; background: var(--accent); color: white; }
  .mobile-nav > .mobile-compose svg { width: 19px; height: 19px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); width: max-content; }
  .region-explorer { padding: 18px; margin-bottom: 22px; }
  .country-tab, .region-chip { min-height: 44px; }
  .region-controls .form-field select { min-height: 44px; }
}
@media (max-width: 560px) {
  .header-inner { padding-left: 17px; padding-right: 17px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy > span { letter-spacing: .8px; }
  .search-strip { padding: 15px 17px 12px; }
  .search-box { gap: 8px; }
  .search-box input { font-size: 13px; }
  .location-select { gap: 3px; padding-left: 8px; }
  .location-select select { min-width: 62px; max-width: 80px; font-size: 12px; }
  .location-select svg { width: 14px; height: 14px; }
  .page-shell { padding-left: 17px; padding-right: 17px; }
  .left-sidebar { margin-left: -17px; margin-right: -17px; margin-bottom: 16px; }
  .category-list { padding-left: 17px; padding-right: 17px; gap: 7px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); margin-bottom: 25px; }
  .hero-main { min-height: 222px; padding: 23px; }
  .hero-main h1 { max-width: 70%; font-size: 29px; }
  .hero-main p { max-width: 67%; font-size: 12px; }
  .hero-main .eyebrow { font-size: 8px; margin-bottom: 13px; }
  .hero-main .button { font-size: 12px; min-height: 33px; }
  .hero-art { width: 44%; max-width: 178px; right: -4px; }
  .hero-small { display: none; }
  .feed-heading { gap: 6px; margin-bottom: 13px; }
  .feed-title { display: block; }
  .feed-title h2 { font-size: 17px; }
  .feed-title p { margin-top: 3px; font-size: 12px; }
  .sort-select { font-size: 12px; }
  .feed-tabs { gap: 22px; margin-bottom: 14px; }
  .feed-tab { font-size: 14px; padding-top: 4px; }
  .post-list { gap: 12px; }
  .post-card { padding: 17px 16px 12px; border-radius: 12px; }
  .post-author { margin-bottom: 12px; }
  .author-avatar { width: 30px; height: 30px; }
  .author-copy strong { font-size: 12px; }
  .author-copy small, .post-context { font-size: 11px; }
  .post-main h3 { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
  .post-excerpt { font-size: 14px; line-height: 1.9; }
  .post-tags { gap: 5px; margin-bottom: 12px; }
  .tag-button { font-size: 12px; }
  .post-meta { gap: 12px; font-size: 12px; }
  .sample-label { font-size: 11px; }
  .post-card > .sample-label { right: 16px; top: 17px; }
  .guide-grid { gap: 10px; margin-top: 20px; }
  .guide-card { padding: 15px 13px; }
  .guide-card h3 { font-size: 14px; }
  .guide-card p { font-size: 12px; }
  .site-footer { display: block; margin-left: 17px; margin-right: 17px; font-size: 11px; }
  .site-footer > :last-child { margin-top: 5px; }
  .modal, .modal:has(.modal-shell.wide) { width: calc(100vw - 22px); max-height: calc(100dvh - 26px); border-radius: 15px; }
  .modal-shell { max-height: calc(100dvh - 26px); }
  .modal-heading { padding: 22px 20px 17px; }
  .modal-heading h2 { font-size: 19px; }
  .modal-heading p { font-size: 12px; }
  .close-button { right: 14px; top: 18px; }
  .modal-body { padding: 21px 20px 24px; }
  .modal-shell > .composer-form { padding: 21px 20px 24px; }
  .modal-footer { padding: 15px 20px; }
  .form-row { gap: 12px; }
  .form-field input, .form-field select, .form-field textarea, .comment-form textarea { font-size: 16px; }
  .form-field input, .form-field select { padding: 9px 10px; }
  .form-field textarea, .comment-form textarea { font-size: 16px; }
  .field-help { font-size: 11px; }
  .detail-title { font-size: 21px; margin-bottom: 17px; }
  .detail-content { font-size: 14px; }
  .detail-meta { font-size: 11px; }
  .detail-actions { gap: 7px; }
  .detail-actions .icon-button { font-size: 12px; padding: 7px 9px; }
  .region-explorer { padding: 17px 15px; }
  .region-heading { align-items: flex-start; gap: 10px; }
  .region-heading h2 { font-size: 15px; }
  .country-tabs { gap: 6px; }
  .country-tab { flex: 1 1 auto; padding-left: 9px; padding-right: 9px; }
  .region-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .region-controls > .form-field:last-child { grid-column: 1 / -1; }
  .region-controls .form-field select { font-size: 14px; }
  .region-chips { gap: 6px; }
  .field-panel { padding: 14px; gap: 14px; }
  .request-summary { padding: 15px; }
  .request-summary dl { gap: 12px 14px; }
}
@media (max-width: 360px) {
  .header-actions .button.primary { display: none; }
  .hero-main { padding-left: 20px; min-height: 217px; }
  .hero-main h1 { font-size: 26px; }
  .hero-main p { font-size: 12px; }
  .hero-art { width: 43%; }
  .form-row { grid-template-columns: 1fr; }
  .post-context { max-width: 100%; flex-wrap: wrap; justify-content: flex-end; white-space: normal; }
  .region-controls { grid-template-columns: minmax(0, 1fr); }
  .region-controls > .form-field:last-child { grid-column: auto; }
  .request-summary dl { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
