/* ------------------------------------------------------------------
   The concept index — the hub the concepts are linked from.

   Three tabs: the approved city page concept, the pre-approved hub concept,
   then everything set aside — which keeps its own two groups. The tab rules
   and the tab behaviour are lifted from _source/index-page.js and scoped, so
   the static page and this one cannot disagree about them.

   Derived from the original standalone index.html, but scoped. That page
   was a whole document with no site chrome, so it styled `body` directly
   and used bare `h1` / `.card` / `.grid` / `code` selectors. Inside the
   theme the page carries the real navbar, banner and footer, so every
   rule is confined to .mm-concept-index and the page padding sits on
   .wrap instead of on body — on body it insets the chrome as well.

   Do NOT regenerate this file from index.html.
   ------------------------------------------------------------------ */

.mm-concept-index .mm-main{
  background:#F3FFEF;
  color:#31432D;
  font-family:Inter,-apple-system,"Segoe UI",Roboto,sans-serif;
}

.mm-concept-index .wrap{
  box-sizing:border-box;
  max-width:1100px;
  margin-inline:auto;
  padding:clamp(2rem,6vw,5rem) clamp(1.25rem,4vw,3rem);
}
.mm-concept-index .wrap *{box-sizing:border-box}

.mm-concept-index .eyebrow{
  display:block;
  font-size:.6875rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#7BA673;
}

.mm-concept-index .wrap h1{
  font-family:"DM Serif Display",Georgia,serif;
  font-weight:400;
  font-size:clamp(2rem,1.5rem + 2.4vw,3.25rem);
  line-height:1.1;
  margin:1rem 0 .75rem;
  color:#384D34;
}

.mm-concept-index .sub{
  max-width:62ch;
  line-height:1.8;
  color:#41533C;
  margin:0 0 clamp(2rem,4vw,3rem);
}

/* ---------- the tab strip ----------
   A rule runs the full width and each tab sits on it; the selected one
   thickens its own length of that rule and takes the dark ink. No pills, no
   boxes — the same hairline vocabulary the concepts themselves are built
   from. Below a threshold it stacks rather than scrolling, so no tab is ever
   hidden behind an edge. */
.mm-concept-index .tabs{display:flex;gap:clamp(.85rem,1.8vw,1.6rem);margin:0 0 clamp(1.75rem,3.5vw,2.75rem);
  border-bottom:1px solid #CAE5C1;overflow-x:auto;scrollbar-width:none}
.mm-concept-index .tabs::-webkit-scrollbar{display:none}
/* flex:1 1 0, not flex:none. Five labels come to about 1000px of text and the
   widest row this page ever offers is 1004px, so a strip of shrink-to-fit tabs
   overflowed and put the last one behind an edge. Equal columns that let their
   own labels wrap keep all five in view at any width, and justify-content on
   the column keeps the counts on one baseline however many lines the label
   above them takes. */
.mm-concept-index .tab{position:relative;flex:1 1 0;min-width:0;appearance:none;border:0;
  background:transparent;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 0 1rem;font:500 .6875rem/1.4 Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;
  color:#5C7256;text-align:left;transition:color .3s cubic-bezier(.22,.61,.36,1)}
.mm-concept-index .tab::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#384D34;
  transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.16,1,.3,1)}
