/* Shared pieces for the home page and the inner pages: header on dark,
   status chips, service cards, text pages. Tokens come from site.css. */

/* Header on inner pages and the compact mobile menu */
.page-header {
  background: var(--dark);
  color: var(--white);
}

.main-nav a[aria-current="page"] {
  text-decoration-color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--light-muted);
  font-size: 0.9rem;
  text-underline-offset: 0.35em;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--white);
}

.footer-inner > p {
  max-width: 28rem;
}

@media (max-width: 680px) {
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.1rem;
  }

  .main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    font-size: 0.88rem;
  }

  .topbar {
    gap: 0;
    padding-bottom: 0.15rem;
  }
}

/* Status chips: the honest status of every service (brandbook, section 2) */
.status {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.12rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.status-pilot {
  background: var(--ink);
  color: var(--white);
}

.status-build {
  border-color: #e3b49a;
  background: #fce8db;
  color: #4d2214;
}

.status-research {
  border: 1px dashed #8a7b6c;
  background: transparent;
  color: var(--muted);
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Visible placeholders that still need a decision */
.placeholder {
  display: inline-block;
  padding: 0 0.4rem;
  border: 1px dashed #ac4b2f;
  border-radius: 0.3rem;
  background: #fce8db;
  color: #6b2a17;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* Paid pilot entry card on the home page */
.pilot-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid #e3b49a;
  border-radius: 0.85rem;
  background: #fce8db;
}

.pilot-entry h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.pilot-entry-lead {
  margin-top: 0.8rem;
  max-width: 34rem;
  color: #3d3128;
}

.pilot-entry-side {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.pilot-facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-facts li {
  position: relative;
  padding: 0.5rem 0 0.5rem 0.95rem;
  border-top: 1px solid #e3b49a;
  font-size: 0.96rem;
  line-height: 1.4;
}

.pilot-facts li::before {
  position: absolute;
  top: 0.92rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent-ink);
  content: "";
}

.pilot-entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin-top: 1.1rem;
}

.text-link {
  color: var(--accent-ink);
  font-weight: 800;
  text-underline-offset: 0.25em;
}

/* Four directions with services and statuses */
.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #cec0ad;
  border-radius: 0.85rem;
  background: var(--white);
}

.direction {
  padding: clamp(1.15rem, 2.65vw, 1.85rem);
}

.direction:nth-child(even) {
  border-left: 1px solid #d6c8b6;
}

.direction:nth-child(n + 3) {
  border-top: 1px solid #d6c8b6;
}

.direction h3 {
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.direction-lead {
  margin-block: 0.5rem 0.9rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #d6c8b6;
  list-style: none;
}

.service-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #ece3d6;
}

.service-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.8rem;
}

.service-head strong {
  font-size: 1rem;
  line-height: 1.3;
}

.service-list p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.packages-note {
  max-width: 44rem;
  margin-top: 1.1rem;
  color: var(--muted);
}

/* Console additions: status chip and the reply the guest receives */
.console-service {
  margin-bottom: 0.75rem;
}

.console-service .status-pilot {
  background: #f8f0e4;
  color: var(--ink);
}

.console-service .status-build {
  border-color: #80553e;
  background: #432f24;
  color: #ffd2bd;
}

.guest-reply {
  margin-top: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem 0.7rem 0.7rem 0.2rem;
  background: #473228;
  color: #fff1e7;
  font-size: 0.97rem;
  line-height: 1.4;
}

.guest-reply small {
  display: block;
  margin-bottom: 0.2rem;
  color: #ffc2a8;
  font-size: 0.78rem;
  font-weight: 800;
}

.case-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.case-note a {
  color: var(--accent-ink);
  font-weight: 800;
}

.case-from {
  display: inline-block;
  margin-bottom: 0.15rem;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Short team block on the home page */
.team-short {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: end;
}

.team-short .section-lead {
  margin-top: 0;
}

.team-short .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.5rem;
}

/* Inner pages */
.page-hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
  background: var(--paper);
}

.page-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1;
}

.page-hero .section-lead {
  max-width: 40rem;
}

.page-hero .hero-actions {
  margin-top: 1.6rem;
}

