/* ==========================================================================
   STROOM Canvas — Design system
   Eén stylesheet voor alle pagina's: tokens + componenten + pagina-secties.
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  --ink:    #0f172a;   /* koppen */
  --text:   #334155;   /* body */
  --muted:  #64748b;   /* secundair */
  --faint:  #94a3b8;   /* placeholders / iconen */
  --line:   #e5e9f0;   /* randen */
  --line-2: #eef1f6;
  --bg:     #f4f6fb;   /* app-achtergrond */
  --surface:#ffffff;

  --brand:      #1E3A8A;
  --brand-ink:  #172554;
  --brand-soft: #eef2ff;

  --radius:    16px;
  --radius-sm: 11px;
  --radius-xs: 8px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 6px rgba(15,23,42,.05);
  --shadow:    0 6px 20px rgba(15,23,42,.08);
  --shadow-lg: 0 18px 44px rgba(15,23,42,.16);

  --accent: var(--brand);   /* per-canvas overschreven via inline style */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--brand); text-decoration: none; }

.container { max-width: 1320px; width: 100%; margin: 0 auto; padding: 0 28px; }
.material-icons { font-size: 20px; line-height: 1; }

/* --------------------------------------------------------- Topbar / nav --- */
.topbar { position: sticky; top: 0; z-index: 100; background: var(--brand); color: #fff; }
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.wordmark { font-weight: 500; color: rgba(255,255,255,.82); }
.wordmark b { font-weight: 700; color: #fff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border-radius: 10px; font-size: 14px; font-weight: 550; color: rgba(255,255,255,.82);
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.2); color: #fff; }
.nav-link .material-icons { font-size: 19px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar .icon-btn { color: rgba(255,255,255,.85); }
.topbar .icon-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #eef1f8; }

/* -------------------------------------------------------------- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .05s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn .material-icons { font-size: 19px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { filter: brightness(.94); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-subtle { background: var(--line-2); color: var(--ink); }
.btn-subtle:hover { background: #e3e8f1; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #cbd5e1; background: #fbfcfe; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-icon { width: 40px; padding: 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--faint); cursor: pointer; transition: background .16s, color .16s;
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.danger:hover { background: #fee2e2; color: #dc2626; }

/* ---------------------------------------------------- Chips / badges ------ */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: var(--accent);
}
.chip-soft {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line);
  cursor: pointer; transition: all .16s;
}
.chip-soft:hover { border-color: #cbd5e1; color: var(--ink); }
.chip-soft.active { background: var(--brand-soft); border-color: transparent; color: var(--brand); font-weight: 700; }
.chip-soft .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ------------------------------------------------------------- Cards ------ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-xs);
  font-family: var(--font-sans); font-size: 15px; color: var(--ink); background: #fff; transition: border-color .16s, box-shadow .16s;
}
textarea.input { height: auto; padding: 11px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.input::placeholder { color: var(--faint); }

/* --------------------------------------------------------- Modal ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(15,23,42,.42); backdrop-filter: blur(2px); }
.modal.show { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.divider-text { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 12.5px; margin: 18px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* --------------------------------------------------------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500; z-index: 1200; opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s;
  display: flex; align-items: center; gap: 9px; max-width: 90vw;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: #dc2626; }
.toast .material-icons { font-size: 18px; }

/* ==================================================== LOGIN =============== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #e7ecff 0%, var(--bg) 55%); }
.login-card { width: 100%; max-width: 430px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 40px; }
.login-card .mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #6D28D9); color: #fff; margin-bottom: 20px; }
.login-card .mark .material-icons { font-size: 26px; }
.login-card .mark .brand-logo { height: 28px; width: auto; }
.login-card h1 { font-size: 26px; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.login-card .btn { width: 100%; height: 46px; margin-top: 6px; }
.form-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }

/* ==================================================== OVERZICHT =========== */
.page { padding: 40px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; }
.page-title { font-size: 26px; }
.page-sub { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }

.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cv-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s; }
.cv-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #dbe2ee; }
.cv-card .accent { height: 5px; background: var(--accent); }
.cv-card .cv-body { padding: 18px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.cv-card .cv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cv-card h3 { font-size: 17px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-card .cv-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-card .cv-meta { color: var(--faint); font-size: 12px; margin-bottom: 14px; }
.cv-card .cv-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.fav-btn { position: absolute; top: 14px; right: 14px; background: none; border: none; cursor: pointer; font-size: 20px; color: #cbd5e1; transition: transform .15s, color .15s; line-height: 1; }
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.active { color: #f59e0b; }

.empty-state { text-align: center; padding: 60px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty-state .material-icons { font-size: 40px; color: var(--faint); }
.empty-state p { color: var(--muted); margin: 12px 0 20px; }

.type-option { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; transition: all .16s; background: #fff; }
.type-option:hover { border-color: #cbd5e1; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.type-option.selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.type-option p { color: var(--muted); font-size: 13px; margin-top: 9px; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ==================================================== KAART =============== */
.map-intro { color: var(--muted); font-size: 15px; max-width: 900px; margin: 26px 0 6px; }
.map-intro strong { color: var(--ink); font-weight: 600; }
.row-label { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); margin: 34px 0 14px; }
.row-label .dot { width: 9px; height: 9px; border-radius: 50%; }
.row-label.r-fundament .dot { background: #4338CA; }
.row-label.r-doelgroep .dot { background: #D97706; }
.row-label.r-product   .dot { background: #0D9488; }

.map-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.doelgroepen-row .map-card { grid-column: span 2; }

.map-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs);
  min-height: 176px; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; transition: box-shadow .18s, transform .18s, border-color .18s; }
.map-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #dbe2ee; }

.map-card-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px; text-align: center; }
.map-card-empty .plus { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1.5px dashed #cbd5e1; color: #94a3b8; transition: all .18s; }
.map-card:hover .map-card-empty .plus { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.map-card-empty .card-title { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: #475569; }

.map-card-header { color: #fff; padding: 11px 15px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.map-card-body { padding: 14px 15px; display: flex; flex-direction: column; flex: 1; }
.map-card-body .card-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.map-card-body .card-description { font-size: 12.5px; color: var(--muted); line-height: 1.45; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.map-card-body .card-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.map-card-body .card-link { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.map-card-body .card-remove { width: 30px; height: 30px; border: none; background: none; color: #b6c0cf; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.map-card-body .card-remove:hover { background: #fee2e2; color: #dc2626; }

/* canvas-lijst in kaart-modal */
.canvas-list { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.canvas-list-item { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: all .16s; }
.canvas-list-item:hover { border-color: #cbd5e1; background: #fbfcfe; }
.canvas-list-item.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.canvas-list-item.disabled { opacity: .55; cursor: not-allowed; }
.canvas-list-item-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.canvas-list-item-desc { font-size: 12.5px; color: var(--muted); }
.canvas-used-badge { background: #fee2e2; color: #b91c1c; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; margin-left: 8px; }
.list-empty { text-align: center; color: var(--muted); padding: 22px; font-size: 14px; }

@media (max-width: 1150px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } .map-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .grid-cards { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: 1fr; }
  .nav-link span { display: none; }
}

/* ==================================================== CANVAS EDITOR ======= */
.editor-topbar { background: var(--accent); }
.editor-topbar .accent-line { display: none; }
.editor-topbar .chip { background: rgba(255,255,255,.22); color: #fff; }
.editor-topbar .btn-primary { background: #fff; color: var(--accent); }
.editor-topbar .btn-primary:hover { background: rgba(255,255,255,.88); filter: none; }
.canvas-shell { max-width: 1320px; margin: 26px auto 90px; padding: 0 28px; }

.canvas-header { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 26px; margin-bottom: 22px; position: relative; }
.canvas-header::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.title-section { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.title-wrapper { display: flex; align-items: center; gap: 6px; }
.canvas-main-title { font-family: var(--font-display); font-size: 25px; color: var(--ink); }
.story-type-wrapper { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; }
.story-type-text { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.canvas-description { color: var(--muted); font-size: 14px; line-height: 1.55; }
.description-section { display: flex; align-items: flex-start; gap: 6px; }
.description-wrapper { flex: 1; }

.masonry-row { display: flex; gap: 20px; }
.masonry-column { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.canvas-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 20px 16px; transition: box-shadow .18s, border-color .18s; }
.canvas-card:hover { box-shadow: var(--shadow); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.canvas-card .card-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; color: var(--ink); display: flex; align-items: flex-start; gap: 9px; line-height: 1.3; }
.canvas-card .card-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }
.info-icon { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--faint); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background .16s, color .16s; }
.info-icon:hover { background: var(--line-2); color: var(--brand); }
.info-icon .material-icons { font-size: 19px; }

.writing-area { position: relative; }
.note-area {
  width: 100%; border: none; resize: none; overflow: hidden; min-height: 32px; padding: 0 0 6px;
  font-family: var(--font-sans); font-size: 15px; line-height: 32px; color: var(--ink); background: transparent;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%25" height="32"><line x1="0" y1="31" x2="100%25" y2="31" stroke="%23eef1f6" stroke-width="1.5"/></svg>');
  background-repeat: repeat-y; background-size: 100% 32px;
}
.note-area:focus { outline: none; }
.note-area::placeholder { color: #b8c2d0; }
.note-area-1 { height: 32px; } .note-area-2 { height: 64px; } .note-area-3 { height: 96px; } .note-area-4 { height: 128px; }
.note-area-5 { height: 160px; } .note-area-6 { height: 192px; } .note-area-8 { height: 256px; } .note-area-9 { height: 288px; } .note-area-10 { height: 320px; }

.edit-button, .save-button { border: none; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .16s, color .16s; }
.edit-button { background: transparent; color: var(--faint); }
.edit-button:hover { background: var(--line-2); color: var(--ink); }
.edit-button .material-icons, .save-button .material-icons { font-size: 18px; }
.save-button { background: var(--accent); color: #fff; }
.title-input { font-family: var(--font-display); font-size: 22px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; margin-right: 8px; color: var(--ink); }
.title-input:focus { outline: none; border-color: var(--accent); }
.description-input { font-family: var(--font-sans); font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; margin-right: 8px; resize: vertical; min-height: 70px; width: 100%; color: var(--ink); }
.description-input:focus { outline: none; border-color: var(--accent); }

/* info-lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 1000; opacity: 0; transition: opacity .25s; padding: 20px; }
.lightbox.show { display: flex; opacity: 1; }
.lightbox-content { background: #fff; width: 100%; max-width: 520px; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; transform: scale(.96); transition: transform .25s; }
.lightbox.show .lightbox-content { transform: scale(1); }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; color: #fff; }
.lightbox-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.lightbox-close { background: rgba(255,255,255,.18); border: none; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-body { padding: 22px; font-size: 14.5px; line-height: 1.65; color: var(--text); }
.lightbox-body em { color: var(--ink); font-style: normal; font-weight: 600; }
.lightbox-body p { margin-bottom: 4px; }
.lightbox-sources { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.lightbox-sources-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.lightbox-source { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--accent); }
.lightbox-source:hover { text-decoration: underline; }
.lightbox-source .material-icons { font-size: 16px; }

/* notification (canvas autosave) */
.notification { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120%); background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 500; z-index: 1200; opacity: 0;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s; }
.notification.show { transform: translate(-50%, 0); opacity: 1; }
.notification.error { background: #dc2626; }

.editor-actions { display: flex; align-items: center; gap: 6px; }
@media (max-width: 820px) {
  .masonry-row { flex-direction: column; }
  .canvas-shell { padding: 0 18px; }
  .editor-actions { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 18px; justify-content: space-around; z-index: 99; }
  .canvas-shell { margin-bottom: 90px; }
}

/* ==================================================== METHODE ============= */
.method { padding: 44px 0 90px; max-width: 900px; }
.method-hero { margin-bottom: 40px; }
.method-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.method-hero h1 { font-size: 32px; line-height: 1.2; margin-bottom: 14px; }
.method-hero p { font-size: 17px; line-height: 1.7; color: var(--text); }
.method-hero strong { color: var(--ink); font-weight: 600; }

.method-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 32px; margin-bottom: 22px; }
.method-section h2 { font-size: 22px; margin-bottom: 14px; }
.method-section > p { font-size: 15.5px; line-height: 1.7; color: var(--text); margin-bottom: 12px; }
.method-section em { font-style: normal; font-weight: 600; color: var(--ink); }
.method-section strong { color: var(--ink); font-weight: 600; }
.method-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.method-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.method-list { list-style: none; margin: 6px 0 4px; display: flex; flex-direction: column; gap: 9px; }
.method-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.6; color: var(--text); }
.method-list li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.method-sources { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.method-source { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--brand); }
.method-source:hover { text-decoration: underline; }
.method-source .material-icons, .method-book .material-icons { font-size: 17px; }
.method-book { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.method-book em { font-style: italic; font-weight: 500; color: var(--ink); }

.method-flow .flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 6px; }
.flow-step { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 20px 18px; background: #fff; }
.flow-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.flow-step h3 { font-size: 17px; margin-bottom: 8px; }
.flow-step p { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 12px; }
.flow-frame { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); padding: 4px 10px; border-radius: 999px; }

.source-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.source-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .16s, box-shadow .16s, transform .16s; }
.source-item:hover { border-color: #cbd5e1; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.source-item > .material-icons { color: var(--brand); font-size: 24px; }
.source-item div { display: flex; flex-direction: column; }
.source-item strong { color: var(--ink); font-size: 15px; }
.source-item span { color: var(--muted); font-size: 13.5px; }
.method-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) { .method-flow .flow-grid { grid-template-columns: 1fr; } .method-hero h1 { font-size: 26px; } }
