/* ============================================================
   michelin.css — shared styling for the MICHELIN Guide in China
   topic hub (michelin-guide-china.html) and its two field notes.
   Loaded after articles.css / article-detail.css.
   All custom classes are prefixed mich- so nothing here can
   collide with the existing article or activity stylesheets.
   ============================================================ */

/* ---------- editorial furniture ---------- */

.mich-kicker {
  margin: 0 0 .9rem;
  font: 700 .78rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
}

/* A dated stamp. Every figure on these pages is version-stamped,
   because the Chinese guides publish region by region on different
   cycles and a page without an edition label goes quietly wrong. */
.mich-version {
  margin: 2rem 0 2.6rem;
  padding: .95rem 1.15rem;
  border-left: 3px solid var(--signal);
  background: rgba(181, 55, 27, .06);
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.mich-version strong { color: var(--ink); }

/* ---------- figures ---------- */

.mich-figure { margin: 2.6rem 0; }
.mich-figure img { display: block; width: 100%; height: auto; }
.mich-figure figcaption {
  margin-top: .7rem;
  padding-right: 1rem;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.mich-figure figcaption b {
  font-weight: 700;
  color: var(--ink);
}

/* Photo pair, stacks on phones. */
.mich-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.6rem 0; }
.mich-pair figure { margin: 0; }
.mich-pair img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.mich-pair figcaption { margin-top: .6rem; font-size: .8rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 700px) { .mich-pair { grid-template-columns: 1fr; } }

/* ---------- number strip ---------- */

.mich-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem 1rem;
  margin: 2.8rem 0;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(23, 48, 78, .22);
  border-bottom: 1px solid rgba(23, 48, 78, .22);
}
.mich-stats div { min-width: 0; }
.mich-stats strong {
  display: block;
  font: 500 clamp(1.9rem, 3.4vw, 2.9rem)/1 var(--serif);
  letter-spacing: -.045em;
  color: var(--ink);
}
.mich-stats span {
  display: block;
  margin-top: .45rem;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
@media (max-width: 700px) {
  .mich-stats { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
}

/* ---------- bar chart (pure CSS, no library) ---------- */

.mich-bars { margin: 2.4rem 0 2.6rem; }
.mich-bars figcaption {
  margin-top: 1rem;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.mich-bar {
  display: grid;
  grid-template-columns: 8.6rem minmax(0, 1fr) 3.2rem;
  align-items: center;
  gap: .7rem;
  padding: .42rem 0;
}
.mich-bar-label { font-size: .84rem; font-weight: 650; line-height: 1.2; }
.mich-bar-track {
  position: relative;
  height: 1.05rem;
  background: rgba(11, 31, 58, .07);
}
.mich-bar-fill {
  display: block;
  height: 100%;
  background: var(--ink);
}
.mich-bar-fill.is-signal { background: var(--signal); }
.mich-bar-fill.is-soft { background: #7d9a8f; }
.mich-bar-value {
  font-size: .8rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mich-bars-key {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.1rem;
  font-size: .78rem;
  color: var(--ink-soft);
}
.mich-bars-key span { display: inline-flex; align-items: center; gap: .4rem; }
.mich-bars-key i { display: inline-block; width: .8rem; height: .8rem; }
@media (max-width: 700px) {
  .mich-bar { grid-template-columns: 6.4rem minmax(0, 1fr) 2.6rem; gap: .5rem; }
  .mich-bar-label { font-size: .78rem; }
}

/* ---------- three-star table cards ---------- */

.mich-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 2.6rem 0;
}
.mich-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.3rem 1.45rem;
  background: #fff;
  /* white card inside a dark section: reset the inherited white text */
  color: var(--ink);
  border-top: 3px solid var(--ink);
}
.mich-card.is-signal { border-top-color: var(--signal); }
.mich-card-city {
  margin: 0 0 .5rem;
  font: 700 .74rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--signal);
}
.mich-card h3 { margin: 0 0 .3rem; font-size: 1.4rem; line-height: 1.1; }
.mich-card-cuisine {
  margin: 0 0 .9rem;
  font-size: .8rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.mich-card p { margin: 0; font-size: .92rem; line-height: 1.6; }
@media (max-width: 820px) { .mich-cards { grid-template-columns: 1fr; } }

/* ---------- the two-layer explainer ---------- */

.mich-layer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 2.6rem 0;
  background: rgba(23, 48, 78, .2);
}
.mich-layer > div { padding: 1.5rem 1.4rem; background: #fff; }
.mich-layer > div:first-child { background: var(--ink); color: #fff; }
.mich-layer h3 { margin: 0 0 .5rem; font-size: 1.35rem; line-height: 1.1; }
.mich-layer .mich-layer-n {
  display: block;
  margin-bottom: .5rem;
  font: 500 2.6rem/1 var(--serif);
  letter-spacing: -.05em;
}
.mich-layer p { margin: 0 0 .8rem; font-size: .92rem; line-height: 1.6; }
.mich-layer p:last-child { margin-bottom: 0; }
.mich-layer small { display: block; font-size: .78rem; opacity: .72; line-height: 1.5; }
@media (max-width: 700px) { .mich-layer { grid-template-columns: 1fr; } }

/* ---------- pull quote ---------- */

.mich-pull {
  margin: 2.8rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 4px solid var(--signal);
  font: 500 clamp(1.3rem, 2.4vw, 1.72rem)/1.35 var(--serif);
  letter-spacing: -.025em;
}
.mich-pull cite {
  display: block;
  margin-top: .8rem;
  font: 650 .8rem/1.4 var(--sans);
  font-style: normal;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

/* ---------- editorial note ---------- */

.mich-note {
  margin: 2.4rem 0;
  padding: 1.15rem 1.3rem;
  background: var(--paper-deep);
  font-size: .9rem;
  line-height: 1.65;
}
.mich-note strong { display: block; margin-bottom: .35rem; font-weight: 700; }

/* ============================================================
   Hub page (michelin-guide-china.html)
   ============================================================ */

.mich-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 46rem);
  padding: 6rem max(clamp(1.25rem, 6vw, 7rem), var(--wide-gutter, 0px)) 3.2rem;
  color: #fff;
  background: #07172c;
  isolation: isolate;
  overflow: hidden;
}
.mich-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mich-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 18, 34, .35) 0%, rgba(5, 18, 34, .55) 45%, rgba(5, 18, 34, .92) 100%);
}
.mich-hero-inner { width: min(64rem, 100%); }
.mich-hero .mich-kicker { color: #f2b7a4; }
.mich-hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.9rem, 7vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.045em;
}
.mich-hero-dek {
  max-width: 46ch;
  margin: 0 0 2rem;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
}
.mich-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: .82rem;
  color: rgba(255, 255, 255, .74);
}
.mich-hero-meta b { color: #fff; font-weight: 700; }

.mich-section {
  padding: clamp(3.4rem, 7vw, 6.5rem) max(clamp(1.25rem, 6vw, 7rem), var(--wide-gutter, 0px));
}
.mich-section > * { max-width: 66rem; }
.mich-section--dark { background: var(--ink); color: #fff; }
.mich-section--paper { background: var(--paper); }
.mich-section--deep { background: var(--paper-deep); }
.mich-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.mich-section h2 + p { max-width: 58ch; }
.mich-lede {
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
  line-height: 1.65;
  color: var(--ink-soft);
}
.mich-section--dark .mich-lede { color: rgba(255, 255, 255, .76); }
.mich-section--dark .mich-kicker { color: #f2b7a4; }

/* wide data table inside hub sections */
.mich-table-wrap {
  margin: 2.4rem 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mich-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.45;
}
.mich-table th,
.mich-table td {
  padding: .8rem .85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(23, 48, 78, .16);
}
.mich-table thead th {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(23, 48, 78, .42);
  white-space: nowrap;
}
.mich-table tbody th { font-weight: 650; }
.mich-table tbody td { font-variant-numeric: tabular-nums; }
.mich-table tbody tr:last-child th,
.mich-table tbody tr:last-child td { border-bottom: 0; }
.mich-table tfoot th,
.mich-table tfoot td {
  font-weight: 700;
  border-top: 1px solid rgba(23, 48, 78, .42);
  border-bottom: 0;
}
.mich-table .mich-star { color: var(--signal); font-weight: 700; }
.mich-table-wrap + .mich-table-note {
  margin: 1rem 0 0;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* dark-section table variant */
.mich-section--dark .mich-table th,
.mich-section--dark .mich-table td { border-bottom-color: rgba(255, 255, 255, .18); }
.mich-section--dark .mich-table thead th { color: rgba(255, 255, 255, .62); border-bottom-color: rgba(255, 255, 255, .42); }
.mich-section--dark .mich-table tfoot th,
.mich-section--dark .mich-table tfoot td { border-top-color: rgba(255, 255, 255, .42); }
.mich-section--dark .mich-table .mich-star { color: #f2b7a4; }

/* mobile: stack the data table, each cell labelled */
@media (max-width: 760px) {
  .mich-table-wrap { overflow-x: visible; }
  .mich-table, .mich-table tbody, .mich-table tr, .mich-table th, .mich-table td { display: block; width: auto; }
  .mich-table thead { display: none; }
  .mich-table tr { padding: .9rem 0; border-bottom: 1px solid rgba(23, 48, 78, .16); }
  .mich-section--dark .mich-table tr { border-bottom-color: rgba(255, 255, 255, .18); }
  .mich-table th, .mich-table td { border: 0; padding: 0 0 .3rem; }
  .mich-table tbody th {
    margin-bottom: .2rem;
    font-size: 1.05rem;
    font-weight: 700;
  }
  .mich-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .1rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .mich-section--dark .mich-table td::before { color: rgba(255, 255, 255, .56); }
  .mich-table tfoot { display: block; border-top: 1px solid rgba(23, 48, 78, .42); margin-top: .6rem; padding-top: .8rem; }
}

/* read cards linking to the notes and the itinerary */
.mich-reads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 2.6rem 0 0;
  max-width: none;
}
.mich-read {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(23, 48, 78, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mich-read:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 31, 58, .1); }
.mich-read img {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
}
.mich-read div { padding: 1.15rem 1.2rem 1.35rem; }
.mich-read p:first-child {
  margin: 0 0 .45rem;
  font: 700 .72rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--signal);
}
.mich-read h3 { margin: 0 0 .5rem; font-size: 1.28rem; line-height: 1.12; }
.mich-read p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }
.mich-read span {
  display: inline-block;
  margin-top: .9rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
}
/* Eight cards: four across on a wide screen reads as two full rows
   instead of three and a hole. */
@media (min-width: 1240px) { .mich-reads { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .mich-reads { grid-template-columns: 1fr; } }

/* FAQ */
.mich-faq { margin: 2.2rem 0 0; max-width: 52rem; }
.mich-faq details {
  border-top: 1px solid rgba(23, 48, 78, .2);
  padding: 1.05rem 0;
}
.mich-faq details:last-of-type { border-bottom: 1px solid rgba(23, 48, 78, .2); }
.mich-faq summary {
  cursor: pointer;
  font: 600 1.04rem/1.4 var(--sans);
  list-style: none;
}
.mich-faq summary::-webkit-details-marker { display: none; }
.mich-faq summary::after { content: " +"; color: var(--signal); font-weight: 700; }
.mich-faq details[open] summary::after { content: " –"; }
.mich-faq details p {
  margin: .7rem 0 0;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* CTA */
.mich-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2rem; margin-top: 2.2rem; }
.mich-cta .button { background: #fff; color: var(--ink); }
.mich-cta .button:hover { background: #e7ebe6; }
.mich-cta p { margin: 0; max-width: 34ch; font-size: .92rem; line-height: 1.55; color: rgba(255, 255, 255, .74); }

/* hub footer strip */
.mich-colophon {
  padding: 2.2rem max(clamp(1.25rem, 6vw, 7rem), var(--wide-gutter, 0px)) 3rem;
  background: var(--paper-deep);
  font-size: .82rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: none;
}
.mich-colophon p { max-width: 74ch; margin: 0 0 .7rem; }
.mich-colophon strong { color: var(--ink); }

/* ---------- mobile pass: bars stack, tables become cards ---------- */

/* On a 390px screen an eight-column table stacks into 50 labelled
   blocks, which is unreadable. Phones get a four-number card per guide
   instead; the full table stays for tablet and desktop. */
.mich-data-m { display: none; }

@media (max-width: 760px) {
  .mich-table-wrap { display: none; }
  .mich-data-m {
    display: grid;
    gap: .9rem;
    margin: 1.8rem 0 0;
  }
  .mich-data-card {
    padding: 1rem 1.1rem 1.1rem;
    background: #fff;
    border-left: 3px solid var(--ink);
  }
  .mich-data-card h3 {
    margin: 0 0 .1rem;
    font-size: 1.1rem;
    line-height: 1.2;
  }
  .mich-data-card h3 span {
    display: block;
    margin-top: .25rem;
    font: 700 .68rem/1 var(--sans);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--signal);
  }
  .mich-data-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem .9rem;
    margin: .85rem 0 0;
  }
  .mich-data-card dt {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .mich-data-card dd {
    margin: .15rem 0 0;
    font: 600 1.2rem/1 var(--serif);
    letter-spacing: -.03em;
  }
  .mich-data-card--total { border-left-color: var(--signal); }
}

/* Bars: on phones the label takes its own line so nothing is squeezed
   into three-line fragments beside a 60px track. */
@media (max-width: 700px) {
  .mich-bar {
    grid-template-columns: minmax(0, 1fr) 2.8rem;
    grid-template-rows: auto auto;
    column-gap: .6rem;
    row-gap: .3rem;
    padding: .55rem 0;
  }
  .mich-bar-label { grid-column: 1 / -1; }
  .mich-bar-track { grid-column: 1; }
  .mich-bar-value { grid-column: 2; }
}

/* ============================================================
   P1 additions — green star note and the two-guide comparison
   ============================================================ */

/* Two cards instead of three, so a pair reads as a pair. */
.mich-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .mich-cards--two { grid-template-columns: 1fr; } }

/* Verdict box. Used once per note, where the argument lands.
   Deliberately not a quote: it is the site's own position. */
.mich-verdict {
  margin: 2.8rem 0;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--ink);
  color: #fff;
}
.mich-verdict > p:first-child {
  margin: 0 0 .75rem;
  font: 500 clamp(1.14rem, 2vw, 1.38rem)/1.4 var(--serif);
  letter-spacing: -.02em;
  color: #fff;
}
.mich-verdict p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
}
.mich-verdict p + p { margin-top: .7rem; }
.mich-verdict strong { color: #fff; font-weight: 700; }

/* Small definition list for the criteria behind a rating. */
.mich-defs { margin: 2.2rem 0; }
.mich-defs div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: .4rem 1.4rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(23, 48, 78, .16);
}
.mich-defs div:last-child { border-bottom: 1px solid rgba(23, 48, 78, .16); }
.mich-defs dt {
  font: 700 .74rem/1.5 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--signal);
}
.mich-defs dd { margin: 0; font-size: .94rem; line-height: 1.6; }
@media (max-width: 640px) {
  .mich-defs div { grid-template-columns: 1fr; gap: .2rem; }
}

