/* ==========================================================================
   COMPACT / "NEWSPAPER FRONT PAGE" EDITION
   Reuses the design tokens, reset, fonts, buttons, chips, and modal styles
   from style.css. Same card/surface language as the full site (not a
   separate hairline-and-monospace skin) — just laid out denser, in a
   two-column grid, with headline-first progressive disclosure.
   ========================================================================== */

.cwrap{ max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* this edition's chips never carry the little clickability dot the full site uses */
.skill-chip::after{ display: none; }

/* ---------- top bar ---------- */
.cbar{
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.cbar-inner{
  max-width: 1180px; margin: 0 auto; padding: .8rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.cbar-brand{
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--accent-solid); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  text-decoration: none;
}
.cbar-tag{
  margin: 0; flex: 1; font-family: var(--font-mono); font-size: .74rem;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em;
}
.cbar-actions{ display: flex; align-items: center; gap: .9rem; flex: none; }
.cbar-full-link{ font-size: .84rem; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.cbar-full-link:hover{ text-decoration: underline; }
.cbar .theme-toggle{ width: 32px; height: 32px; }
.cbar .theme-toggle svg{ width: 15px; height: 15px; }

/* ---------- masthead ---------- */
.masthead{
  max-width: 1180px; margin: 0 auto; padding: 2.2rem var(--gutter) 1.9rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "photo id"
    "photo tagline"
    "photo passions"
    "photo contact"
    "kpis  kpis";
  column-gap: 1.8rem; row-gap: .5rem;
  align-items: start;
}
.masthead-photo{
  grid-area: photo;
  width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(155deg, var(--accent-strong), var(--accent) 55%, #2d8a72);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem;
  border: 3px solid var(--surface); box-shadow: var(--shadow-md);
}
.masthead-photo img{ width: 100%; height: 100%; object-fit: cover; }
.masthead-id, .masthead-tagline, .masthead-passions, .masthead-contact, .masthead-kpis{ min-width: 0; }
.masthead-id{ grid-area: id; }
.masthead-id h1{ font-size: clamp(1.7rem, 2.8vw, 2.15rem); line-height: 1.08; margin: 0; }
.masthead-role{
  display: flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .84rem; color: var(--accent-strong); font-weight: 600; margin: .35rem 0 0;
}
.role-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.masthead-location{
  display: flex; align-items: center; gap: .4em;
  font-size: .84rem; color: var(--ink-faint); margin: .25rem 0 0;
}
.masthead-tagline{ grid-area: tagline; font-size: .9rem; color: var(--ink-soft); margin: .35rem 0 0; max-width: 60ch; line-height: 1.6; }
.masthead-passions{ grid-area: passions; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.masthead-contact{ grid-area: contact; display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .6rem; }
.masthead-contact a, .masthead-contact span{
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
  padding: .38em .85em;
  max-width: 100%; overflow-wrap: anywhere;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.masthead-contact svg{ width: 13px; height: 13px; }
.masthead-contact a:hover{ border-color: var(--accent); color: var(--accent-strong); }

.masthead-kpis{
  grid-area: kpis;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem;
  margin-top: 1.5rem;
}
.mk-card{
  text-align: center; padding: .65em .5em;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.mk-value{ font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--accent-strong); }
.mk-label{ font-size: .65rem; color: var(--ink-faint); line-height: 1.28; margin-top: .2rem; }

.direction-strip{
  max-width: 1180px; margin: 1.4rem auto 1.8rem; padding: 0 var(--gutter);
}
.direction-strip-inner{
  background: var(--focus-tint);
  border: 1px solid color-mix(in srgb, var(--focus) 35%, var(--line));
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
}
.direction-strip-inner .eyebrow{ color: var(--focus); margin-bottom: .5rem; }
.direction-strip-inner .eyebrow::before{ background: var(--focus); }
.direction-strip-inner p:last-child{
  margin: 0; font-size: .84rem; color: var(--ink); line-height: 1.55;
}
.direction-strip strong{ color: var(--focus); font-weight: 700; }

/* ---------- newspaper grid ---------- */
.newspaper-grid{
  max-width: 1180px; margin: 0 auto; padding: .4rem var(--gutter) 3rem;
  display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 3rem;
}
.col-main{ padding: 0 0 1.4rem; }
.col-side{ padding: 0 0 1.4rem; }
.col-title{
  display: flex; align-items: center; gap: .55em;
  font-size: .96rem; font-weight: 800; color: var(--ink);
  margin: 2rem 0 .9rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
}
.col-title::before{
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent);
}
.col-title:first-child{ margin-top: 0; }
.col-block{ font-size: .86rem; }
.col-block p{ font-size: .86rem; }

/* ---------- about (compact) ---------- */
.c-about-text{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}
.c-about-text p{ font-size: .8rem; margin: 0 0 .7em; line-height: 1.55; color: var(--ink-soft); }
.c-about-text p:last-child{ margin-bottom: 0; }

/* ---------- experience rows (role-level collapse, card style) ---------- */
.role-row{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: .9rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.role-row:last-child{ margin-bottom: 0; }
.role-row.is-open{ border-color: var(--accent); box-shadow: var(--shadow-sm); }

.role-head-block{ padding: 1rem 1.2rem 0; }
.role-head{ display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.role-title{ font-size: .94rem; font-weight: 700; }
.role-meta{ font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint); white-space: nowrap; }
.role-org{ font-size: .8rem; color: var(--accent-strong); font-weight: 600; margin-top: .15rem; }
.role-context-full{ font-size: .8rem; color: var(--ink-soft); margin: .5rem 0 0; line-height: 1.5; }
.role-context-full a{ color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

.role-toggle{
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: .7rem 1.2rem; font-family: inherit; color: var(--ink);
}
.role-count{ display: inline-flex; align-items: center; gap: .35em; font-size: .76rem; font-weight: 700; color: var(--focus); }
.role-count svg{ width: 12px; height: 12px; transition: transform .2s var(--ease); }
.role-row.is-open .role-count svg{ transform: rotate(90deg); }

.role-row.is-flash{ animation: flashHighlight 1.4s var(--ease); }

.role-detail{
  overflow: hidden; max-height: 0; opacity: 0;
  padding: 0 1.2rem;
  transition: max-height .32s var(--ease), opacity .25s var(--ease);
}
.role-row.is-open .role-detail{ max-height: 2400px; opacity: 1; padding-bottom: 1rem; }
.role-bullets{
  display: flex; flex-direction: column; gap: .6rem;
  padding-top: .7rem; margin-top: .1rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.role-bullet{ display: flex; align-items: flex-start; gap: .6em; }
.role-bullet-dot{
  flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin-top: .55em;
}
.role-bullet-body{ flex: 1; min-width: 0; }
.role-bullet-text{ font-size: .77rem; line-height: 1.48; color: var(--ink); margin: 0 0 .3rem; }
.role-bullet img.exp-bullet-photo{ max-width: 220px; border-radius: var(--radius-sm); }
.role-bullet .skill-chips{ gap: .32rem; }
.role-bullet .skill-chip{ padding: .3em .7em; font-size: .72rem; }

/* ---------- skills (dense cloud) ---------- */
.skills-compact-group{ margin-bottom: .85rem; }
.skills-compact-group:last-child{ margin-bottom: 0; }
.scg-label{ font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-faint); display: block; margin-bottom: .4rem; }
.skills-compact-group .skill-chips{ gap: .32rem; }
.skills-compact-group .skill-chip{ padding: .3em .7em; font-size: .72rem; }

/* ---------- education (compact, card style) ---------- */
.edu-compact-item{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem; margin-bottom: .9rem;
}
.edu-compact-item:last-child{ margin-bottom: 0; }
.edu-compact-school{ font-size: .94rem; font-weight: 700; }
.edu-compact-degree{ font-size: .82rem; color: var(--ink-soft); margin-top: .2rem; }
.edu-compact-period{ font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint); margin-top: .2rem; }
.edu-compact-item .skill-chips{ margin-top: .75rem; gap: .4rem; }

/* ---------- beyond the job (compact cards) ---------- */
.beyond-row{
  display: flex; align-items: center; gap: .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: .85rem 1.1rem; margin-bottom: .8rem;
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.beyond-row:last-child{ margin-bottom: 0; }
.beyond-row:hover{ border-color: var(--accent); box-shadow: var(--shadow-sm); }
.beyond-thumb{
  flex: none; width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center;
}
.beyond-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.beyond-thumb svg{ width: 42%; height: 42%; }
.beyond-title{ font-size: .88rem; font-weight: 700; color: var(--ink); }
.beyond-date{ font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint); margin-top: .15rem; }

/* ---------- linkedin (compact cards) ---------- */
.li-compact-row{
  display: block;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: .85rem 1.1rem; margin-bottom: .7rem;
  text-decoration: none; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.li-compact-row:last-child{ margin-bottom: 0; }
.li-compact-row:hover{ border-color: var(--accent); box-shadow: var(--shadow-sm); }
.li-compact-title{ font-size: .86rem; font-weight: 700; }
.li-compact-meta{ font-family: var(--font-mono); font-size: .7rem; color: var(--ink-faint); margin-top: .2rem; }

/* ---------- references (compact) ---------- */
.reference-compact{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem; font-size: .86rem;
}
.reference-compact blockquote{ margin: 0 0 .6rem; padding-left: .9rem; border-left: 2px solid var(--accent); color: var(--ink); line-height: 1.6; font-style: italic; }
.reference-compact .rq-who{ font-size: .78rem; color: var(--ink-faint); margin-bottom: 1rem; }
.reference-compact .rq-who:last-of-type{ margin-bottom: 0; }
.reference-compact .rq-who strong{ color: var(--ink); }
.reference-compact-note{ font-size: .76rem; color: var(--ink-faint); margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }

/* ---------- footer ---------- */
.cfooter{ border-top: 1px solid var(--line); padding: 1.6rem 0; }
.cfooter-inner{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.cfooter-inner p{ margin: 0; font-size: .82rem; color: var(--ink-faint); }
.cfooter-inner a{ font-size: .82rem; color: var(--accent-strong); text-decoration: none; }
.cfooter-inner a:hover{ text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .masthead-kpis{ grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.2rem; }
  .newspaper-grid{ grid-template-columns: 1fr; }
  .col-main{ border-bottom: 1px solid var(--line); padding: 0 0 .6rem; }
  .col-side{ padding: .2rem 0 0; }
}
@media (max-width: 560px){
  .masthead{ padding-top: 1.8rem; }
  .masthead-photo{ width: 84px; height: 84px; }
  .masthead-kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
