/* Shared styles for Help Desk content pages (wiki, contact, checklist, ideas) */

:root{
  --dark: #0a0908;
  --bg-page: #faf6ef;
  --ink: #1c1a16;
  --ink-soft: #55504a;
  --orange: #b6551a;
  --orange-bright: #e6822f;
  --ribbon-dark: #b85e22;
  --cream: #f6e2b8;
  --rule: #e6dcc9;
  --maxw: 760px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--orange); }
a:hover{ color: var(--orange-bright); }

/* ---- Header ---- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--dark);
  padding: 14px clamp(18px, 4vw, 40px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.brand{
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: #fff;
}

.brand__logo{
  height: 30px;
  width: auto;
  flex-shrink: 0;
  display: block;
  transform: translateY(2px);
}

.brand__word{
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.header-nav{
  display: flex;
  gap: clamp(10px, 2vw, 22px);
  font-size: 0.88rem;
  font-weight: 600;
}
.header-nav a{
  color: rgba(255,255,255,0.82);
  text-decoration: none;
}
.header-nav a:hover{ color: var(--orange-bright); }

/* ---- Page shell ---- */
.page{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 60px) clamp(18px, 4vw, 24px) 100px;
}

.page-title{
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1;
  margin: 0 0 10px;
  color: var(--ink);
}

.page-lede{
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 36px;
}

/* ---- Table of contents ---- */
.toc{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
.toc a{
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--orange);
  border: 1.3px solid var(--rule);
  border-radius: 999px;
  padding: 7px 15px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.toc a:hover{
  background: var(--orange-bright);
  border-color: var(--orange-bright);
  color: #fff;
}

/* ---- Sections & entries ---- */
.section{
  scroll-margin-top: 84px;
  margin-bottom: 52px;
}

.section__label{
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 6px;
}

.section__title{
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 6px;
}

.section__intro{
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: 0.98rem;
}

.subhead{
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 26px 0 12px;
}

.entry{
  scroll-margin-top: 84px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid transparent;
  margin-bottom: 14px;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.entry:target{
  background: rgba(230,130,47,0.09);
  border-left-color: var(--orange-bright);
  border-radius: 0 8px 8px 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

.entry__term{
  font-weight: 700;
  color: var(--ink);
}

.entry__flag{
  display: inline-block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--orange);
}

hr.rule{
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

/* ---- CTA card ---- */
.cta-card{
  margin-top: 56px;
  background: var(--dark);
  color: #fff;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 36px);
  text-align: left;
}

.platform-section{
  margin-bottom: 48px;
}
.platform-section h2{
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0 0 4px;
  color: var(--ink);
}
.platform-section__sub{
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.platform-note{
  background: rgba(230,130,47,0.08);
  border-left: 3px solid var(--orange-bright);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0 0 18px;
}
table.spec-table{
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px;
  font-size: 0.92rem;
}
table.spec-table th{
  text-align: left;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 14px 8px 0;
  border-bottom: 2px solid var(--rule);
}
table.spec-table td{
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-soft);
}
table.spec-table td:first-child{
  font-weight: 600;
  color: var(--ink);
  width: 150px;
  white-space: nowrap;
}
table.spec-table tr:last-child td{ border-bottom: none; }
.spec-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 8px;
}
.spec-table-wrap table.spec-table{ margin: 0; min-width: 480px; }

@media print{
  .site-header{ position: static; background: #fff !important; border-bottom: 2px solid #000; box-shadow: none; }
  .brand{ color: #000; }
  .brand__logo{ filter: grayscale(1) contrast(1.3); }
  .header-nav{ display: none; }
  .cta-card{ background: #fff !important; border: 2px solid #000; color: #000; }
  .cta-card p{ color: #333 !important; }
  .cta-card .btn{ display: none; }
  .toc{ display: none; }
  .entry, .step, details.faq-item, .platform-section{ break-inside: avoid; }
  .page{ max-width: 100%; }
  .entry__flag{ font-weight: 600; }
  a{ color: #000; text-decoration: underline; }
  body{ background: #fff; }
}
.cta-card h3{
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.cta-card p{
  color: rgba(255,255,255,0.78);
  margin: 0 0 18px;
  max-width: 50ch;
}
.cta-card .btn{
  display: inline-block;
  background: var(--orange-bright);
  color: #1a1200;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta-card .btn:hover{
  transform: translateY(-1px);
  background: #fff;
}

/* ---- Placeholder pages ---- */
.placeholder{
  border: 1.5px dashed var(--rule);
  border-radius: 16px;
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
  margin-top: 12px;
}
.placeholder p{ color: var(--ink-soft); max-width: 46ch; margin: 0 auto 18px; }

/* ---- Pagination footer (standalone topic pages) ---- */
.pagination{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  font-weight: 600;
}
.pagination a{ text-decoration: none; }
.pagination .prev::before{ content: "← "; }
.pagination .next::after{ content: " →"; }
.pagination .to-wiki{
  color: var(--ink-soft);
  font-weight: 600;
}
.pagination .to-wiki:hover{ color: var(--orange); }

/* ---- Wiki hub cards ---- */
.hub-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.hub-card{
  display: block;
  text-decoration: none;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  background: #fff;
}
.hub-card:hover{
  border-color: var(--orange-bright);
  transform: translateY(-2px);
  background: #fffaf3;
}
.hub-card__num{
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.hub-card__title{
  font-family: 'Anton', sans-serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 4px 0 6px;
}
.hub-card__desc{
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 560px){
  .site-header{ flex-wrap: wrap; row-gap: 10px; }
  .header-nav{ width: 100%; justify-content: flex-start; gap: 16px; font-size: 0.85rem; }
}

/* ---- Start Here steps ---- */
.step{
  display: flex;
  gap: 18px;
  margin-bottom: 36px;
}
.step__num{
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange-bright);
  color: #1a1200;
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__body h3{
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  margin: 4px 0 6px;
  color: var(--ink);
}
.step__body p{
  margin: 0 0 10px;
  color: var(--ink-soft);
}
.step__links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.step__links a, .step__body > a.single-link{
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--orange);
  border: 1.3px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.step__links a:hover, .step__body > a.single-link:hover{
  background: var(--orange-bright);
  border-color: var(--orange-bright);
  color: #fff;
}

/* ---- FAQ accordion ---- */
details.faq-item{
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  scroll-margin-top: 84px;
}
details.faq-item summary{
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker{ display: none; }
details.faq-item summary::after{
  content: '+';
  color: var(--orange);
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
}
details.faq-item[open] summary::after{ content: '−'; }
details.faq-item p{
  margin: 12px 0 0;
  color: var(--ink-soft);
}