/* Source and currency note. Every page that quotes a list needs one,
   because the lists are reissued on five different calendars. */
.mich-sources {
  margin: 3rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(23, 48, 78, .22);
  font-size: .82rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.mich-sources b { display: block; margin-bottom: .35rem; color: var(--ink); }
.mich-sources p { margin: 0 0 .5rem; }

/* A single number pulled out of the prose, set large. */
.mich-keynum {
  margin: 2.4rem 0;
  font: 500 clamp(2.6rem, 7vw, 4.4rem)/1 var(--serif);
  letter-spacing: -.05em;
  color: var(--ink);
}
.mich-keynum span {
  display: block;
  margin-top: .5rem;
  font: 600 .8rem/1.5 var(--sans);
  letter-spacing: .04em;
  color: var(--ink-soft);
}

/* A hero with no photograph. Used once, on the Taizhou note: the
   starred rooms there do not allow cameras, and a stock photo of a
   different city would be worse than none. */
.article-hero--plain { background: #07172c; }
.article-hero--plain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 82% 8%, #16395c 0%, rgba(7, 23, 44, 0) 58%),
    radial-gradient(90% 70% at 10% 100%, #0d2742 0%, rgba(7, 23, 44, 0) 60%);
}

/* A two-value comparison table reads badly as four stacked lines per row
   on a phone. Give it a two-column grid instead: the measure, then the
   two cities side by side, which is how it is meant to be compared. */
@media (max-width: 700px) {
  .article-table--pair tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 0;
  }
  .article-table--pair tbody th[scope="row"] { grid-column: 1 / -1; margin-bottom: .35rem; }
  .article-table--pair td { padding: 0 0 .55rem; }
  .article-table--pair td::before { margin-bottom: .05rem; }
}
