/* ============================================================
   makskulish.com — shared stylesheet
   One file for all pages. Edit colours in :root / [data-theme="dark"].
   ============================================================ */

/* ---------- Inter, self-hosted ----------
   Served from /fonts/. latin-ext carries the Czech diacritics; the
   unicode-range split means a browser fetches it only when needed. */
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url('/fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url('/fonts/inter-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap;
  src:url('/fonts/inter-latin-800-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap;
  src:url('/fonts/inter-latin-ext-800-normal.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root{
  --bg:#ffffff;
  --bg-soft:#f7f7f5;
  --text:#14161a;
  --text-muted:#5f646d;
  --border:#e5e5e1;
  --accent:#c2410c;
  --accent-soft:#fdf0e9;
  --card-bg:#ffffff;
  --shadow:0 1px 2px rgba(20,22,26,.04), 0 10px 30px rgba(20,22,26,.05);
  --radius:14px;
  --max-w:860px;
}

[data-theme="dark"]{
  --bg:#101216;
  --bg-soft:#16181d;
  --text:#f0f1f3;
  --text-muted:#9aa0aa;
  --border:#262930;
  --accent:#f97316;
  --accent-soft:#241610;
  --card-bg:#16181d;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]):not([data-theme="dark"]){
    --bg:#101216;
    --bg-soft:#16181d;
    --text:#f0f1f3;
    --text-muted:#9aa0aa;
    --border:#262930;
    --accent:#f97316;
    --accent-soft:#241610;
    --card-bg:#16181d;
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  transition:background .2s ease, color .2s ease;
}
a{ color:inherit; }

.wrap{ max-width:var(--max-w); margin:0 auto; padding:0 24px; }

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:20;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 24px; max-width:var(--max-w); margin:0 auto;
}
.brand{
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none; font-weight:700; font-size:15px; letter-spacing:-.01em;
  flex-shrink:0;
}
/* rounded photo used as the logo */
.brand-photo{
  width:34px; height:34px; border-radius:999px; object-fit:cover;
  border:1px solid var(--border); display:block;
}
.nav-links{
  display:flex; align-items:center; gap:20px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{ text-decoration:none; font-size:14px; font-weight:500; color:var(--text-muted); }
.nav-links a:hover{ color:var(--text); }
.nav-links a.active{ color:var(--text); font-weight:600; }

.theme-toggle{
  border:1px solid var(--border); background:var(--bg-soft); color:var(--text);
  width:34px; height:34px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:15px; line-height:1; flex-shrink:0;
}
.theme-toggle:hover{ border-color:var(--accent); }

/* ---------- Typography ---------- */
h1{
  font-size:clamp(2rem,4.6vw,2.9rem); font-weight:800;
  letter-spacing:-.025em; margin:0 0 10px; line-height:1.12;
}
h2.page-h2{
  font-size:clamp(1.3rem,2.6vw,1.6rem); font-weight:800;
  letter-spacing:-.02em; margin:0 0 12px;
}
.section-title{
  font-size:12px; font-weight:700; text-transform:uppercase;
  letter-spacing:.09em; color:var(--text-muted); margin:0 0 20px;
}
.lead{ font-size:1.06rem; max-width:64ch; }
.lead strong{ font-weight:700; }
.muted{ color:var(--text-muted); }

/* ---------- Hero ---------- */
.hero{ padding:72px 0 40px; }
.eyebrow{
  display:inline-block; font-size:18px; font-weight:600;
  color:var(--accent); background:var(--accent-soft);
  padding:5px 12px; border-radius:999px; margin-bottom:20px;
}
.hero-grid{ display:grid; grid-template-columns:1fr 132px; gap:32px; align-items:start; }
.hero-photo{
  width:132px; height:132px; border-radius:999px; object-fit:cover;
  border:1px solid var(--border); box-shadow:var(--shadow); display:block;
}
@media (max-width:640px){
  .hero-grid{ grid-template-columns:1fr; gap:24px; }
  .hero-photo{ width:104px; height:104px; }
}

/* ---------- Buttons ---------- */
.cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px; border-radius:10px; text-decoration:none;
  font-size:14px; font-weight:600; border:1px solid var(--border);
  transition:transform .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-1px); border-color:var(--accent); }
