@charset "UTF-8";
/* ─── FAMILY MEDIA AGREEMENT BUILDER (draft, November 16, 2026) ───
   Loaded after site.css, only by agreement/index.html.
   Follows the site's rules: small red text on light surfaces is #C20025, labels floor
   at 12px, every control shows a 2px focus outline. */

  .ab-privacy {
    max-width: 68ch;
    margin: -12px 0 40px;
    padding: 14px 18px;
    background: var(--white);
    border-left: 4px solid var(--black);
    font-size: 15px;
    line-height: 1.6;
    color: #333;
  }

  .ab-error {
    max-width: 68ch;
    margin: 0 0 32px;
    padding: 16px 20px;
    background: var(--white);
    border-left: 4px solid var(--red);
    font-size: 16px;
    line-height: 1.6;
  }
  .ab-error a { color: #C20025; }

  .ab-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }

  /* Steps */
  .ab-step { margin-bottom: 56px; }
  .ab-step-title {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--poppins); font-size: 22px; font-weight: 700;
    color: var(--black); margin: 0 0 16px;
  }
  .ab-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0;
    background: var(--black); color: var(--white);
    font-size: 15px; font-weight: 700; border-radius: 50%;
  }
  .ab-help { font-size: 16px; line-height: 1.7; color: #555; margin: 0 0 20px; max-width: 68ch; }

  /* Buttons */
  .ab-btn {
    font-family: var(--poppins); font-size: 14px; font-weight: 600;
    min-height: 44px; padding: 10px 20px;
    background: var(--white); color: var(--black);
    border: 1.5px solid var(--black); border-radius: 0; cursor: pointer;
  }
  .ab-btn:hover { background: var(--offwhite); }
  .ab-btn-primary { background: var(--black); color: var(--white); }
  .ab-btn-primary:hover { background: #333; }
  .ab-btn:disabled { opacity: 0.6; cursor: progress; }
  .ab-actions { display: flex; gap: 12px; flex-wrap: wrap; }

  .ab-step button:focus-visible,
  .ab-step input:focus-visible,
  .ab-step select:focus-visible,
  .ab-step textarea:focus-visible,
  .ab-library button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

  /* Step 1: grade bands */
  .ab-bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .ab-band {
    font-family: var(--poppins); font-size: 16px; font-weight: 700;
    min-height: 64px; padding: 12px;
    background: var(--white); color: var(--black);
    border: 1px solid var(--lightgray); border-left: 4px solid var(--lightgray);
    text-align: left; cursor: pointer;
  }
  .ab-band:hover { border-left-color: var(--black); }
  .ab-band[aria-pressed="true"] { border-left-color: var(--red); background: var(--black); color: var(--white); }

  /* Fields */
  .ab-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; max-width: 960px; }
  .ab-field { display: flex; flex-direction: column; gap: 6px; }
  .ab-field-label {
    font-family: var(--poppins); font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: #555;
  }
  .ab-field-label em { font-style: normal; text-transform: none; letter-spacing: 0; color: #777; }
  .ab-field input, .ab-field select, .ab-field textarea {
    font-family: var(--body); font-size: 16px; color: var(--black);
    min-height: 44px; padding: 8px 12px;
    background: var(--white); border: 1px solid #BBB; border-radius: 0;
  }
  .ab-field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
  .ab-field.is-wide { grid-column: 1 / -1; }

  /* Step 3: agreement and library */
  .ab-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }

  .ab-section {
    background: var(--white);
    border: 1px solid var(--lightgray); border-left: 4px solid var(--red);
    padding: 18px 20px 16px; margin-bottom: 16px;
  }
  .ab-section.is-family { border-left-color: var(--black); }
  .ab-section-label {
    font-family: var(--poppins); font-size: 13px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: #C20025;
    margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--lightgray);
  }
  .ab-section.is-family .ab-section-label { color: var(--black); }
  .ab-fam-help { font-size: 15px; color: #444; margin: 0 0 8px; }
  .ab-fam-list { list-style: none; margin: 0 0 4px; padding: 0; }
  .ab-fam-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 9px 0; min-height: 44px; font-size: 16px; line-height: 1.5; cursor: pointer;
    border-bottom: 1px solid var(--lightgray);
  }
  .ab-fam-item input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--black); }
  .ab-fam-item input:not(:checked) + span { color: #555; }
  .ab-fam-summary { margin: 6px 0 6px; padding-left: 20px; }
  .ab-fam-summary li { font-size: 16px; line-height: 1.55; padding: 4px 0; }
  .ab-section.is-family .ab-fam-help a { color: #C20025; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

  .ab-list { list-style: none; margin: 0; padding: 0; min-height: 44px; }
  .ab-list:empty::before {
    content: "Drag a statement here, or write your own below.";
    display: block; padding: 12px; color: #777; font-size: 15px;
    border: 1px dashed #BBB;
  }

  .ab-item {
    display: flex; align-items: flex-start; gap: 6px;
    padding: 4px 0; border-bottom: 0.5px solid var(--lightgray);
    background: var(--white);
  }
  .ab-handle {
    flex-shrink: 0; width: 28px; min-height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: #888; font-size: 18px; line-height: 1; cursor: grab; user-select: none;
    touch-action: none;
  }
  .ab-handle:hover { color: var(--black); }
  .ab-text {
    flex: 1; min-width: 0;
    font-family: var(--body); font-size: 16px; line-height: 1.6; color: #333;
    padding: 6px 8px; border: 1px solid transparent; background: transparent;
    resize: none; overflow: hidden; field-sizing: content;
  }
  .ab-text:hover { border-color: var(--lightgray); }
  .ab-text:focus { border-color: #888; background: var(--offwhite); }
  .ab-item-tools { display: flex; flex-shrink: 0; }
  .ab-icon {
    width: 36px; height: 40px; padding: 0;
    background: none; border: none; color: #777;
    font-size: 16px; cursor: pointer;
  }
  .ab-icon:hover { color: var(--black); background: var(--offwhite); }
  .ab-icon:disabled { visibility: hidden; }

  .ab-add { display: flex; gap: 8px; margin-top: 12px; }
  .ab-add input {
    flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px;
    font-family: var(--body); font-size: 15px;
    border: 1px solid #BBB; background: var(--white);
  }
  .ab-add .ab-btn { min-height: 44px; padding: 8px 14px; font-size: 13px; }

  .is-ghost { opacity: 0.4; background: var(--offwhite); }
  .sortable-chosen .ab-handle { cursor: grabbing; }

  .ab-library {
    position: sticky; top: 72px;
    max-height: calc(100vh - 96px); overflow-y: auto;
    background: var(--white); border: 1px solid var(--lightgray);
    padding: 18px 18px 8px;
  }
  .ab-library-title { font-family: var(--poppins); font-size: 16px; font-weight: 700; margin: 0 0 12px; }
  .ab-source { margin-bottom: 12px; }
  .ab-lib-group {
    font-family: var(--poppins); font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: #555;
    margin: 16px 0 4px;
  }
  .ab-lib-list { list-style: none; margin: 0; padding: 0; }
  .ab-lib-item {
    display: flex; align-items: flex-start; gap: 4px;
    padding: 6px 0; border-bottom: 0.5px solid var(--lightgray);
    font-size: 15px; line-height: 1.5; color: #333; background: var(--white);
  }
  .ab-lib-item .ab-handle { min-height: 28px; width: 24px; }
  .ab-lib-item .ab-lib-text { flex: 1; min-width: 0; padding-top: 2px; }
  .ab-lib-add {
    flex-shrink: 0; min-height: 32px; padding: 4px 10px;
    font-family: var(--poppins); font-size: 12px; font-weight: 600;
    background: var(--white); border: 1px solid var(--black); cursor: pointer;
  }
  .ab-lib-add:hover { background: var(--offwhite); }
  .ab-lib-item.is-added { color: #777; }
  .ab-lib-item.is-added .ab-handle { visibility: hidden; }
  .ab-lib-item.is-added .ab-lib-add { border-color: #BBB; color: #555; cursor: default; }

  /* Step 3: what I'd rather be doing. The one inverted block on the page, so it reads as his, not ours.
     On black: labels and titles white, body at white 80% (about 12:1), focus outlines in
     --red-on-dark, which the site allows for outlines only. */
  .ab-alts {
    background: var(--black); color: var(--white);
    border-left: 5px solid var(--red);
    padding: 32px 36px 36px;
  }
  .ab-alts .ab-step-title { color: var(--white); font-size: 26px; }
  .ab-alts .ab-alts-eyebrow {
    margin: 0 0 8px; font-family: var(--poppins); font-size: 12px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--white);
  }
  .ab-alts .ab-step-num { background: var(--white); color: var(--black); }
  .ab-alts-intro p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.8); margin: 0 0 12px; max-width: 62ch; }
  .ab-alts-count { font-family: var(--poppins); font-size: 14px; font-weight: 600; color: var(--white); margin: 16px 0 4px; }

  .ab-alt-group { margin-top: 20px; }

  /* Categories: closed rows, one open at a time */
  .ab-cats { margin-top: 20px; max-width: 860px; border-bottom: 1px solid rgba(255,255,255,0.22); }
  .ab-cat { border-top: 1px solid rgba(255,255,255,0.22); }
  .ab-cat-head {
    list-style: none; display: flex; align-items: center; gap: 12px;
    min-height: 54px; padding: 6px 4px; cursor: pointer;
  }
  .ab-cat-head::-webkit-details-marker { display: none; }
  .ab-cat-head::after {
    content: "+"; margin-left: auto; width: 24px; text-align: center;
    font-family: var(--poppins); font-size: 22px; font-weight: 500; line-height: 1; color: var(--white);
  }
  .ab-cat[open] > .ab-cat-head::after { content: "−"; }
  .ab-cat-head:hover .ab-cat-name { text-decoration: underline; text-underline-offset: 4px; }
  .ab-cat-head:focus-visible { outline: 2px solid var(--red-on-dark); outline-offset: -2px; }
  .ab-cat-name { font-family: var(--poppins); font-size: 16px; font-weight: 600; color: var(--white); }
  .ab-cat-count {
    font-family: var(--poppins); font-size: 12px; font-weight: 700;
    background: var(--white); color: var(--black); border-radius: 11px; padding: 2px 9px;
  }
  .ab-cat-body { padding: 4px 0 22px; }
  .ab-alt-need {
    font-family: var(--poppins); font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--white);
    margin: 0 0 10px;
  }
  .ab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .ab-chip {
    font-family: var(--body); font-size: 16px; line-height: 1.3;
    min-height: 44px; padding: 8px 14px;
    background: transparent; color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.45); border-radius: 22px; cursor: pointer;
  }
  .ab-chip:hover { border-color: var(--white); color: var(--white); }
  .ab-chip[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 600; }
  .ab-chip[aria-pressed="true"]::before { content: "✓ "; }
  .ab-chip:disabled { opacity: 0.35; cursor: not-allowed; }
  .ab-alts button:focus-visible,
  .ab-alts input:focus-visible { outline: 2px solid var(--red-on-dark); outline-offset: 2px; }

  .ab-alt-own { max-width: 520px; margin-top: 0; }
  .ab-alt-own input { border-color: var(--white); }
  .ab-alt-own input:disabled { opacity: 0.5; }
  .ab-alts .ab-btn { background: var(--white); color: var(--black); border-color: var(--white); }
  .ab-alts .ab-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .ab-alt-mine { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .ab-alt-mine:empty { display: none; }
  .ab-alt-mine li {
    display: flex; align-items: center; gap: 4px;
    padding: 4px 4px 4px 14px; min-height: 44px;
    background: var(--white); color: var(--black); border-radius: 22px;
    font-size: 16px; font-weight: 600;
  }
  .ab-alt-mine li::before { content: "✓"; margin-right: 2px; }
  .ab-chip-remove {
    width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%;
    background: transparent; color: #555; font-size: 18px; cursor: pointer;
  }
  .ab-chip-remove:hover { background: var(--offwhite); color: var(--black); }

  .ab-alt-tuesday {
    margin: 32px 0 0; padding: 20px 22px; min-width: 0;
    border: 1px solid rgba(255,255,255,0.3); border-left: 4px solid var(--white);
  }
  .ab-alt-tuesday legend {
    font-family: var(--poppins); font-size: 18px; font-weight: 700; color: var(--white);
    padding: 0 8px; margin-left: -8px;
  }
  .ab-radio {
    display: flex; align-items: center; gap: 10px;
    min-height: 44px; font-size: 17px; color: rgba(255,255,255,0.9); cursor: pointer;
  }
  .ab-radio input { width: 20px; height: 20px; accent-color: var(--white); }

  /* Why the PDF cannot be made yet, placed beside what is missing (on black, so a white box) */
  .ab-block-msg {
    display: block; margin: 12px 0; padding: 10px 14px; max-width: 640px;
    background: var(--white); color: var(--black); border-left: 5px solid var(--red);
    font-family: var(--body); font-size: 16px; line-height: 1.5; font-weight: 600;
  }

  /* The ask, with the family's commitments beside it */
  .ab-alt-ask {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px;
    margin-top: 32px; align-items: start;
  }
  .ab-alt-ask-field { display: flex; flex-direction: column; gap: 10px; }
  .ab-alt-ask-label { font-family: var(--poppins); font-size: 18px; font-weight: 700; color: var(--white); }
  .ab-alt-ask-field textarea {
    font-family: var(--body); font-size: 17px; line-height: 1.5;
    min-height: 120px; padding: 12px 14px; resize: vertical; field-sizing: content;
    background: var(--white); color: var(--black); border: 2px solid var(--white); border-radius: 0;
  }
  .ab-alts textarea:focus-visible { outline: 2px solid var(--red-on-dark); outline-offset: 2px; }
  .ab-exchange { border: 1px solid rgba(255,255,255,0.3); border-left: 4px solid var(--white); padding: 16px 20px; }
  /* The family's checklist, on black */
  .ab-exchange .ab-fam-help { color: rgba(255,255,255,0.8); font-size: 15px; }
  .ab-exchange .ab-fam-item { border-bottom-color: rgba(255,255,255,0.18); font-size: 15px; color: rgba(255,255,255,0.9); }
  .ab-exchange .ab-fam-item input { accent-color: var(--white); }
  .ab-exchange .ab-fam-item input:not(:checked) + span { color: rgba(255,255,255,0.72); }
  .ab-exchange .ab-fam-item input:focus-visible { outline: 2px solid var(--red-on-dark); outline-offset: 2px; }
  .ab-exchange .ab-add { margin-top: 12px; }
  .ab-exchange .ab-add input { border-color: var(--white); }
  .ab-exchange .ab-add input:focus-visible { outline: 2px solid var(--red-on-dark); outline-offset: 2px; }
  .ab-exchange-label {
    font-family: var(--poppins); font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin: 0 0 8px;
  }
  .ab-exchange ul { margin: 0; padding-left: 18px; }
  .ab-exchange li { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.8); padding: 3px 0; }

  /* "Do this together" callout, above step 1 */
  .ab-together {
    background: var(--white); border-left: 5px solid var(--red);
    padding: 22px 26px; margin: 0 0 28px; max-width: 760px;
  }
  .ab-together-title { font-family: var(--poppins); font-size: 22px; font-weight: 700; line-height: 1.25; margin: 0 0 10px; }
  .ab-together-title em { font-style: normal; color: #C20025; }   /* no underline: underlined red means a link here */
  .ab-together p { font-size: 17px; line-height: 1.6; margin: 0 0 8px; }
  .ab-together p:last-child { margin-bottom: 0; }
  .ab-together a, .ab-guide a { color: #C20025; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

  /* One quiet line of links into the guide, under a step */
  .ab-guide { font-size: 15px; line-height: 1.6; margin: 10px 0 16px; color: #444; }
  .ab-guide-label {
    font-family: var(--poppins); font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); margin-right: 6px;
  }

  /* Step 5: warning signs */
  .ab-check {
    display: flex; align-items: center; gap: 10px;
    margin: 28px 0 12px; font-size: 16px; cursor: pointer;
  }
  .ab-check input { width: 20px; height: 20px; accent-color: var(--black); }
  .ab-warnings {
    background: var(--white); border: 1px solid var(--lightgray); border-left: 4px solid var(--black);
    padding: 14px 20px; max-width: 960px;
  }
  .ab-warnings[aria-disabled="true"] { opacity: 0.5; }
  .ab-warnings-label {
    font-family: var(--poppins); font-size: 12px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 6px;
  }
  .ab-warnings li { font-size: 15px; line-height: 1.6; color: #444; padding: 3px 0; }
  .ab-warnings ul { margin: 0; padding-left: 20px; }

  @media (max-width: 1100px) {
    .ab-layout { grid-template-columns: minmax(0, 1fr); }
    .ab-library { position: static; max-height: none; }
    .ab-bands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  @media (max-width: 768px) {
    .ab-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-fields { grid-template-columns: minmax(0, 1fr); }
    .ab-step-title { font-size: 19px; }
    .ab-section { padding: 16px 14px 14px; }
    .ab-alts { padding: 24px 18px 28px; margin-left: -8px; margin-right: -8px; }
    .ab-alts .ab-step-title { font-size: 21px; }
    .ab-alts-intro p { font-size: 17px; }
    /* His ask, then the family's answer, the same order as on desktop */
    .ab-alt-ask { grid-template-columns: minmax(0, 1fr); }
    /* Tools drop under the statement so the text keeps the full width. */
    .ab-item { flex-wrap: wrap; padding: 6px 0 2px; }
    .ab-text { flex-basis: calc(100% - 34px); }
    .ab-item-tools { margin-left: auto; }
    .ab-icon { width: 44px; height: 36px; }
  }
