/* Pharma K Consulting — shared styles */

:root {
  --ink:    #1c3144;
  --panel:  #1c3144;
  --paper:  #f6f7f7;
  --card:   #ffffff;
  --steel:  #5a6b7a;
  --rule:   #d8dddf;
  --amber:  #b8061c;
  --red-bright: #e0485a;
  --ice:    #7fb6c4;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

h1, h2, h3, .sans {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; font-weight: 650; }

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}

.wordmark .row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wordmark .mark {
  height: 38px;
  width: 38px;
  flex: none;
  display: block;
}

.wordmark .tagline {
  height: 28px;
  width: auto;
  display: block;
}

.wordmark b {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 26rem) {
  .wordmark b { font-size: 0.8rem; letter-spacing: 0.03em; }
  .wordmark .mark { height: 30px; width: 30px; }
  .wordmark .tagline { height: 22px; }
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--steel);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }

/* ---------- dark hero band ---------- */

.band {
  background: var(--panel);
  color: #e8edef;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.band h1 { color: #fff; max-width: 18ch; }

.band .standfirst {
  color: #9fb0bb;
  font-size: 1.15rem;
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

.chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 1rem;
}

.chart-caption {
  color: #7c8f9b;
  font-family: "Archivo", sans-serif;
  font-size: 0.8rem;
  margin: 0.75rem 0 0;
  max-width: 60ch;
}

/* ---------- page head (inner pages) ---------- */

.pagehead {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}

.pagehead p { color: var(--steel); font-size: 1.15rem; }

/* ---------- generic section ---------- */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--rule); }

.lede { font-size: 1.15rem; }

/* ---------- rule-separated list (no cards) ---------- */

.entries { margin: 2rem 0 0; padding: 0; list-style: none; }

.entries li {
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 0.5rem 2.5rem;
  align-items: start;
}

.entries li:last-child { border-bottom: 1px solid var(--rule); }

.entries h3 { margin: 0; }

/* keep every paragraph after the heading in the right-hand column,
   so multi-paragraph entries do not wrap into the year column */
.entries li > *:not(h3) { grid-column: 2; }

.entries p { margin: 0; }

.entries .detail { color: var(--steel); }

@media (max-width: 40rem) {
  .entries li { grid-template-columns: 1fr; gap: 0.35rem; padding-block: 1.25rem; }
  .entries li > *:not(h3) { grid-column: auto; }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 3rem;
  margin-top: 2rem;
}

.contact-grid h3 { color: var(--steel); font-weight: 600; font-size: 0.95rem; }

.contact-grid a { text-decoration-color: var(--amber); text-underline-offset: 3px; }

.big-link {
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid var(--amber);
  display: inline-block;
  word-break: break-word;
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  color: var(--steel);
  font-family: "Archivo", sans-serif;
  font-size: 0.85rem;
}

.foot p { max-width: none; margin: 0 0 0.35rem; }

/* ---------- editorial notes for the draft ---------- */

.todo {
  background: #fdeff1;
  border-left: 3px solid var(--amber);
  padding: 0.75rem 1rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.85rem;
  color: #7d1220;
  margin: 1rem 0;
  max-width: var(--measure);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- booking button ---------- */

.btn {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 0.5rem;
}

.btn:hover { background: #8e0416; }

/* ---------- world map ---------- */

.map {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.75rem 0 0.75rem;
}

.map-caption {
  color: var(--steel);
  font-family: "Archivo", sans-serif;
  font-size: 0.85rem;
  max-width: 60ch;
}

/* ---------- readiness check ---------- */

.hidden { display: none; }

.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 1.5rem;
}

.topic-btn {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  padding: 1.1rem 1.2rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.topic-btn:hover { border-color: var(--amber); }

.topic-btn b {
  display: block;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.topic-btn span { color: var(--steel); font-size: 0.92rem; }

.q {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 1.4rem 0 0.9rem;
}

.q legend {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.7rem;
  max-width: var(--measure);
}

.opt {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.3rem 0;
  cursor: pointer;
  max-width: var(--measure);
}

.opt input { margin-top: 0.4rem; flex: none; accent-color: var(--amber); }

.btn-ghost {
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 0.5rem;
}

.btn-ghost:hover { border-color: var(--steel); }

.warn { color: var(--amber); font-family: "Archivo", sans-serif; font-size: 0.9rem; }

.score {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  color: var(--amber);
  line-height: 1;
  margin: 0.5rem 0 1rem;
}

.score small { font-size: 0.35em; color: var(--steel); font-weight: 600; }

.flags-head { margin-top: 2rem; }

.flags { margin: 0.75rem 0 0; padding-left: 1.15rem; max-width: var(--measure); }
.flags li { margin-bottom: 0.7rem; }

.result-cta { margin-top: 2rem; }

.privacy-note {
  color: var(--steel);
  font-family: "Archivo", sans-serif;
  font-size: 0.85rem;
  max-width: 60ch;
  margin-top: 1.5rem;
}

@media (max-width: 30rem) {
  .btn-ghost { margin-left: 0; margin-top: 0.6rem; display: block; }
}


/* ---------- news items ---------- */

.item-title {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.entries li > div > p:last-child { margin-bottom: 0; }
