/* Information screens: help centre, list your property, legal, feedback, 404/500, offline. Direction C tokens from app.css. */

.narrow-wide { max-width: 960px; margin-left: auto; margin-right: auto; }
.lead { font-size: var(--fs-16); margin-top: var(--s2); }
.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; }

/* ---------- help home ---------- */
.help-search { display: flex; gap: var(--s2); margin-top: var(--s5); max-width: 640px; }
.help-search .input { flex: 1 1 auto; min-width: 0; }
.help-topics ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s5); }
.help-topic { display: flex; flex-direction: column; gap: 2px; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; min-height: 64px; }
.help-topic:hover { border-color: var(--ink); color: var(--ink); }
.help-topic[aria-current="true"] { border: 2px solid var(--wine); padding: calc(var(--s3) - 1px) calc(var(--s4) - 1px); }
.help-results { margin-top: var(--s6); }
.help-results h2 { font-size: var(--fs-20); }
.help-list { list-style: none; margin-top: var(--s3); border-top: 1px solid var(--line); }
.help-list li { border-bottom: 1px solid var(--line); }
.help-item { display: flex; flex-direction: column; gap: 2px; padding: var(--s4) 0; text-decoration: none; color: var(--ink); }
.help-item-title { font: 600 var(--fs-16)/1.3 var(--font-head); color: var(--sea); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.help-item:hover .help-item-title { color: var(--ink); }
.help-results .state { margin-top: var(--s3); }
.help-still { margin-top: var(--s6); display: flex; flex-direction: column; gap: var(--s3); }
.help-still h2 { font-size: var(--fs-20); }

/* ---------- help article ([C] layout: content + «In this article» rail) ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s7); margin-top: var(--s3); align-items: start; }
.article h1 { margin-top: var(--s2); }
.article-sec { margin-top: var(--s5); scroll-margin-top: var(--s4); }
.article-sec h2 { font-size: var(--fs-20); scroll-margin-top: var(--s4); }
.article-sec p { margin-top: var(--s2); }
.toc { font-size: var(--fs-14); }
.toc-h { font: 700 var(--fs-14)/1.3 var(--font-body); color: var(--ink); }
.toc ul { list-style: none; margin-top: var(--s2); display: grid; gap: var(--s2); }
.toc-d { position: sticky; top: var(--s5); border-left: 2px solid var(--line); padding-left: var(--s4); }
.toc-m { display: none; }
.vote-wrap { margin-top: var(--s6); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r); }
.vote { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.vote legend { float: left; margin-right: var(--s3); }
.vote .btn { min-width: 72px; }
.vote-form [data-vote-box] { margin-top: var(--s3); }
.related { margin-top: var(--s6); }
.related h2 { font-size: var(--fs-20); }
.related ul { list-style: none; margin-top: var(--s2); display: grid; gap: var(--s2); }

/* ---------- list your property ---------- */
.host .lead { max-width: 680px; }
.host-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.host-facts li { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4); }
.host-fact-v { font: 800 var(--fs-32)/1.1 var(--font-head); color: var(--ink); }
.sec-info { margin-top: var(--s6); max-width: 720px; }
.sec-info h2 { font-size: var(--fs-20); margin-bottom: var(--s2); }
.needs-list { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s3); }
.needs-list li { display: flex; gap: var(--s3); align-items: flex-start; }
.needs-list li .icon { margin-top: 2px; color: var(--muted); }
.needs-list li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.host-cta { margin-top: var(--s6); display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.host-cta h2 { font-size: var(--fs-20); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s3) 0; font: 600 var(--fs-16)/1.4 var(--font-head); min-height: 44px; display: flex; align-items: center; }
.faq details p { padding-bottom: var(--s4); }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s7); align-items: start; }
.legal-nav { position: sticky; top: var(--s5); }
.legal-nav ul { list-style: none; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 10px var(--s3); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font: 600 var(--fs-14)/1.3 var(--font-head); }
.legal-nav a:hover { background: var(--surface); }
.legal-nav a[aria-current="page"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--wine); }
.legal-body .banner { margin-top: var(--s4); }
.legal-body section { margin-top: var(--s5); }
.legal-body section h2 { font-size: var(--fs-20); }
.legal-body section p { margin-top: var(--s2); }
.legal-body > .small:last-child { margin-top: var(--s6); }

/* ---------- feedback ---------- */
.feedback .lead { margin-bottom: var(--s5); }
.feedback-form { display: flex; flex-direction: column; gap: var(--s4); }
.feedback-topic { display: inline-flex; align-self: flex-start; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-14); font-weight: 700; }
.feedback-form .textarea { min-height: 160px; }
.feedback-form .hint.row { gap: var(--s2); }
.feedback-actions [data-feedback-box] { margin-top: var(--s2); }
.banner-success { background: var(--positive-soft); color: var(--ink); border-left: 4px solid var(--positive); font-size: var(--fs-16); }
.banner-success .icon { color: var(--positive); }
.banner-success div { display: flex; flex-direction: column; gap: var(--s1); }
.feedback-after { margin-top: var(--s4); }

/* ---------- photo credits ---------- */
.credits-table { width: 100%; margin-top: var(--s5); border-collapse: collapse; font-size: var(--fs-14); }
.credits-table th { text-align: left; font: 700 var(--fs-13)/1.3 var(--font-body); color: var(--muted); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line-strong); }
.credits-table td { padding: var(--s3); vertical-align: middle; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.credits-table th:first-child, .credits-table td:first-child { padding-left: 0; width: 112px; }
.credits-table img { display: block; width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface); }
.credits-table .cr-shows { color: var(--ink); font-weight: 700; }
.credits .state { margin-top: var(--s5); }

/* ---------- 404 / 500 / offline ---------- */
.status-page { padding: var(--s6) 0 var(--s4); display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.status-page > .icon-24 { color: var(--muted); }
.status-page .ref { font-size: var(--fs-16); }
.next-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.next-links a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 700; }

@media (max-width: 960px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc-d { display: none; }
  .toc-m { display: block; margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--surface); border-radius: var(--r); }
  .legal { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: var(--s1); }
  .legal-nav a { padding: var(--s2) var(--s3); border: 1px solid var(--line); }
  .legal-nav a[aria-current="page"] { box-shadow: none; border-color: var(--wine); }
}

@media (max-width: 760px) {
  .help-topics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-search .btn { padding: 0 var(--s3); }
  .host-facts { grid-template-columns: minmax(0, 1fr); }
  .host-fact-v { font-size: var(--fs-24); }
  .host-cta .btn { width: 100%; white-space: normal; text-align: center; }
  /* thumb: the main button sits above the tab bar while typing a long message */
  .feedback-actions { position: sticky; bottom: 76px; background: var(--white); padding: var(--s3) 0; margin: 0 calc(-1 * var(--s4)); padding-left: var(--s4); padding-right: var(--s4); border-top: 1px solid var(--line); }
  .feedback-actions .btn { width: 100%; }
  .status-page .row .btn { flex: 1 1 100%; }
  /* credits: each photo is a row of its own — thumbnail left, what it shows, author and licence stacked */
  .credits-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .credits-table, .credits-table tbody { display: block; }
  .credits-table tr { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--s3); row-gap: 2px; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .credits-table td { display: block; padding: 0; border: 0; }
  .credits-table th:first-child, .credits-table td:first-child { width: auto; }
  .credits-table .cr-photo { grid-row: 1 / span 3; }
  .credits-table .cr-author::before, .credits-table .cr-licence::before { content: attr(data-label) ": "; color: var(--muted); }
}
