/* Karma Growth OS: interface styles.
   Follows karmainsure.com (decision UI-1, 29 Oct 2026): its theme colours, Lexend for headings,
   Work Sans for text, 6 px buttons in the primary green that turn dark on hover. Rules the website
   doesn't cover (secondary text, lines, status colours, focus rings) are marked "UI addition" and
   listed in docs/ui-spec.md. Rendered posts keep Camilla's templates; only the interface changes. */

@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url("fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap; src: url("fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url("fonts/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url("fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 500; font-display: swap; src: url("fonts/work-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-display: swap; src: url("fonts/work-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* karmainsure.com theme (WordPress presets) */
  --bg: #F3F3F1;        /* background */
  --ink: #19332D;       /* foreground; also the button hover */
  --primary: #30BD80;   /* primary: buttons, highlights */
  --tint: #F5FDED;      /* tertiary: light green sections */
  --soft: #A2CDAD;      /* foreground-alt */
  --grey: #8C9996;      /* secondary: decoration and borders only, too light for text */
  --white: #FFFFFF;
  /* UI additions, derived from the theme */
  --ink-2: #4C625C;     /* secondary text: ink mixed toward the background, 5.9:1 on --bg */
  --line: #DEE1DC;      /* hairlines and card borders */
  --flat: #E9EBE6;      /* quiet fills */
  --red: #B3261E;       /* blocking and reject only (Karma's signal red from the playbook) */
  --red-tint: #FBEDEC;

  --display: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-btn: 6px;      /* website buttons (0.375rem) */
  --r-card: 8px;
  --r-pill: 999px;
  --gap: 16px;
  --tabbar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--text); color: var(--ink); background: var(--bg); }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--primary); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; } /* UI addition */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- type ---------------------------------------------------------------------------------- */
h1, .h1 { font: 500 32px/1.2 var(--display); letter-spacing: -0.02em; margin: 0; }
h2, .h2 { font: 700 13px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink-2); }
h3, .h3 { font: 500 16px/1.35 var(--display); margin: 0; }
.display { font-family: var(--display); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font: 700 12px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* --- app shell --------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 0 24px; height: 60px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none;
  font: 500 22px/1 var(--display); letter-spacing: -0.02em; }
.logo svg { width: 22px; height: 22px; }
.logo small { font: 500 13px/1 var(--text); color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { padding: 8px 12px; border-radius: var(--r-btn); color: var(--ink); text-decoration: none; font-weight: 500; }
.mainnav a:hover { background: var(--flat); }
.mainnav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.mainnav svg { display: none; }
.me { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.me form { margin: 0; }
.page { max-width: 1240px; margin: 0 auto; padding: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; }
.narrow { max-width: 420px; margin: 48px auto; padding: 0 16px; }

/* --- buttons (website shape; colours from the approved combinations) ------------------------ */
.btn, button { font: 500 15px/1 var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-btn); border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn-primary, button.primary { background: var(--primary); border-color: var(--primary); color: var(--bg); font-weight: 500; } /* website button */
.btn-primary:hover, button.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--primary); border-color: var(--primary); }
.btn-danger { border-color: var(--red); color: var(--red); background: var(--white); }
.btn-danger:hover { background: var(--red-tint); }
.btn-quiet { border-color: transparent; }
.btn-quiet:hover { background: var(--flat); }
.btn[disabled], button[disabled], button.primary[disabled]:hover { opacity: .45; cursor: not-allowed; background: var(--primary); border-color: var(--primary); }
button.link { border: none; background: none; color: var(--ink); padding: 0; min-height: 0; font-weight: 500; }