.page-section {
  padding-block: clamp(2.6rem, 5.5vw, 4.6rem);
  border-top: 1px solid var(--line);
}

.page-section:nth-of-type(even) {
  background: var(--white);
}

.page-section h2 {
  max-width: 22ch;
  margin-bottom: 1.2rem;
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  line-height: 1.02;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(1.2rem, 4vw, 4rem);
}

.two-col > h2 {
  margin-bottom: 0;
}

.plain-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--ink);
}

.plain-list li {
  padding-block: 0.28rem;
}

.plain-list li::marker {
  color: var(--accent-ink);
}

.plain-list p {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.week-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.week-list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.4rem 1.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.week-list strong {
  color: var(--accent-ink);
  font-weight: 800;
}

.callout {
  padding: clamp(1.1rem, 2.6vw, 1.7rem);
  border: 1px solid #e3b49a;
  border-radius: 0.85rem;
  background: #fce8db;
}

.callout h3 {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.callout p + p,
.callout h3 + p {
  margin-top: 0.5rem;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-top: 0.7rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.option {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
}

.option h3 {
  margin-bottom: 0.4rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.option p {
  color: var(--muted);
  font-size: 0.95rem;
}

.draft-banner {
  margin-bottom: 1.6rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid #ac4b2f;
  background: #fce8db;
  color: #4d2214;
  font-weight: 600;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  max-width: none;
  margin: 2.2rem 0 0.7rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
}

.prose p,
.prose ul {
  margin-top: 0.65rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.contact-card {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.contact-row {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
}

.contact-row h2 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--muted);
}

.not-found {
  padding-block: clamp(4rem, 12vw, 9rem);
}

.not-found h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.4rem;
}

@media (max-width: 880px) {
  .pilot-entry,
  .team-short,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .option-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .direction-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .direction:nth-child(even) {
    border-left: 0;
  }

  .direction + .direction {
    border-top: 1px solid #d6c8b6;
  }

  .week-list li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Row statuses in the demo may wrap instead of overflowing on narrow screens */
.work-rows li > span {
  flex: none;
  min-width: 0;
  text-align: right;
}

.work-rows li > div {
  min-width: 0;
}

/* Breadcrumbs and the "more" link under a direction card */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--accent-ink);
  text-underline-offset: 0.25em;
}

.direction-more {
  margin-top: 0.9rem;
  padding-top: 0.55rem;
  border-top: 1px solid #ece3d6;
}

.direction-more .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Articles */
.option-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option .label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.option h3 a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.byline a {
  color: var(--ink);
  font-weight: 800;
  text-underline-offset: 0.25em;
}

.article-layout .prose {
  max-width: 46rem;
}

.article-layout .prose > :first-child {
  margin-top: 0;
}

.article-layout .prose h2 {
  margin-top: 2.4rem;
}

.article-layout .prose ol,
.article-layout .prose ul {
  padding-left: 1.3rem;
}

.article-layout .prose li {
  padding-block: 0.2rem;
}

.toc {
  margin-bottom: 1.6rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
}

.toc .label {
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0.4rem 0 0;
}

.toc a {
  text-underline-offset: 0.2em;
}

.ticket {
  max-width: 34rem;
  margin: 1.1rem 0;
  padding: 0.95rem 1.1rem;
  border: 1px dashed #a89782;
  border-radius: 0.5rem;
  background: var(--white);
}

.ticket .t-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ticket hr {
  margin: 0.55rem 0;
  border: 0;
  border-top: 1px dashed #a89782;
}

.ticket .t-sub {
  margin-top: 0.7rem;
  color: var(--accent-ink);
  font-weight: 800;
}

.ticket ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.note {
  padding: 0.8rem 1rem;
  border-left: 3px solid #ac4b2f;
  background: #fce8db;
  color: #4d2214;
}

.formula {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin: 1.3rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid #e3b49a;
  border-radius: 0.7rem;
  background: #fce8db;
}

.download p {
  flex: 1 1 16rem;
  margin: 0;
}

.table-wrap {
  margin: 1rem 0;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.sources-list {
  margin: 0;
  padding-left: 1.2rem;
}

.sources-list li {
  padding-block: 0.25rem;
}

@media (max-width: 880px) {
  .option-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
