/* Help center */
.hc-head { max-width: 860px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: clamp(48px, 8vw, 96px) 28px; text-align: center; justify-items: center; }
.hc-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.hc-search { width: 100%; max-width: 560px; }
.hc-search input { width: 100%; padding: 16px 20px 16px 48px; border-radius: 99px; border: 1px solid var(--rule); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23756B61' stroke-width='1.8'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4' stroke-linecap='round'/%3E%3C/svg%3E") 18px center no-repeat; font: inherit; color: var(--ink); }
.hc-search input:focus { outline: 2px solid var(--clay); outline-offset: 2px; }
.hc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hc-chips a { padding: 8px 14px; border-radius: 99px; background: var(--paper); color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.hc-chips a:hover { background: var(--clay-faint); color: var(--ink); }
.hc-body { max-width: 860px; display: grid; gap: 40px; padding-bottom: 24px; }
.hc-group { scroll-margin-top: 90px; }
.hc-group { display: grid; gap: 8px; }
.hc-group h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 500; margin-bottom: 8px; }
.hc-h-ic { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--clay-faint); color: var(--clay-text); }
.hc-q { background: var(--paper); border-radius: 18px; padding-inline: 20px; }
.hc-q summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; color: var(--ink); }
.hc-q summary::-webkit-details-marker { display: none; }
.hc-q summary::after { content: "+"; color: var(--clay-text); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.hc-q[open] summary::after { transform: rotate(45deg); }
.hc-q div { padding: 0 0 18px; color: var(--ink-2); max-width: 62ch; }
.hc-more { max-width: 860px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 40px; }
.hc-card { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 20px; background: var(--paper); text-decoration: none; color: inherit; min-width: 0; transition: background-color .2s; }
a.hc-card:hover { background: var(--clay-faint); }
.hc-card b { font: 500 1.15rem/1.3 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink); }
.hc-card span { color: var(--ink-3); font-size: .95rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .hc-more { grid-template-columns: 1fr; } }
.faq-more { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* Community board */
.cm { max-width: 860px; padding-top: clamp(36px, 6vw, 80px); }
.cm-head { display: grid; gap: 12px; margin-bottom: 28px; }
.cm-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.cm-head .lede { max-width: 52ch; color: var(--ink-2); }

/* Composer */
.cm-compose { display: grid; gap: 12px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: 0 1px 2px rgba(61, 47, 36, .06), 0 18px 40px -28px rgba(61, 47, 36, .45); transition: box-shadow .2s; }
.cm-compose:focus-within { box-shadow: 0 1px 2px rgba(61, 47, 36, .08), 0 22px 48px -26px rgba(61, 47, 36, .55); }
.cm-kinds { display: inline-flex; justify-self: start; padding: 3px; border-radius: 99px; background: var(--paper); }
.cm-kinds label { cursor: pointer; position: relative; }
.cm-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.cm-kinds span { display: block; padding: 7px 16px; border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.cm-kinds input:checked + span { background: var(--ink); color: var(--on-ink); }
.cm-kinds input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.cm-compose input[name=title] { font: 400 clamp(1.15rem, 2.2vw, 1.35rem)/1.3 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink); border: 0; background: none; padding: 6px 2px; outline: none; width: 100%; }
.cm-compose input[name=title]::placeholder { color: var(--ink-3); }
.cm-compose textarea, .cm-compose input[name=email] { font: inherit; color: var(--ink); width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--paper); resize: vertical; }
.cm-compose textarea:focus, .cm-compose input[name=email]:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.cm-compose input[name=email]::placeholder, .cm-compose textarea::placeholder { color: var(--ink-3); }
.cm-email { display: grid; gap: 6px; }
.cm-email p { font-size: .84rem; color: var(--ink-3); padding-inline: 4px; }
/* An address reads left to right even on a right-to-left page; the placeholder keeps the page's direction. */
[dir="rtl"] .cm-compose input[name=email]:not(:placeholder-shown) { direction: ltr; text-align: right; }
.cm-more { display: grid; gap: 12px; }
.cm-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cm-send .btn { padding: 12px 22px; margin-inline-start: auto; }
.cm-fine { font-size: .85rem; color: var(--ink-3); }
.cm-fine a { color: var(--ink-3); }
.cm-formstatus { color: var(--clay-text); font-size: .93rem; }
.cm-formstatus:empty { display: none; }

/* Similar posts while typing */
.cm-similar { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--clay-faint); }
.cm-similar p { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.cm-similar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cm-similar li { display: flex; align-items: center; gap: 12px; }
.cm-similar .cm-vote { display: flex; gap: 2px; align-items: center; }
.cm-similar .cm-vote button { width: 30px; height: 28px; }
.cm-similar .cm-vote b { min-width: 2ch; }
.cm-simlink { flex: 1; min-width: 0; text-align: start; border: 0; background: none; padding: 0; font: 500 .98rem/1.35 var(--body); color: var(--ink); cursor: pointer; }
.cm-simlink:hover { text-decoration: underline; }

/* Tabs, filters, sort */
.cm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; }
.cm-tabs { display: inline-flex; gap: 24px; }
.cm-tabs button { border: 0; background: none; padding: 6px 0; font: 400 clamp(1.4rem, 3vw, 1.8rem)/1.1 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; }
.cm-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.cm-tabs span { font: 500 .8rem/1 var(--body); color: var(--ink-3); vertical-align: super; margin-inline-start: 2px; }
.cm-sort select { font: 500 .9rem/1 var(--body); color: var(--ink-2); background: var(--paper); border: 0; padding: 9px 12px; border-radius: 99px; }
.cm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.cm-chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 99px; border: 0; background: var(--paper); font: 500 .88rem/1 var(--body); color: var(--ink-2); cursor: pointer; }
.cm-chip span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cm-chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.cm-chip[aria-pressed="true"] span { color: inherit; opacity: .7; }
.cm-note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--paper); color: var(--ink-2); font-size: .92rem; }