/* --- surfaces ---------------------------------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card + .card { margin-top: var(--gap); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: var(--gap); }
.cols-dash { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m0 { margin: 0; } .mt { margin-top: var(--gap); } .mt-s { margin: 12px 0 0; } .mt-xs { margin: 6px 0 0; }
.tone-text-warn { color: var(--red); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* --- chips and pills --------------------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  font: 600 12px/1.2 var(--text); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-go { background: var(--soft); color: var(--ink); }
.tone-done { background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--soft); }
.tone-neutral { background: var(--flat); color: var(--ink-2); }
.tone-warn { background: var(--red-tint); color: var(--red); }
.tone-stop { background: var(--white); color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-btn);
  background: var(--flat); font: 600 12px/1.3 var(--text); color: var(--ink); }
.chip svg { width: 13px; height: 13px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg); font: 700 12px/1 var(--text); }
.count.warn { background: var(--red); color: var(--white); }

/* --- dashboard ---------------------------------------------------------------------------------- */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.stage { padding: 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.stage b { display: block; font: 500 28px/1 var(--display); letter-spacing: -0.02em; margin-top: 8px; }
.stage.is-zero { opacity: .55; }
.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; padding-top: 0; }
.task .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.task .grow { flex: 1; min-width: 0; }
.task a.cover { color: inherit; text-decoration: none; }
.dot.tone-go { background: var(--primary); } .dot.tone-warn { background: var(--red); } .dot.tone-neutral { background: var(--ink-2); }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { min-height: 150px; padding: 8px; border-radius: 12px; background: var(--flat); display: flex; flex-direction: column; gap: 8px; }
.day-head { display: flex; justify-content: space-between; font: 600 12px/1 var(--text); color: var(--ink-2); }
.day-head b { font: 500 18px/1 var(--display); color: var(--ink); }
.day.is-today { box-shadow: inset 0 0 0 2px var(--ink); }

/* post tile: thumbnail + platform + status (used in calendar, queue and dashboard) */
.tile { display: block; background: var(--white); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); }
.tile:hover { border-color: var(--ink); }
.tile .thumb { aspect-ratio: 4 / 5; background: var(--bg); overflow: hidden; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile .thumb.is-tall { aspect-ratio: 9 / 16; }
.tile .meta { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 4px; }
.tile .meta .time { font: 600 12px/1.2 var(--text); }
.tile .flagged { color: var(--red); font: 600 11px/1.2 var(--text); }
.tile .bar { height: 4px; }
.bar.tone-go { background: var(--primary); } .bar.tone-done { background: var(--soft); } .bar.tone-neutral { background: var(--line); }
.bar.tone-warn, .bar.tone-stop { background: var(--red); }

.qrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.qrow:first-of-type { border-top: 0; padding-top: 0; }
.qrow .who { grid-column: 1 / -1; }

.photo-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.photo-row:first-of-type { border-top: 0; padding-top: 0; }
.photo-row .ph { width: 44px; height: 44px; flex: none; border-radius: 8px; background: var(--tint); display: grid; place-items: center; }

.empty { padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-2); text-align: center; }

/* --- content studio ------------------------------------------------------------------------------ */
.studio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 24px; align-items: start; }
.studio-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.studio-head .crumbs { font-size: 14px; }
.studio-head h1 { font-size: 30px; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.stage-col { position: sticky; top: 84px; }
.viewer { background: var(--flat); border-radius: var(--r-card); padding: 20px; }
.slides { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding-bottom: 6px; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; justify-content: center; }
.slide figure { margin: 0; width: min(100%, 520px, calc((100vh - 250px) * 0.8)); }  /* a whole 4:5 slide fits on screen */
.slide img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 2px rgba(19,36,27,.08), 0 8px 24px rgba(19,36,27,.10); background: var(--white); }
.slide.is-tall figure { width: min(100%, 340px, calc((100vh - 250px) * 0.5625)); }
.slide figcaption { margin-top: 8px; font: 600 12px/1.2 var(--text); color: var(--ink-2); text-align: center; }
.slide-nav { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.slide-nav a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--white);
  color: var(--ink); text-decoration: none; font: 600 13px/1 var(--text); border: 1px solid var(--line); }
.source-note { margin-top: 12px; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.no-creative { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); }