.mm-concept-index .tab:hover{color:#384D34}
.mm-concept-index .tab[aria-selected="true"]{color:#384D34}
.mm-concept-index .tab[aria-selected="true"]::after{transform:scaleX(1)}
.mm-concept-index .tab b{display:block;font-weight:500}
.mm-concept-index .tab em{display:block;margin-top:.4rem;font-style:normal;font-size:.625rem;letter-spacing:.2em;color:#7BA673}
.mm-concept-index .tab:focus-visible{outline:1.5px solid #7BA673;outline-offset:4px}
/* Below 1000px they stack. Five equal columns of wrapped labels stop being
   readable long before that: a sideways scroll would hide the last tab behind
   an edge with nothing to say it was there, and five items make a perfectly
   good list — the rule that marked the selected tab simply moves to its left
   side. */
@media(max-width:1000px){
  .mm-concept-index .tabs{display:grid;gap:0;border-bottom:0;overflow:visible}
  .mm-concept-index .tab{display:flex;flex-direction:row;justify-content:flex-start;flex-wrap:wrap;
    align-items:baseline;gap:.25rem .75rem;
    padding:.95rem 0 .95rem 1.1rem;border-bottom:1px solid #CAE5C1}
  .mm-concept-index .tab:first-child{border-top:1px solid #CAE5C1}
  .mm-concept-index .tab::after{left:0;right:auto;top:0;bottom:0;width:2px;height:auto;
    transform:scaleY(0);transform-origin:top;transition:transform .45s cubic-bezier(.16,1,.3,1)}
  .mm-concept-index .tab[aria-selected="true"]::after{transform:scaleY(1)}
  .mm-concept-index .tab em{margin-top:0}
}

/* Panels are visible by default and hidden only once the script has taken
   over — a reader without JavaScript gets all three, in order. */
.js .mm-concept-index .panel[hidden]{display:none}
.mm-concept-index .panel:not([hidden]){animation:mmc-rise .5s cubic-bezier(.16,1,.3,1) both}
@keyframes mmc-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .mm-concept-index .panel:not([hidden]){animation:none}
  .mm-concept-index .tab::after{transition:none}
}

.mm-concept-index .lede{max-width:70ch;line-height:1.75;color:#5C7256;margin:0 0 clamp(1.5rem,3vw,2rem);font-size:.9375rem}


.mm-concept-index .grid{display:grid;gap:1rem}
.mm-concept-index .grid--two{grid-template-columns:1fr}
@media(min-width:760px){
  .mm-concept-index .grid--two{grid-template-columns:repeat(2,1fr)}
}

.mm-concept-index .card{
  display:block;
  padding:1.75rem;
  border:1px solid #CAE5C1;
  background:#fff;
  text-decoration:none;
  color:inherit;
  border-radius:2px;
  transition:border-color .25s,box-shadow .25s,transform .25s;
}
.mm-concept-index a.card:hover{
  border-color:#7BA673;
  box-shadow:0 14px 40px -28px rgba(56,77,52,.7);
  transform:translateY(-2px);
}

.mm-concept-index .no{
  font-size:.6875rem;
  letter-spacing:.2em;
  color:#7BA673;
}

/* The single card in each of the first two tabs carries the weight of the
   whole panel, so it is given the room to: a wider plate, larger type, and a
   standing status line above the name. */
.mm-concept-index .card--lead{padding:clamp(1.75rem,4vw,2.75rem);background:#E6F8E1;border-color:#B6DCAC}
.mm-concept-index .card--lead h2{font-size:clamp(1.6rem,1.35rem + 1.2vw,2.25rem);margin:.75rem 0 .85rem;letter-spacing:-.02em}
.mm-concept-index .card--lead p{font-size:1rem;line-height:1.8;max-width:64ch;margin-bottom:1.5rem}
.mm-concept-index .status{display:inline-flex;align-items:center;gap:.55rem;font:500 .625rem/1 Inter,sans-serif;
  letter-spacing:.22em;text-transform:uppercase;color:#4A7345}
.mm-concept-index .status::before{content:"";width:.4rem;height:.4rem;border-radius:50%;background:#4A7345}
.mm-concept-index .card--lead .go{font-size:.8125rem}

/* A card that leaves this page for another install. The only difference is
   the mark on the action line — the ten are not a lesser class of work, they
   are simply somewhere else, and dressing them differently would say the
   wrong thing. */
.mm-concept-index .card--out .go i{font-size:.7em}

/* the visually hidden note that says a link opens in a new tab */
.mm-concept-index .mm-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0}

.mm-concept-index .card h2{
  font-family:"DM Serif Display",Georgia,serif;
  font-weight:400;
  font-size:1.5rem;
  margin:.6rem 0 .6rem;
  color:#384D34;
}

.mm-concept-index .card p{
  margin:0 0 1.15rem;
  line-height:1.7;
  font-size:.9375rem;
  color:#5C7256;
}

.mm-concept-index .go{
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#384D34;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}

/* a concept whose page is not published yet reads as pending, not as a link */
.mm-concept-index .card.is-missing{opacity:.72}
.mm-concept-index .card.is-missing .go{color:#5C7256}

/* ---------- the two concept groups ---------- */
/* The margin is zeroed only when a group opens a panel directly under its
   standfirst. It used to be ":first-of-type", which matched the Homepage tab's
   only group as well — that one follows the lead card, not the standfirst, so
   the mint plate and "Also presented" ended up all but touching. */
.mm-concept-index .mmc-group{margin-top:clamp(2.75rem,5vw,4.25rem)}
.mm-concept-index .lede + .mmc-group{margin-top:0}
.mm-concept-index .mmc-group__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1.25rem;
  padding-bottom:1rem;margin-bottom:1.5rem;border-bottom:2px solid #384D34}
.mm-concept-index .mmc-group__head h2{font-family:"DM Serif Display",Georgia,serif;font-weight:400;
  font-size:clamp(1.35rem,1.15rem + 1vw,1.9rem);margin:0;color:#384D34;letter-spacing:-.02em}
.mm-concept-index .mmc-group__head span{font-size:.6875rem;letter-spacing:.22em;text-transform:uppercase;color:#7BA673}
.mm-concept-index .mmc-group__note{margin:-.5rem 0 1.5rem;font-size:.9375rem;line-height:1.75;color:#5C7256;max-width:70ch}

/* ---------- the review note ----------
   Production notes under a panel: what was transcribed, what was decided and
   what still needs an answer. Only the itineraries tab carries one today. */
.mm-concept-index .note{margin-top:clamp(2.5rem,5vw,3.5rem);padding:1.5rem;border:1px solid #CAE5C1;
  background:#E6F8E1;border-radius:2px;font-size:.9rem;line-height:1.8;color:#41533C}
/* the direct child is the note's own heading; a <b> inside a paragraph is
   just an emphasised phrase and must not become a second heading */
.mm-concept-index .note>b{display:block;font-size:.6875rem;letter-spacing:.2em;text-transform:uppercase;
  color:#7BA673;margin-bottom:.6rem}
.mm-concept-index .note p{margin:0 0 .85rem;max-width:82ch}
.mm-concept-index .note p:last-child{margin:0}
.mm-concept-index .note p b{color:#384D34;font-weight:600}
.mm-concept-index .note code{font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;
  background:#F3FFEF;border:1px solid #CAE5C1;border-radius:2px;padding:.1em .4em;color:#41533C}
