/* Privacy Breach Response Planner (/resources/privacy-breach-planner).
   Lives on the guide sheet (guide-article.css supplies the --ga-* palette and the Fraunces / Manrope pairing).
   Loaded by this page only, so the print rules at the bottom can hide the site chrome outright. */

.bp {
    --bp-blue: #0074C4;
    --bp-blue-deep: #005A9C;
    --bp-b1: #dfe9e2; --bp-b1-ink: #2c5a3c;
    --bp-b2: #e9eccb; --bp-b2-ink: #58601c;
    --bp-b3: #f6dfb4; --bp-b3-ink: #7a4a05;
    --bp-b4: #f1c4bb; --bp-b4-ink: #8f2416;
    font-family: 'Manrope', -apple-system, sans-serif;
    color: var(--ga-ink);
    font-size: 15px;
    line-height: 1.6;
}
.bp *, .bp *::before, .bp *::after { box-sizing: border-box; }
.bp [hidden] { display: none !important; }
.bp button { font-family: inherit; }
.bp :focus-visible { outline: 2px solid var(--bp-blue); outline-offset: 2px; }

/* Trust strip */
.bp-trust { display: flex; gap: 10px; align-items: flex-start; background: #eaf1f6; border-left: 3px solid var(--bp-blue-deep); padding: 10px 14px; margin-bottom: 18px; color: var(--ga-ink-2); }
.bp-trust svg { flex: none; margin-top: 3px; color: var(--bp-blue-deep); }
.bp-trust p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.bp-link { background: none; border: 0; padding: 0; color: var(--bp-blue-deep); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Progress */
.bp-progress { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; counter-reset: bp; }
.bp-progress li { counter-increment: bp; }
.bp-progress button { width: 100%; background: none; border: 0; border-top: 3px solid var(--ga-line-2); padding: 7px 2px 0; text-align: left; font-size: 12px; font-weight: 700; color: var(--ga-muted); cursor: pointer; line-height: 1.3; }
.bp-progress button::before { content: counter(bp) ". "; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; }
.bp-progress li.is-done button { border-top-color: var(--bp-blue-deep); color: var(--ga-ink-2); }
.bp-progress li.is-current button { border-top-color: var(--ga-navy); color: var(--ga-navy); }

/* Steps */
.bp-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.bp-step > legend, .bp-step-head { display: block; padding: 0; margin: 0 0 8px; width: 100%; }
.bp-step-num { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bp-blue-deep); margin-bottom: 4px; }
.bp-step-title { display: block; font-family: 'Fraunces', Georgia, serif; font-size: clamp(22px, 3.4vw, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--ga-navy); margin: 0; }
.bp-step-title:focus { outline: none; }
.bp-lede { margin: 0 0 16px; color: var(--ga-ink-2); max-width: 680px; }
.bp-hint { font-size: 13px; color: var(--ga-muted); margin: 5px 0 0; line-height: 1.5; }
.bp-optional { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ga-muted); font-size: 12px; }
.bp-error { margin: 14px 0 0; padding: 8px 12px; background: #fbe9e6; border-left: 3px solid #b3261e; color: #7a1b14; font-weight: 600; font-size: 14px; }
.bp-loading, .bp-noscript { color: var(--ga-muted); }

/* Scenario cards */
.bp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bp-card { position: relative; display: block; background: #fff; border: 1.5px solid var(--ga-line-2); border-radius: 4px; padding: 12px 14px 13px; cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; }
.bp-card:hover { border-color: var(--bp-blue); }
.bp-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bp-card:has(input:checked) { border-color: var(--ga-navy); box-shadow: inset 0 0 0 1.5px var(--ga-navy); background: #f3f7fa; }
.bp-card:has(input:focus-visible) { outline: 2px solid var(--bp-blue); outline-offset: 2px; }
.bp-card-title { display: block; font-weight: 800; font-size: 14.5px; color: var(--ga-navy); line-height: 1.3; margin-bottom: 3px; }
.bp-card-text { display: block; font-size: 13px; color: var(--ga-ink-2); line-height: 1.45; }
.bp-now { margin-top: 16px; background: var(--ga-navy); color: #fff; padding: 14px 18px; }
.bp-now ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.bp-now li { margin-bottom: 4px; }
.bp-kicker { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bp-blue-deep); margin: 0 0 4px; }
.bp-now .bp-kicker { color: #9fd0f5; }

/* Fields */
.bp-field { margin-bottom: 18px; max-width: 420px; }
.bp-field > label, .bp-q > legend { display: block; font-weight: 800; font-size: 14.5px; color: var(--ga-navy); margin: 0 0 6px; padding: 0; }
.bp input[type="datetime-local"], .bp input[type="date"], .bp input[type="number"], .bp input[type="search"] {
    width: 100%; font: 500 15px 'Manrope', sans-serif; color: var(--ga-ink); background: #fff;
    border: 1.5px solid var(--ga-line-2); padding: 9px 11px; border-radius: 4px;
}
.bp input[type="checkbox"], .bp input[type="radio"] { width: 18px; height: 18px; accent-color: var(--bp-blue-deep); flex: none; margin: 2px 0 0; }
.bp-count-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.bp-count-row input[type="number"] { width: 150px; }
.bp-inline { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; margin: 0 0 8px; cursor: pointer; }
.bp-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin-bottom: 20px; }
.bp-check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.45; padding: 5px 0; cursor: pointer; }
.bp-tag { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bp-b4-ink); background: var(--bp-b4); padding: 1px 5px; border-radius: 2px; white-space: nowrap; }
.bp-q { border: 0; border-top: 0.5px solid var(--ga-line-2); margin: 0; padding: 16px 0 10px; min-width: 0; }
.bp-q:first-of-type { border-top: 0; padding-top: 0; }
.bp-radio { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; padding: 5px 0; cursor: pointer; }
.bp-inline-group { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.bp-q-danger { background: #fbf1ee; border: 1px solid #ecc9c1; padding: 14px 16px 8px; margin-top: 10px; }

/* Dates, times and the law picker (css/components/pickers.css draws the controls) */
.bp-when { max-width: 460px; }
.bp-when-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-when-row .rz-dp { flex: 0 1 300px; min-width: 0; }
.bp-when-row .rz-tp { flex: 0 1 150px; min-width: 120px; }
.bp-law-field { max-width: 620px; }

/* Nav and buttons */
.bp-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 0.5px solid var(--ga-line-2); }
.bp-nav .primary { margin-left: auto; }
.bp-btn { display: inline-block; font: 700 14px 'Manrope', sans-serif; padding: 10px 16px; border-radius: 4px; border: 1.5px solid var(--ga-navy); background: #fff; color: var(--ga-navy); cursor: pointer; text-decoration: none; line-height: 1.3; }
.bp-btn:hover { background: #eef2f5; }
.bp-btn.primary { background: var(--ga-navy); color: #fff; }
.bp-btn.primary:hover { background: var(--bp-blue-deep); border-color: var(--bp-blue-deep); }
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.bp-copied { font-size: 13px; font-weight: 700; color: var(--bp-b1-ink); }

/* Results */
.bp-urgent { background: #8f2416; color: #fff; padding: 14px 18px; margin: 12px 0 16px; }
.bp-urgent p { margin: 0 0 6px; font-size: 14.5px; }
.bp-urgent p:last-child { margin: 0; }
.bp-summary { background: var(--ga-navy); color: #fff; padding: 20px 22px 16px; margin: 12px 0 8px; }
.bp-sum-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.3fr; gap: 18px; }
.bp-summary .bp-kicker { color: #9fd0f5; }
.bp-sum-big { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.15; margin: 0; }
.bp-sum-big small { display: block; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; opacity: 0.85; margin-top: 4px; }
.bp-sum-big small.late { color: #ffb4a8; opacity: 1; }
.bp-sum-big.b4 { color: #ffb4a8; }
.bp-sum-big.b3 { color: #f8d48a; }
.bp-sum-big.b2 { color: #dfe59a; }
.bp-sum-big.b1 { color: #b9dcc4; }
.bp-sum-date { font-size: 20px; }
.bp-sum-laws { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 13px; color: rgba(255,255,255,0.85); }
.bp-summary .bp-link { color: #9fd0f5; }

.bp-block { padding: 22px 0 4px; border-top: 0.5px solid var(--ga-line-2); margin-top: 18px; }
.bp-block h3, .bp-next h3 { font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 500; color: var(--ga-navy); margin: 0 0 6px; letter-spacing: -0.01em; }
.bp-sub { margin: 0 0 12px; color: var(--ga-ink-2); font-size: 14px; max-width: 680px; }
.bp-muted { color: var(--ga-muted); font-size: 13.5px; }
.bp-empty { background: #fff; border: 1px solid var(--ga-line-2); padding: 14px 16px; margin: 0 0 12px; }
.bp-list { margin: 0; padding-left: 20px; font-size: 14.5px; max-width: 720px; }
.bp-list li { margin-bottom: 8px; }
.bp-list a, .bp-legal a { color: var(--bp-blue-deep); }
.bp-todo { list-style: none; margin: 0; padding: 0; }
.bp-todo li { border-bottom: 0.5px solid var(--ga-line); }
.bp-todo label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: 14.5px; }
.bp-todo input:checked + span { color: var(--ga-muted); text-decoration: line-through; text-decoration-color: rgba(93,101,112,0.5); }

/* Risk */
.bp-risk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: start; }
.bp-band { display: inline-block; font-weight: 800; font-size: 15px; padding: 4px 12px; border-radius: 3px; margin: 0 0 8px; }
.bp-band.b1, .bp-mx-cell.b1 { background: var(--bp-b1); color: var(--bp-b1-ink); }
.bp-band.b2, .bp-mx-cell.b2 { background: var(--bp-b2); color: var(--bp-b2-ink); }
.bp-band.b3, .bp-mx-cell.b3 { background: var(--bp-b3); color: var(--bp-b3-ink); }
.bp-band.b4, .bp-mx-cell.b4 { background: var(--bp-b4); color: var(--bp-b4-ink); }
.bp-risk-grid p { margin: 0 0 10px; font-size: 14.5px; }
.bp-factors { margin: 12px 0; }
.bp-factors dt { font-weight: 800; color: var(--ga-navy); font-size: 14px; margin-top: 10px; }
.bp-factors dd { margin: 2px 0 0; }
.bp-factors ul, .bp-whatif ul { margin: 0; padding-left: 18px; font-size: 14px; }
.bp-factors li, .bp-whatif li { margin-bottom: 3px; }
.bp-whatif { background: #fff; border: 1px solid var(--ga-line-2); padding: 12px 14px; margin-top: 12px; }
.bp-matrix { margin: 0; }
.bp-mx { display: grid; gap: 3px; }
.bp-mx-row { display: grid; grid-template-columns: 16px repeat(4, 1fr); gap: 3px; align-items: center; }
.bp-mx-axis, .bp-mx-foot span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--ga-muted); text-align: center; }
.bp-mx-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 18px; border-radius: 2px; }
.bp-mx-cell.is-here { outline: 2.5px solid var(--ga-navy); outline-offset: -2.5px; color: var(--ga-navy); }
.bp-matrix figcaption { font-size: 11.5px; color: var(--ga-muted); text-align: center; margin-top: 6px; }

/* Notices */
.bp-notices { list-style: none; margin: 0 0 12px; padding: 0; }
.bp-notice { background: #fff; border: 1px solid var(--ga-line-2); border-left: 4px solid var(--ga-navy); padding: 14px 16px 10px; margin-bottom: 10px; }
.bp-notice.is-advisory { border-left-color: var(--ga-line-2); }
.bp-notice.is-soon { border-left-color: #b26a00; }
.bp-notice.is-late { border-left-color: #b3261e; }
.bp-notice-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, 220px); gap: 12px; align-items: start; }
.bp-notice-to { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ga-ink); }
.bp-to { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; background: var(--ga-navy); color: #fff; padding: 2px 6px; border-radius: 2px; margin-right: 4px; vertical-align: 2px; }
.bp-notice-law { margin: 4px 0 0; }
.bp-law-chip { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ga-ink-2); background: var(--ga-stone); border: 1px solid var(--ga-line-2); padding: 1px 7px; border-radius: 3px; }
.bp-advisory { font-size: 12px; font-weight: 700; color: var(--ga-muted); margin-left: 4px; }
.bp-due { text-align: right; }
.bp-due strong { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 500; color: var(--ga-navy); line-height: 1.2; }
.bp-due small { display: block; font-size: 12px; color: var(--ga-muted); line-height: 1.4; margin-top: 2px; }
.bp-due .bp-rel { font-weight: 800; color: var(--ga-ink-2); }
.bp-due .bp-rel.late { color: #b3261e; }
.bp-notice.is-soon .bp-rel { color: #8a5200; }
.bp-because { margin: 8px 0 6px; font-size: 13.5px; color: var(--ga-ink-2); }
.bp-notice details, .bp-cond { font-size: 14px; }
.bp-notice summary, .bp-cond summary { cursor: pointer; font-weight: 700; color: var(--bp-blue-deep); padding: 4px 0; }
.bp-notice details p { margin: 8px 0; }
.bp-content { margin: 0 0 8px; padding-left: 20px; }
.bp-content li { margin-bottom: 2px; }
.bp-legal { font-size: 12.5px; color: var(--ga-muted); }
.bp-cond { background: var(--ga-stone); padding: 8px 14px; margin-top: 4px; }
.bp-cond ul { margin: 6px 0 4px; padding-left: 18px; }
.bp-cond li { margin-bottom: 8px; }

/* Drafts */
.bp-draft-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-draft { margin-top: 12px; }
.bp-draft label { display: block; font-weight: 800; color: var(--ga-navy); margin-bottom: 6px; font-size: 14px; }
.bp-draft textarea { width: 100%; font: 13.5px/1.55 'JetBrains Mono', ui-monospace, Consolas, monospace; color: var(--ga-ink); background: #fff; border: 1.5px solid var(--ga-line-2); border-radius: 4px; padding: 12px; resize: vertical; }

/* Next step */
.bp-next { background: var(--ga-navy); color: #fff; padding: 22px 24px; margin-top: 24px; }
.bp-next .bp-kicker { color: #9fd0f5; }
.bp-next h3 { color: #fff; }
.bp-next p { margin: 0 0 4px; font-size: 14.5px; color: rgba(255,255,255,0.92); max-width: 700px; }
.bp-next .bp-btn { border-color: #9fd0f5; background: transparent; color: #fff; }
.bp-next .bp-btn:hover { background: rgba(159,208,245,0.15); }
.bp-next .bp-btn.primary { background: #9fd0f5; color: var(--ga-navy); }
.bp-next small { display: block; margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,0.75); }
.bp-fineprint { font-size: 12.5px; color: var(--ga-muted); margin: 14px 0 0; }

/* The reference table of regulator deadlines, in the page's own text */
.bp-table-wrap { overflow-x: auto; margin: 16px 0 8px; max-height: 620px; overflow-y: auto; border: 1px solid var(--ga-line); }
.bp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; min-width: 720px; }
.bp-table th, .bp-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--ga-line); vertical-align: top; line-height: 1.45; }
.bp-table thead th { position: sticky; top: 0; font-family: 'Manrope', sans-serif; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ga-muted); background: #f3f6f9; border-bottom: 2px solid var(--ga-line); }
.bp-table .region td { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ga-navy); background: #f3f6f9; }
.bp-table .chip { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 1px 6px; border: 1px solid var(--ga-line); border-radius: 3px; margin-right: 8px; color: var(--ga-ink-2); }

/* The record is for print and copy only */
.bp-record { display: none; }

@media (max-width: 760px) {
    .bp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-checks, .bp-region > div { grid-template-columns: minmax(0, 1fr); }
    .bp-sum-grid { grid-template-columns: 1fr; gap: 12px; }
    .bp-risk-grid { grid-template-columns: 1fr; }
    .bp-matrix { max-width: 220px; }
    .bp-notice-head { grid-template-columns: auto minmax(0, 1fr); }
    .bp-due { grid-column: 2; text-align: left; }
    .bp-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 480px) {
    .bp-cards { grid-template-columns: minmax(0, 1fr); }
    .bp-nav .bp-btn { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .bp-card { transition: none; }
}

/* Printing gives the record alone: the facts, the assessment, the notices and a decision block to sign. */
@media print {
    .site-header, .marketing-cta, .site-footer, footer, .skip-link,
    .guide-article .head, .guide-article section.section:not(.bp-section), .guide-article .guide-footer,
    .bp > *:not(.bp-record) { display: none !important; }
    .guide-article, .guide-article .guide-sheet { background: #fff !important; box-shadow: none; padding: 0; max-width: none; }
    .guide-article section.section.bp-section { background: #fff !important; padding: 0; }
    .bp-record { display: block; color: #000; font-size: 11pt; line-height: 1.45; }
    .bp-record h1 { font-family: 'Fraunces', Georgia, serif; font-size: 20pt; font-weight: 500; margin: 0 0 2pt; }
    .bp-record h2 { font-size: 12pt; font-weight: 800; margin: 14pt 0 4pt; border-bottom: 1pt solid #000; padding-bottom: 2pt; break-after: avoid; }
    .bp-rec-made { margin: 0 0 8pt; color: #333; }
    .bp-record table { width: 100%; border-collapse: collapse; }
    .bp-record th, .bp-record td { text-align: left; vertical-align: top; padding: 4pt 6pt; border-bottom: 0.5pt solid #999; font-size: 10pt; }
    .bp-record th { width: 34%; font-weight: 700; }
    .bp-record tr { break-inside: avoid; }
    .bp-rec-tall { height: 70pt; }
    .bp-rec-source { margin-top: 12pt; font-size: 9pt; color: #333; }
}

/* The regulator's own report form, on the notice it belongs to */
.bp-report { margin: 8px 0 0; }
.bp-report-link { display: inline-block; padding: 7px 12px; border: 1.5px solid var(--ga-blue-deep); border-radius: 4px; color: var(--ga-blue-deep); font: 700 13.5px 'Manrope', sans-serif; text-decoration: none; }
.bp-report-link::after { content: " \2197"; }
.bp-report-link:hover { background: #eef5fb; }
.bp-report small { display: block; margin-top: 4px; color: var(--ga-muted); font-size: 12.5px; }