.panel { display: flex; flex-direction: column; gap: var(--gap); }
.decision { border: 2px solid var(--ink); }
.decision .why { margin: 8px 0 14px; padding-left: 18px; }
.decision .why li { margin: 2px 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn-primary { flex: 1 1 160px; }

.caption { white-space: pre-wrap; font-size: 15px; line-height: 1.55; margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.slide-copy { border-left: 3px solid var(--primary); padding: 2px 0 2px 12px; margin: 10px 0; }
.slide-copy .field { font-size: 14px; }
.slide-copy .field span { color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }

details.section { border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 12px; }
details.section > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::after { content: "+"; font: 400 20px/1 var(--text); color: var(--ink-2); }
details.section[open] > summary::after { content: "–"; }
details.section .body { padding-top: 10px; }

.flag { padding: 10px 12px; border-radius: 10px; background: var(--red-tint); margin-top: 8px; }
.flag p { margin: 0; font-size: 14px; }
.flag .q { color: var(--ink-2); margin-top: 4px; font-size: 13px; }
.flag.advisory { background: var(--flat); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; }
.check .ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--text); }
.check .ic.ok { background: var(--primary); color: var(--white); }
.check .ic.block { background: var(--red-tint); color: var(--red); }
.check .ic.warn { background: var(--flat); color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.timeline li { padding: 6px 0 6px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.mobile-actions { display: none; }

/* --- forms ------------------------------------------------------------------------------------------ */
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
input[type=email], input[type=password], input[type=text], textarea, select {
  font: 400 16px/1.4 var(--text); padding: 11px 12px; border: 1px solid #CFCDC5; border-radius: var(--r-btn); background: var(--white); color: var(--ink); }
fieldset.roles { border: 1px solid var(--line); border-radius: var(--r-btn); display: flex; flex-direction: column; gap: 6px; }
.notice { background: var(--tint); color: var(--ink); border: 1px solid var(--soft); padding: 10px 14px; border-radius: var(--r-btn); }
.error { background: var(--red-tint); color: var(--red); padding: 10px 14px; border-radius: var(--r-btn); }
form.inline { display: inline; }
table.people { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-card); overflow: hidden; }
table.people th, table.people td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.inactive { color: var(--ink-2); }
td.actions { display: flex; flex-direction: column; gap: 6px; }

/* --- responsive -------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .cols-dash, .studio { grid-template-columns: minmax(0, 1fr); }
  .stage-col { position: static; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .page { padding: 16px; }
  .top { padding: 0 16px; height: 56px; }
  h1, .h1 { font-size: 26px; }
  .studio-head h1 { font-size: 24px; }
  .me .name { display: none; }
  /* main navigation becomes a bottom tab bar, reachable with a thumb */
  .mainnav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom));
    padding: 6px 4px env(safe-area-inset-bottom); background: var(--white); border-top: 1px solid var(--line); gap: 0; }
  .mainnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
    font: 600 11px/1.1 var(--text); border-radius: 10px; }
  .mainnav a[aria-current="page"] { background: var(--tint); color: var(--ink); }
  .mainnav svg { display: block; width: 22px; height: 22px; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage.is-zero { display: none; }  /* on a phone only what has posts in it */
  /* the week becomes a vertical agenda */
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; flex-direction: row; align-items: flex-start; }
  .day-head { flex-direction: column; align-items: flex-start; gap: 4px; width: 44px; flex: none; }
  .day .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; flex: 1; }
  .day .empty-day { flex: 1; align-self: center; }
  .viewer { padding: 12px; margin: 0 -16px; border-radius: 0; }
  .slide { flex-basis: 88%; }
  .slide figure { width: min(100%, 520px); }
  .slide.is-tall figure { width: min(100%, 300px); }
  /* decisions stay in reach while reading the post */
  .decision .actions { display: none; }
  .mobile-actions { display: flex; gap: 8px; position: fixed; z-index: 15; left: 0; right: 0;
    bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); }
  .mobile-actions .btn { flex: 1; padding: 0 10px; }
  .has-mobile-actions { padding-bottom: 72px; }
  table.people thead { display: none; }
  table.people td { display: block; border: none; padding: 4px 10px; }
  table.people tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
}