.btn-primary{ background:var(--text); color:var(--bg); border-color:var(--text); }
.btn-primary:hover{ border-color:var(--text); opacity:.9; }

/* ---------- Sections ---------- */
section{ padding:48px 0; border-top:1px solid var(--border); }
section.no-rule{ border-top:none; }
main{ padding-bottom:20px; }

/* ---------- Stat row ---------- */
.stats{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:20px; padding:32px 0;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.stat-num{
  font-size:clamp(1.6rem,3.2vw,2.1rem); font-weight:800;
  letter-spacing:-.02em; color:var(--accent); line-height:1.1; margin:0 0 4px;
}
.stat-label{ font-size:13px; color:var(--text-muted); margin:0; line-height:1.45; }

/* ---------- Cards grid (What I do) ---------- */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.card{
  background:var(--card-bg); border:1px solid var(--border);
  border-radius:var(--radius); padding:20px; box-shadow:var(--shadow);
}
.card h3{ margin:0 0 8px; font-size:14px; font-weight:700; color:var(--accent); }
.card p{ margin:0; font-size:13.5px; color:var(--text-muted); line-height:1.6; }

/* ---------- Testimonials ---------- */
.testimonials{ display:flex; flex-direction:column; gap:18px; }
.testimonial{
  background:var(--card-bg); border:1px solid var(--border);
  border-radius:var(--radius); padding:22px 24px; box-shadow:var(--shadow);
}
.testimonial blockquote{
  margin:0 0 16px; font-size:14.5px; line-height:1.65;
  border-left:3px solid var(--accent); padding-left:16px;
}
.t-person{ display:flex; align-items:center; gap:12px; }
.t-avatar{
  width:57px; height:57px; border-radius:999px; flex-shrink:0;
  background:var(--accent-soft); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color:var(--accent);
  object-fit:cover;                 /* applies when .t-avatar is an <img> */
}
a.t-avatar-link{ display:block; flex-shrink:0; line-height:0; }

/* the logo tile is a second link to the same event, hence aria-hidden in the markup */
.event-logo-link{ display:block; line-height:0; flex-shrink:0; }
.event-logo-link:hover .event-logo{ opacity:.72; }
a.t-avatar-link:hover .t-avatar{ border-color:var(--accent); }

/* LinkedIn mark next to a recommender's name */
.li-icon{
  width:13px; height:13px; vertical-align:-1px; margin-left:5px;
  fill:#0A66C2;                     /* LinkedIn brand blue */
  flex-shrink:0;
}
[data-theme="dark"] .li-icon{ fill:#4DA3E8; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]):not([data-theme="dark"]) .li-icon{ fill:#4DA3E8; }
}
.t-name a:hover .li-icon{ opacity:.75; }
.t-name{ margin:0; font-size:17px; font-weight:700; }
.t-name a{ text-decoration:none; }
.t-name a:hover{ color:var(--accent); }
.t-role{ margin:0; font-size:15px; color:var(--text-muted); line-height:1.45; }
.t-rel{ font-size:11.5px; color:var(--text-muted); font-style:italic; }

/* ---------- Timeline (experience) ---------- */
.timeline{ display:flex; flex-direction:column; gap:30px; }
.job{ display:grid; grid-template-columns:160px 1fr; gap:18px; }
.job-dates{ font-size:12.5px; color:var(--text-muted); font-weight:600; padding-top:3px; }
.job-title{ margin:0 0 2px; font-size:15.5px; font-weight:700; }
.job-company{ font-size:13.5px; color:var(--text-muted); margin:0 0 8px; }
.job-bullets{ margin:0; padding-left:18px; font-size:14px; }
.job-bullets li{ margin-bottom:5px; }
.job-bullets li::marker{ color:var(--accent); }
@media (max-width:640px){ .job{ grid-template-columns:1fr; gap:4px; } }

/* ---------- Certifications ---------- */
.cert-group{ margin-bottom:26px; }
.cert-group h3{ font-size:13px; font-weight:700; margin:0 0 10px; }
.cert-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.cert-list li{
  display:flex; flex-wrap:wrap; gap:8px; align-items:baseline;
  font-size:14px; padding-bottom:8px; border-bottom:1px solid var(--border);
}
.cert-issuer{ font-size:12.5px; color:var(--text-muted); }
.cert-year{ font-size:12px; color:var(--text-muted); margin-left:auto; white-space:nowrap; }

/* ---------- Event filters ---------- */
.filters{ margin-bottom:28px; display:flex; flex-direction:column; gap:10px; }
.filter-group{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.filter-label{
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  color:var(--text-muted); width:64px; flex-shrink:0;
}
.chip{
  font-size:12.5px; font-weight:600; padding:6px 13px; border-radius:999px;
  border:1px solid var(--border); background:var(--bg-soft); color:var(--text-muted);
  cursor:pointer; transition:all .12s ease; user-select:none;
}
.chip:hover{ border-color:var(--accent); color:var(--text); }
.chip.on{ background:var(--accent); border-color:var(--accent); color:#fff; }
@media (max-width:560px){ .filter-label{ width:100%; } }

/* ---------- Events ---------- */
.event-list{ display:flex; flex-direction:column; gap:14px; }
.event{
  background:var(--card-bg); border:1px solid var(--border);
  border-radius:var(--radius); padding:18px 20px; box-shadow:var(--shadow);
}
.event.hidden{ display:none; }
.event.planned{ border-color:var(--accent); }
.event-head{ display:flex; align-items:center; gap:14px; margin-bottom:12px; }
/* Logo tile. Wide rather than square, because most conference logos are
   wordmarks (300x54, 1200x360). Always sits on white so a dark logo stays
   readable in dark mode. Falls back to the event's initials when no image
   file is present. */
.event-logo{
  position:relative; width:100px; height:52px; border-radius:8px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; text-align:center;
  background:#ffffff;
  font-size:13px; font-weight:800; letter-spacing:.01em; color:var(--accent);
}
.event-logo.three{ font-size:11.5px; }
/* The initials are a fallback only. They stay hidden while an image is present,
   otherwise they show through the transparent parts of a logo. theme.js adds
   .no-logo when no image file loads. */
.event-logo span{ display:none; }
.event-logo.no-logo span{ display:block; }
.event-logo img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:contain; padding:2px 5px;
}
.event-name{ margin:0; font-size:16px; font-weight:700; }
.event-name a{ text-decoration:none; }
.event-name a:hover{ color:var(--accent); }
/* Meta row: date, place, website — one filled icon each (same language as
   the Contact page icons), muted text, middle dots as separators. */
.event-meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px;
  font-size:13px; color:var(--text-muted); margin-bottom:12px;
}
.event-meta .sep{ color:var(--border); }
.event-meta .mi{ display:inline-flex; align-items:center; gap:5px; }
.event-meta svg{ width:13px; height:13px; flex-shrink:0; fill:var(--accent); }
.event-meta a{ color:var(--text-muted); text-decoration:none; }
.event-meta a:hover{ color:var(--accent); }
.event-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.tag{ font-size:11.5px; font-weight:600; padding:4px 11px; border-radius:999px; }
.tag-topic{ background:var(--accent-soft); color:var(--accent); }
.tag-country{ background:var(--accent-soft); color:var(--accent); }
.tag-price.free{ background:var(--accent-soft); color:var(--accent); }
.tag-price.paid{ background:var(--accent-soft); color:var(--accent); }
.event-desc{ margin:0; font-size:13.5px; line-height:1.6; color:var(--text); }
.badge{
  display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--accent); background:var(--accent-soft);
  padding:3px 9px; border-radius:999px; margin-bottom:14px;
}

