/* Content pages: questions, where we serve, contact, legal center, unsubscribe, and their admin pages
   (messages, interest list, states, legal texts, questions and notice). Same rules as site.css: aligned grids,
   muted second lines, pills, tiles, boxes with dividers; gold only for buttons, highlights and attention. */

/* ---------- shared ---------- */
.cnt-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cnt-area { display: grid; gap: 6px; min-width: 0; }
.cnt-area.has-error textarea { border-color: var(--err); }
.cnt-big textarea { min-height: 420px; font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace; }
.cnt-checks { display: grid; gap: 10px; }
.cnt-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); text-align: center; }
.cnt-back { margin: 0 0 10px; font-size: 13.5px; }

/* ---------- questions ---------- */
.cnt-jump { margin: 0 0 22px; }
.cnt-jump .muted { font-weight: 500; }
.cnt-faq-sec { scroll-margin-top: 90px; }

/* ---------- where we serve ---------- */
.cnt-look { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 14px; align-items: start; }
.cnt-look-form { display: grid; gap: 12px; }
.cnt-look-form .mk-box-h { margin: 0; }
.cnt-result { scroll-margin-top: 90px; min-width: 0; }
.cnt-result.cnt-ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); }
.cnt-result-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.cnt-result-h b { font: 700 16px/1.3 var(--head); }
.cnt-headline { margin: 0 0 6px; font-weight: 600; font-size: 15.5px; }
.cnt-sub { font: 700 14.5px/1.3 var(--head); margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.cnt-result .form-errors { margin: 0 0 12px; }
.cnt-states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.cnt-states li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); margin: 0 0 -1px -1px; }
.cnt-states li a { color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cnt-states li a:hover { color: var(--gold); }

/* ---------- contact ---------- */
.cnt-sent { text-align: center; }
.cnt-sent .btn-row { justify-content: center; }
.cnt-sent-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.cnt-ticks { margin-top: 14px; font-size: 13.5px; }
.mk-next .kv { margin: 0; }
.mk-next .kv > div { grid-template-columns: 90px minmax(0, 1fr); }

/* ---------- legal ---------- */
.rows.cnt-legal > li { grid-template-columns: minmax(0, 1fr) 170px 120px; }
.cnt-doc { max-width: 820px; }
.cnt-doc .h1 { margin-bottom: 12px; }
.cnt-prose { font-size: 15px; }
.cnt-prose > :first-child { margin-top: 0; }
.cnt-prose ul { padding-left: 20px; }

/* ---------- admin: messages ---------- */
.rows.cnt-msgs > li { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 100px 150px; }
.cnt-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cnt-thread > li { padding: 14px 18px; }
.cnt-thread > li.cnt-mine { border-left: 3px solid var(--gold-line); background: color-mix(in srgb, var(--gold-soft) 45%, var(--surface)); }
.cnt-thread-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; font-size: 13px; color: var(--text-3); }
.cnt-thread-h b { color: var(--text); font-size: 14px; font-weight: 600; }
.cnt-thread-b { font-size: 14.5px; color: var(--text-2); overflow-wrap: anywhere; }
.cnt-thread-b p { margin: 0 0 8px; }
.cnt-thread-b > :last-child { margin-bottom: 0; }