.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

/* --- milestone 3 additions ---------------------------------------------------------------------- */
textarea { font: 400 15px/1.5 var(--text); padding: 10px 12px; border: 1px solid #C9CEC8; border-radius: var(--r-btn); background: var(--white); color: var(--ink); resize: vertical; width: 100%; }
.answer { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.answer input[type=text] { font-size: 14px; padding: 8px 10px; }
.btn-sm, button.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; background: var(--white); }
.answer .btn-sm[value=confirm]:hover { background: var(--tint); }
.segmented { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r-btn); overflow: hidden; }
.segmented a { padding: 8px 14px; text-decoration: none; font-weight: 500; }
.segmented a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.weeknav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month .dow { font: 600 12px/1 var(--text); color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; padding: 4px; }
.mday { min-height: 110px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.mday.out { background: transparent; border-style: dashed; color: var(--ink-2); }
.mday .n { font: 500 14px/1 var(--display); }
.mpost { display: flex; align-items: center; gap: 4px; font: 500 12px/1.2 var(--text); text-decoration: none; color: var(--ink);
  padding: 3px 5px; border-radius: 4px; background: var(--flat); border-left: 3px solid var(--line); }
.mpost.tone-warn, .mpost.tone-stop { border-left-color: var(--red); } .mpost.tone-go { border-left-color: var(--primary); } .mpost.tone-done { border-left-color: var(--soft); }
.mpost svg { width: 12px; height: 12px; flex: none; }
.concept { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
.concept:first-of-type { border-top: 0; padding-top: 0; }
.concept .kv { grid-column: 1 / -1; }
.track-card h3 { margin-bottom: 4px; }
.hooks { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.strategy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
@media (max-width: 720px) {
  .month { grid-template-columns: 1fr; }
  .month .dow, .mday.out, .mday.empty { display: none; }
  .mday { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .concept { grid-template-columns: 1fr; }
}

/* --- milestone 4: photos ----------------------------------------------------------------------- */
.tabs a { padding: 8px 12px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--gap); }
.shot { display: flex; gap: 14px; text-decoration: none; color: var(--ink); padding: 14px; }
.shot:hover { border-color: var(--ink); }
.card + .shot, .shots .card + .card { margin-top: 0; }
.shot-thumb { width: 84px; height: 84px; flex: none; border-radius: var(--r-btn); background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-thumb svg { width: 28px; height: 28px; color: var(--ink-2); }
.shot-body { min-width: 0; }
.brief { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photos .card + .card { margin-top: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--flat); }
.photo-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
input[type=file] { font: inherit; max-width: 100%; min-width: 0; padding: 10px; border: 1px dashed var(--grey); border-radius: var(--r-btn); background: var(--tint); }
a.chip[aria-current] { background: var(--ink); color: var(--bg); }
@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tabs a { flex: 1; text-align: center; padding: 8px 4px; font-size: 14px; }
}

/* --- milestone 5: jobs ----------------------------------------------------------------------- */
.jobline { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.jobline:first-of-type { border-top: 0; padding-top: 0; }
.paid { border: 1px solid var(--soft); background: var(--tint); border-radius: var(--r-card); padding: 12px 14px; }
.paid h3 { margin-bottom: 4px; }
pre.tech { white-space: pre-wrap; font-size: 12px; overflow-x: auto; max-height: 420px; background: var(--flat); padding: 10px; border-radius: var(--r-btn); }
.me a[aria-current] { font-weight: 600; }
a.pill { text-decoration: none; }
/* small buttons keep their variant colours; inline icons stay text-sized */
.btn-sm.primary, button.primary.btn-sm { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.btn-sm.btn-dark, button.btn-dark.btn-sm { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-sm.btn-danger { background: var(--white); color: var(--red); border-color: var(--red); }
.source-note svg, p svg, .check svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