/* Posts */
.cm-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.cm-post { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 20px 22px 20px 12px; border-radius: 22px; background: var(--paper); scroll-margin: 96px; }
.cm-post.cm-q { grid-template-columns: minmax(0, 1fr); padding-inline: 22px; }
.cm-post.flash { animation: cmFlash 1.6s ease; }
@keyframes cmFlash { 0%, 40% { background: var(--clay-faint); } 100% { background: transparent; } }
.cm-vote { align-self: start; display: grid; justify-items: center; gap: 2px; }
.cm-vote button { width: 40px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer; }
.cm-vote svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-vote button:hover { background: var(--clay-faint); color: var(--ink); }
.cm-vote .cm-up.on { color: var(--clay-text); background: var(--clay-faint); }
.cm-vote .cm-down.on { color: var(--ink); background: var(--rule); }
.cm-vote b { font-size: 1.02rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.cm-body { min-width: 0; display: grid; gap: 8px; }
.cm-top { display: flex; gap: 12px; align-items: center; font-size: .85rem; }
.cm-date { color: var(--ink-3); }
.cm-status { padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--linen); color: var(--ink-2); white-space: nowrap; }
.cm-status.s-planned, .cm-status.s-building { background: var(--clay-faint); color: var(--clay-text); }
.cm-status.s-shipped, .cm-status.s-answered { background: var(--sage-faint); color: var(--sage-deep); }
.cm-status.s-declined { opacity: .7; }
.cm-body h3 { font: 500 1.3rem/1.3 var(--display); font-variation-settings: "SOFT" 100; color: var(--ink); overflow-wrap: anywhere; }
.cm-text { color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.cm-answer { margin-top: 4px; padding: 14px 16px; border-radius: 14px; background: var(--sage-faint); display: grid; gap: 4px; }
.cm-from { font-size: .8rem; font-weight: 700; color: var(--sage-deep); }
.cm-answer p { color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.cm-emptytext { padding: 48px 20px; text-align: center; border-radius: 22px; background: var(--paper); margin-top: 10px; }
/* The board's last line on the website (not in the app): what Pond is, and where to get it. */
.cm-get { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 48px; padding: 22px 24px; border-radius: 22px; background: var(--clay-faint); }
.cm-get p { max-width: 46ch; color: var(--ink-2); }
.cm-get .btn { padding: 12px 22px; }
.cm-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 70; background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 14px; max-width: calc(100% - 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* In-app view: /pond/community?app=1 */
.in-app .site-head, .in-app .site-foot { display: none; }
.in-app .cm { padding-top: 20px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.in-app .cm-head h1 { font-size: 2.2rem; }
.in-app .cm-get { display: none; }

/* Admin */
.admin { max-width: 900px; padding-block: 48px; }
.admin h1 { margin-bottom: 24px; }
.ad-login { display: grid; gap: 10px; max-width: 420px; }
.ad-login input, .ad-item textarea, .ad-item select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.ad-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ad-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ad-item { padding: 20px; border-radius: 20px; background: var(--paper); display: grid; gap: 10px; }
.ad-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .85rem; }
.ad-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-actions .btn { padding: 10px 16px; font-size: .9rem; }
.ad-del { color: var(--clay-text); }
.ad-msg { margin-top: 16px; color: var(--clay-text); }
.ad-email { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: .92rem; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .cm-post { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .cm-vote button { width: 36px; }
  .cm-tabs { gap: 18px; }
}

/* The board's own note when it can't be reached */
.cm-note { color: var(--ink-3); }

/* Report: quiet, at the end of a post's first line */
.cm-report { margin-inline-start: auto; font-size: .8rem; color: var(--ink-3); text-decoration: none; padding: 2px 4px; border-radius: 6px; }
.cm-report:hover, .cm-report:focus-visible { color: var(--clay-text); text-decoration: underline; }

/* Help Center topics: one card each, with its icon and how many answers it holds */
.hc-topics { width: 100%; max-width: 860px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; text-align: start; }
.hc-topics a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; line-height: 1.3; transition: background-color .2s; }
.hc-topics a:hover { background: var(--clay-faint); }
.hc-topics .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--clay-faint); color: var(--clay-text); }
.hc-topics small { margin-inline-start: auto; color: var(--ink-3); font-size: .82rem; font-variant-numeric: tabular-nums; }
.hc-c-ic { width: 42px; height: 42px; padding: 9px; border-radius: 13px; background: var(--clay-faint); color: var(--clay-text); margin-bottom: 8px; }