/* ---------- Placeholder / empty states ---------- */
.placeholder{
  border:1px dashed var(--border); border-radius:var(--radius);
  padding:26px; color:var(--text-muted); font-size:14px;
}
.placeholder h3{ margin:0 0 6px; font-size:15px; font-weight:700; color:var(--text); }
.placeholder p{ margin:0; font-size:13.5px; }

/* ---------- Contact ---------- */
.contact-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.contact-list li{
  display:flex; align-items:center; gap:14px;
  border:1px solid var(--border); border-radius:var(--radius);
  padding:16px 20px; background:var(--card-bg);
}
.contact-list a{ text-decoration:none; font-weight:600; font-size:14.5px; }
.contact-list a:hover{ color:var(--accent); }
.contact-kind{ font-size:12.5px; color:var(--text-muted); margin-left:auto; }

/* ---------- Legal / prose pages ---------- */
.prose h2{ font-size:1.02rem; font-weight:700; margin:32px 0 10px; }
.prose h3{ font-size:.92rem; font-weight:700; margin:22px 0 8px; }
.prose p, .prose li{ font-size:14.5px; }
.prose ul{ padding-left:20px; }
.prose li{ margin-bottom:6px; }
.prose li::marker{ color:var(--accent); }
.prose table{ width:100%; border-collapse:collapse; font-size:13.5px; margin:14px 0; }
.prose th, .prose td{ text-align:left; padding:9px 10px; border-bottom:1px solid var(--border); vertical-align:top; }
.prose th{ font-weight:700; font-size:12.5px; }
.note{
  background:var(--bg-soft); border:1px solid var(--border);
  border-left:3px solid var(--accent); border-radius:10px;
  padding:16px 18px; font-size:13.5px; color:var(--text-muted); margin:0 0 30px;
}
.id-block{
  background:var(--bg-soft); border:1px solid var(--border);
  border-radius:var(--radius); padding:18px 20px; font-size:14px; margin:0 0 8px;
}
.id-block p{ margin:0 0 4px; }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border); padding:30px 0 46px; margin-top:40px; }
.footer-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.footer-links{ display:flex; flex-wrap:wrap; gap:16px; list-style:none; padding:0; margin:0; }
.footer-links a{ font-size:13px; text-decoration:none; color:var(--text-muted); }
.footer-links a:hover{ color:var(--text); }
.copyright{ font-size:12.5px; color:var(--text-muted); }