/* ---------- admin: interest list ---------- */
.rows.cnt-interest > li { grid-template-columns: minmax(0, 1.2fr) 70px minmax(0, 1fr) 128px 110px; }
.cnt-extra { font-size: 13px; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnt-top-states .tile .val { font-size: 24px; }

/* ---------- admin: states ---------- */
.cnt-states-adm { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.rows.cnt-st-rows > li { grid-template-columns: minmax(0, 1fr) 84px 76px 92px 64px; padding: 10px 14px; }
.rows.cnt-st-rows .m b .muted { font-weight: 500; font-size: 12.5px; }
.cnt-sticky { position: sticky; top: 16px; }

/* ---------- admin: legal texts ---------- */
.rows.cnt-legal-adm > li { grid-template-columns: minmax(0, 1fr) 130px 110px 128px; }
.rows.cnt-versions > li { grid-template-columns: minmax(0, 1fr) 84px 92px; padding: 10px 14px; }
.cnt-sha { font-size: 12px; word-break: break-all; }
.cnt-preview { max-height: 640px; overflow: auto; padding-right: 6px; }

/* ---------- admin: questions and notice ---------- */
.rows.cnt-faq-rows > li { grid-template-columns: 40px minmax(0, 1fr) 190px 72px; }
.cnt-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cnt-del { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.cnt-banned { display: flex; flex-wrap: wrap; gap: 6px; }
.cnt-banned-h { font: 700 12px/1.4 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 14px 0 8px; }
.cnt-banned-h .muted { font-weight: 600; }

/* ---------- tablets ---------- */
@media (max-width: 1180px) {
  .cnt-states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cnt-states-adm { grid-template-columns: 1fr; }
  .cnt-sticky { position: static; order: -1; }   /* the edit box comes first when the columns stack */
}
@media (max-width: 980px) {
  .cnt-look { grid-template-columns: 1fr; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .cnt-states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cnt-states li { padding: 9px 12px; gap: 6px; }
  .cnt-states li a { font-size: 13.5px; white-space: normal; line-height: 1.3; }
  .cnt-states li .pill { padding: 1px 7px; }
  /* lists: main text on the left, the label or date beside it, details under each other */
  .rows.cnt-legal > li, .rows.cnt-versions > li, .rows.cnt-faq-rows > li { grid-template-columns: minmax(0, 1fr) auto !important; gap: 4px 12px; }
  .rows.cnt-legal .w { grid-column: 1; grid-row: 2; }
  .rows.cnt-legal > li > div:last-child { grid-column: 2; grid-row: 1; }
  .rows.cnt-versions .w { grid-column: 1 / -1; }
  .rows.cnt-faq-rows .adm-n { display: none; }
  .rows.cnt-faq-rows .cnt-pills { grid-column: 1; }
  .rows.cnt-faq-rows .act { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  /* states: name and note on top, then status · cancel · renewal on one line, Edit on the right */
  .rows.cnt-st-rows > li { grid-template-columns: auto auto minmax(0, 1fr) auto !important; gap: 6px 12px; }
  .rows.cnt-st-rows .m { grid-column: 1 / 4; grid-row: 1; }
  .rows.cnt-st-rows > li > div:nth-child(2) { grid-column: 1; grid-row: 2; }
  .rows.cnt-st-rows > li > div:nth-child(3) { grid-column: 2; grid-row: 2; }
  .rows.cnt-st-rows > li > div:nth-child(4) { grid-column: 3; grid-row: 2; }
  .rows.cnt-st-rows .w0 span { display: none; }
  .rows.cnt-st-rows .act { grid-column: 4; grid-row: 1 / span 2; align-self: center; }
  /* messages: who + status on top, topic under it, date last */
  .rows.cnt-msgs > li { grid-template-columns: minmax(0, 1fr) auto !important; gap: 4px 12px; }
  .rows.cnt-msgs > li > div:nth-child(1) { grid-column: 1; grid-row: 1; }
  .rows.cnt-msgs > li > div:nth-child(2) { grid-column: 1; grid-row: 2; }
  .rows.cnt-msgs > li > div:nth-child(3) { grid-column: 2; grid-row: 1; }
  .rows.cnt-msgs > li > div:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .rows.cnt-msgs .w, .rows.cnt-interest .w { display: flex; }
  .cnt-extra { white-space: normal; }
}

/* Show whole questions and whole document descriptions (no '…') */
.rows.cnt-faq-rows .m b { white-space: normal; }
.rows.cnt-legal .m span, .rows.cnt-legal-adm .m span { white-space: normal; overflow: visible; line-height: 1.45; }
