/* The insurance brokerage: styles for its worked example only. Shared pieces (checklist, letter) are in ../styles.css. */

/* Documents, with the renewal countdown */
.ins-renew { margin: 12px 0 4px; }
.ins-renew-bar { height: 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); overflow: hidden; }
.ins-renew-fill { display: block; height: 100%; background: var(--mustard); transform-origin: left center; }
.ins-renew-ends { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin-top: 6px; font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.ins-renew-now { text-align: right; }
.ins-renew-left { color: var(--brick); font-weight: 700; }

/* The broker-review pack, drawn as one folder of tabbed sheets */
.ins-pack { position: relative; margin-top: 20px; padding: 2px 14px 14px; border: var(--line) solid var(--ink); border-radius: 4px var(--r-md) var(--r-md) var(--r-md); background: var(--mustard-wash); }
.ins-pack::before { content: ""; position: absolute; top: -16px; left: calc(var(--line) * -1); width: min(44%, 170px); height: 16px; border: var(--line) solid var(--ink); border-bottom: 0; border-radius: 10px 12px 0 0; background: var(--mustard-wash); }

.ins-cover { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.ins-cover li { padding: 6px 10px; border-radius: var(--r-sm); background: var(--white); border: 2px solid transparent; line-height: 1.3; min-width: 0; transition: border-color 0.18s ease; }
.ins-cover li.hot { border-color: var(--ink); }
.ins-cover-l { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.ins-cover-v { display: block; font-weight: 700; overflow-wrap: anywhere; }

.ins-sheets { display: grid; gap: 0; margin-top: 12px; }
.ins-sheet { --tab: var(--paper-2); position: relative; padding: 12px 2px 12px; border: 0; border-top: 1px solid rgba(34, 50, 44, 0.18); border-radius: 0; background: transparent; }
.ins-sheets > .ins-sheet:first-child { border-top: 0; }
.ins-file { --tab: var(--green-wash); }
.ins-changed { --tab: var(--sky); }
.ins-out { --tab: var(--mustard); }
.ins-ask { --tab: var(--blush); }
.ins-sheet-h { display: flex; align-items: center; gap: 10px; font-weight: 700; line-height: 1.3; }
.ins-tab { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 7px; background: var(--tab); font-family: var(--serif); font-weight: 600; font-size: 0.95rem; }
.ins-sheet-t { flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.02rem; }
.ins-count { flex: none; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--tab); font-size: 0.8rem; text-align: center; }
.ins-sheet-note { margin: 6px 0 0 38px; font-size: 0.86rem; font-weight: 600; color: var(--green); }

.ins-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 38px; }
.ins-chip { padding: 3px 10px; border: 2px solid rgba(34, 50, 44, 0.3); border-radius: 999px; background: var(--paper); font-size: 0.86rem; font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer; }
.ins-out .ins-chip { border-style: dashed; border-color: var(--ink); }
.ins-chip:hover, .ins-chip:focus-visible, .ins-chip.hot { border-color: var(--ink); border-style: solid; background: var(--mustard-wash); }
.ins-chip:not([data-k]) { cursor: default; }

.ins-lines { margin: 6px 0 0 38px; }
.ins-lines li { position: relative; padding: 4px 6px 4px 16px; border-radius: 6px; font-size: 0.94rem; line-height: 1.45; transition: background-color 0.18s ease; }
.ins-lines li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.ins-ask .ins-lines li::before { content: "?"; top: 4px; width: auto; height: auto; background: none; font-weight: 800; color: var(--brick); }
.ins-lines li.hot { background: var(--mustard-wash); }

/* Motion, as the section opens */
.anim .ins-renew-fill.reveal { animation: grow 0.6s ease 0.1s backwards; }

@media (max-width: 560px) {
  .ins-cover { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ins-sheet-note, .ins-chips, .ins-lines { margin-left: 0; }
  .ins-renew-now { text-align: left; } /* when it wraps under the start date, read it left to right */
}