@media (max-width:720px){
  .nav-links{ gap:13px; }
  .nav-links .hide-sm{ display:none; }
  .brand span{ display:none; }
}

/* ============================================================
   Data section — world map + column chart
   ============================================================ */
.viz-head{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:20px; margin:0 0 28px;
}
.viz-num{
  font-size:clamp(1.5rem,3vw,2rem); font-weight:800; letter-spacing:-.02em;
  color:var(--accent); line-height:1.1; margin:0 0 4px;
}
.viz-lab{ font-size:13px; color:var(--text-muted); margin:0; line-height:1.45; }

.viz{ margin:0 0 34px; }
.viz figcaption{
  font-size:12.5px; font-weight:600; color:var(--text-muted);
  margin:0 0 12px; letter-spacing:.01em;
}

/* --- map --- */
.map-wrap{ position:relative; }
.map{ width:100%; height:auto; display:block; }
.map .c{ stroke:var(--bg); stroke-width:.6; vector-effect:non-scaling-stroke; transition:opacity .12s ease; }
.map .c:hover{ opacity:.75; cursor:default; }
.map .q-none{ fill:var(--bg-soft); }
.map .q0{ fill:#fde4d4; } .map .q1{ fill:#fbc39c; } .map .q2{ fill:#f79a63; }
.map .q3{ fill:#ee7434; } .map .q4{ fill:#d1500f; } .map .q5{ fill:#8f3308; }
[data-theme="dark"] .map .q0{ fill:#3b2314; } [data-theme="dark"] .map .q1{ fill:#5d3216; }
[data-theme="dark"] .map .q2{ fill:#8a441a; } [data-theme="dark"] .map .q3{ fill:#c2601f; }
[data-theme="dark"] .map .q4{ fill:#ef8442; } [data-theme="dark"] .map .q5{ fill:#ffb680; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]):not([data-theme="dark"]) .map .q0{ fill:#3b2314; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .map .q1{ fill:#5d3216; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .map .q2{ fill:#8a441a; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .map .q3{ fill:#c2601f; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .map .q4{ fill:#ef8442; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .map .q5{ fill:#ffb680; }
}
.map-tip{
  position:absolute; pointer-events:none; z-index:5;
  background:var(--card-bg); border:1px solid var(--border); border-radius:9px;
  box-shadow:var(--shadow); padding:9px 12px; font-size:12.5px; line-height:1.5;
  transform:translate(-50%,-115%); white-space:nowrap;
}
.map-tip strong{ display:block; font-size:13px; margin-bottom:3px; }
.map-tip span{ color:var(--text-muted); }
.map-legend{
  display:flex; align-items:center; gap:6px; margin-top:12px;
  font-size:11.5px; color:var(--text-muted);
}
.map-legend .lg i{ display:block; width:26px; height:9px; border-radius:2px; }
.map-legend .lg:first-of-type i{ border-radius:3px 2px 2px 3px; }
.map-legend .lg:last-of-type i{ border-radius:2px 3px 3px 2px; }
.map-legend i.q0{ background:#fde4d4; } .map-legend i.q1{ background:#fbc39c; }
.map-legend i.q2{ background:#f79a63; } .map-legend i.q3{ background:#ee7434; }
.map-legend i.q4{ background:#d1500f; } .map-legend i.q5{ background:#8f3308; }
[data-theme="dark"] .map-legend i.q0{ background:#3b2314; }
[data-theme="dark"] .map-legend i.q1{ background:#5d3216; }
[data-theme="dark"] .map-legend i.q2{ background:#8a441a; }
[data-theme="dark"] .map-legend i.q3{ background:#c2601f; }
[data-theme="dark"] .map-legend i.q4{ background:#ef8442; }
[data-theme="dark"] .map-legend i.q5{ background:#ffb680; }

/* --- column chart --- */
.chart-wrap{ overflow-x:auto; }
.chart{ width:100%; height:auto; min-width:420px; display:block; }
.chart .bar.s0{ fill:var(--accent); }
.chart .bar.s1{ fill:#7c9dff; }
[data-theme="dark"] .chart .bar.s1{ fill:#5f7fe0; }
.chart .bar.nodata{ fill:var(--border); }
.chart .barv{
  font-size:11px; font-weight:700; fill:var(--text-muted);
  text-anchor:middle; font-family:inherit;
}
.chart .nodata-t{ font-size:10px; fill:var(--text-muted); text-anchor:middle; font-family:inherit; }
.chart .xl{
  font-size:12px; font-weight:600; fill:var(--text-muted);
  text-anchor:middle; font-family:inherit;
}
.chart-legend{ display:flex; gap:18px; margin-top:10px; font-size:12.5px; color:var(--text-muted); }
.chart-legend .k{ display:inline-flex; align-items:center; gap:7px; }
.chart-legend .k::before{ content:""; width:11px; height:11px; border-radius:3px; }
.chart-legend .k.s0::before{ background:var(--accent); }
.chart-legend .k.s1::before{ background:#7c9dff; }
[data-theme="dark"] .chart-legend .k.s1::before{ background:#5f7fe0; }

.viz-note{
  font-size:12px; color:var(--text-muted); margin:18px 0 0;
  padding-top:14px; border-top:1px solid var(--border); max-width:70ch;
}

/* ============================================================
   Story timeline (About page)
   ============================================================ */
.story{ position:relative; padding-left:96px; }
.story::before{
  content:""; position:absolute; left:74px; top:8px; bottom:8px;
  width:2px; background:var(--border);
}
.story-item{ position:relative; padding-bottom:34px; }
.story-item:last-child{ padding-bottom:0; }
.story-year{
  position:absolute; left:-96px; top:-2px; width:60px; text-align:right;
  font-size:15px; font-weight:800; color:var(--accent); letter-spacing:-.01em;
}
.story-item::before{
  content:""; position:absolute; left:-27px; top:6px;
  width:11px; height:11px; border-radius:999px;
  background:var(--accent); border:2px solid var(--bg); box-sizing:content-box;
}
.story-role{ margin:0 0 2px; font-size:15.5px; font-weight:700; }
.story-org{ margin:0 0 8px; font-size:13.5px; color:var(--text-muted); }
.story-item p.story-body{ margin:0; font-size:14px; }
.story-item p.story-body + p.story-body{ margin-top:6px; }
.story-win{ color:var(--text-muted); }
@media (max-width:620px){
  .story{ padding-left:0; }
  .story::before{ display:none; }
  .story-item{ padding-bottom:28px; border-bottom:1px solid var(--border); margin-bottom:24px; }
  .story-item:last-child{ border-bottom:none; margin-bottom:0; }
  .story-item::before{ display:none; }
  .story-year{ position:static; width:auto; text-align:left; display:block; margin-bottom:4px; }
}

/* ---------- Certification chips (compact keyword cloud) ---------- */
.cert-cloud{ display:flex; flex-wrap:wrap; gap:8px; }
.cert-chip{
  display:inline-flex; align-items:baseline; gap:7px;
  border:1px solid var(--border); border-radius:999px;
  padding:6px 14px; background:var(--card-bg);
  font-size:13px; line-height:1.3;
}
.cert-chip b{ font-weight:600; }
.cert-chip span{ font-size:11.5px; color:var(--text-muted); white-space:nowrap; }

/* ============================================================
   Contact page — icon rows, booking card, billing block
   ============================================================ */
.contact-list{ display:flex; flex-direction:column; gap:2px; }
.contact-list li{
  display:flex; align-items:flex-start; gap:16px;
  border:none; border-radius:0; padding:14px 0; background:none;
}
.c-icon{
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  border:1px solid var(--border); background:var(--card-bg);
  display:inline-flex; align-items:center; justify-content:center;
}
.c-icon svg{ width:19px; height:19px; fill:var(--accent); display:block; }
.c-body{ min-width:0; padding-top:1px; }
.c-label{
  display:block; margin:0 0 3px;
  font-size:12.5px; color:var(--text-muted); line-height:1.3;
}
.c-value{ display:block; font-size:16px; font-weight:700; letter-spacing:-.01em; }
.c-value a{ text-decoration:none; }
.c-value a:hover{ color:var(--accent); }
.c-sub{ display:block; margin-top:3px; font-size:12.5px; color:var(--text-muted); }

/* booking */
.booking{
  display:flex; flex-wrap:wrap; align-items:center; gap:20px;
  background:var(--bg-soft); border:1px solid var(--border);
  border-radius:var(--radius); padding:24px 26px;
}
.booking-copy{ flex:1 1 300px; min-width:0; }
.booking-copy h3{ margin:0 0 5px; font-size:16px; font-weight:700; }
.booking-copy p{ margin:0; font-size:13.5px; color:var(--text-muted); }

/* billing */
.billing{
  border:1px solid var(--border); border-radius:var(--radius);
  padding:20px 24px; background:var(--card-bg);
  display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:16px 28px;
}
.billing div{ min-width:0; }
.billing dt{
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; color:var(--text-muted); margin:0 0 3px;
}
.billing dd{ margin:0; font-size:14px; font-weight:600; }
.no-spam{
  font-size:12.5px; color:var(--text-muted);
  border-left:3px solid var(--border); padding-left:14px; margin:22px 0 0;
}

/* ============================================================
   Article (blog post) typography + figures
   ============================================================ */
.post-head{ padding:64px 0 26px; border-bottom:1px solid var(--border); margin-bottom:34px; }
.post-series{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--accent); background:var(--accent-soft);
  padding:5px 12px; border-radius:999px; margin-bottom:18px;
}
.post-head h1{ font-size:clamp(1.8rem,4vw,2.5rem); margin:0 0 14px; }
.post-standfirst{ font-size:1.06rem; color:var(--text-muted); margin:0 0 18px; max-width:62ch; }
.post-meta{ font-size:13px; color:var(--text-muted); display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.post-meta .dot{ opacity:.5; }

.post{ max-width:70ch; }
.post h2{
  font-size:clamp(1.25rem,2.4vw,1.5rem); font-weight:800; letter-spacing:-.015em;
  margin:44px 0 14px; padding-top:8px;
}
.post h3{ font-size:1.02rem; font-weight:700; margin:30px 0 10px; }
.post h4{ font-size:.95rem; font-weight:700; margin:24px 0 8px; }
.post p, .post li{ font-size:16px; line-height:1.72; }
.post p{ margin:0 0 18px; }
.post ul, .post ol{ padding-left:22px; margin:0 0 20px; }
.post li{ margin-bottom:8px; }
.post li::marker{ color:var(--accent); }
.post a{ color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.post a:hover{ text-decoration-thickness:2px; }
.post strong{ font-weight:700; }
.post hr{ border:none; border-top:1px solid var(--border); margin:40px 0; }
.post blockquote{
  margin:0 0 20px; padding:2px 0 2px 20px; border-left:3px solid var(--accent);
  font-size:16px; color:var(--text);
}
.post blockquote p:last-child{ margin-bottom:0; }
.post code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.88em; background:var(--bg-soft); border:1px solid var(--border);
  border-radius:5px; padding:1px 5px;
}
.post table{
  width:100%; border-collapse:collapse; font-size:14.5px; margin:8px 0 24px;
}
.post .table-wrap{ overflow-x:auto; margin:0 0 24px; }
.post .table-wrap table{ margin:0; min-width:480px; }
.post th, .post td{
  text-align:left; padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:top;
}
.post thead th{
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--text-muted); border-bottom:2px solid var(--border);
}
.post tbody tr:last-child td{ border-bottom:none; }

/* inline SVG figures */
.post figure{ margin:30px 0; }
.post figure svg{
  width:100%; height:auto; display:block;
  border:1px solid var(--border); border-radius:var(--radius);
}
.post figcaption{ margin-top:9px; font-size:12.5px; color:var(--text-muted); }

/* post navigation */
.post-nav{
  display:flex; flex-wrap:wrap; gap:12px; margin-top:44px;
  padding-top:26px; border-top:1px solid var(--border);
}
.post-nav a{
  flex:1 1 220px; border:1px solid var(--border); border-radius:var(--radius);
  padding:14px 18px; text-decoration:none; background:var(--card-bg);
  transition:border-color .15s ease;
}
.post-nav a:hover{ border-color:var(--accent); }
.post-nav .pn-label{ display:block; font-size:11.5px; color:var(--text-muted); margin-bottom:3px; }
.post-nav .pn-title{ display:block; font-size:14.5px; font-weight:700; }

/* index list */
.post-list{ display:flex; flex-direction:column; gap:16px; }
.post-card{
  border:1px solid var(--border); border-radius:var(--radius);
  padding:22px 24px; background:var(--card-bg); box-shadow:var(--shadow);
  transition:border-color .15s ease;
}
.post-card:hover{ border-color:var(--accent); }
.post-card .pc-meta{ font-size:12.5px; color:var(--text-muted); margin:0 0 7px; }
.post-card h3{ margin:0 0 7px; font-size:17px; font-weight:700; letter-spacing:-.01em; }
.post-card h3 a{ text-decoration:none; }
.post-card h3 a:hover{ color:var(--accent); }
.post-card p{ margin:0; font-size:14px; color:var(--text-muted); line-height:1.6; }

/* ---------- Figure lightbox ----------
   Click a figure to open it full-screen; click again to zoom to full detail.
   The figure NODE IS MOVED into the overlay rather than cloned, so the SVG's
   id-scoped styles (#fig-pyramid .fg) keep working and no id is duplicated. */
.post figure{ cursor:zoom-in; }
.post figure svg{ pointer-events:none; }
body.lb-open{ overflow:hidden; }

.lightbox{
  position:fixed; inset:0; z-index:400; display:none;
  background:rgba(9,11,15,.95); padding:64px 22px 26px; overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.lightbox.on{ display:block; }
.lb-inner{ max-width:1500px; margin:0 auto; }
.lightbox figure{ margin:0; cursor:zoom-in; }
.lightbox figure svg{
  width:100%; height:auto; max-height:calc(100vh - 170px); display:block;
  background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius);
}
.lightbox.zoomed figure{ cursor:zoom-out; }
.lightbox.zoomed figure svg{ width:200%; max-width:none; max-height:none; }
.lightbox figcaption{
  margin-top:12px; font-size:13.5px; line-height:1.6; color:#d7dce4; text-align:center;
}
.lb-close{
  position:fixed; top:16px; right:20px; z-index:401;
  width:40px; height:40px; border-radius:50%; cursor:pointer;
  border:1px solid rgba(255,255,255,.32); background:rgba(0,0,0,.5);
  color:#fff; font-size:19px; line-height:1; font-family:inherit;
}
.lb-close:hover{ background:rgba(0,0,0,.75); }
.lb-hint{
  position:fixed; top:22px; left:24px; z-index:401;
  font-size:12px; font-weight:600; letter-spacing:.03em; color:rgba(255,255,255,.62);
}
@media (max-width:640px){
  .lightbox{ padding:58px 12px 18px; }
  .lb-hint{ display:none; }
}
