/* Security page · css/security.css
   The question header, the tables and the questions come from product-page.css.

     Hero            the question header, with the round trip on the right
     What we keep    two columns: kept and never kept
     How it is built four ruled points
     Who looks after three layers
     Assurance       a table                                                  */

/* The round trip: a short pulse runs out to Services Australia and back,
   only in the gaps between the circles, while the store above RebateRight
   stays empty. */
.trip { margin: 0; padding: var(--space-24); border-radius: var(--radius-soft);
  background: color-mix(in srgb, var(--color-mist) 55%, var(--color-paper)); }
.trip-svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.trip-line { fill: none; stroke: color-mix(in srgb, var(--color-royal) 35%, transparent); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.trip-node circle { fill: var(--color-paper); stroke: color-mix(in srgb, var(--color-navy) 22%, transparent); stroke-width: 1.2; }
.trip-icon { fill: var(--color-navy); }
.trip-node.is-rr circle { stroke: var(--color-royal); stroke-width: 1.6; }
.trip-node text { font: 500 13px var(--font-sans); fill: var(--color-midnight); text-anchor: middle; }
/* Each pulse is one short dash on a gap's own path (pathLength 100), so it
   never touches an icon. Offset 30 parks it before the gap, -102 past it. */
.trip-pulse { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 28 172; stroke-dashoffset: 30;
  animation: 8s var(--ease-standard) infinite; }
.trip-pulse.is-out-1, .trip-pulse.is-out-2 { stroke: var(--color-royal); }
.trip-pulse.is-back-1, .trip-pulse.is-back-2 { stroke: var(--verdict-eligible); }
.trip-pulse.is-out-1 { animation-name: trip-out-1; }
.trip-pulse.is-out-2 { animation-name: trip-out-2; }
.trip-pulse.is-back-2 { animation-name: trip-back-2; }
.trip-pulse.is-back-1 { animation-name: trip-back-1; }
@keyframes trip-out-1  { 0% { stroke-dashoffset: 30; } 12%, 100% { stroke-dashoffset: -102; } }
@keyframes trip-out-2  { 0%, 14% { stroke-dashoffset: 30; } 26%, 100% { stroke-dashoffset: -102; } }
@keyframes trip-back-2 { 0%, 34% { stroke-dashoffset: -102; } 46%, 100% { stroke-dashoffset: 30; } }
@keyframes trip-back-1 { 0%, 48% { stroke-dashoffset: -102; } 60%, 100% { stroke-dashoffset: 30; } }
.trip-store rect { fill: var(--color-paper); stroke: color-mix(in srgb, var(--verdict-eligible) 45%, transparent); stroke-width: 1.2; }
.trip-store text { font: 600 13px var(--font-sans); fill: var(--verdict-eligible); text-anchor: middle; }
.trip-stem { stroke: color-mix(in srgb, var(--verdict-eligible) 40%, transparent); stroke-width: 1.2; stroke-dasharray: 3 4; }
.trip figcaption { margin-block-start: var(--space-12); color: var(--color-stone-60); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  /* Still: the request halfway to RebateRight, the answer halfway back. */
  .trip-pulse { animation: none; }
  .trip-pulse.is-out-1, .trip-pulse.is-back-2 { stroke-dashoffset: -36; }
}

/* What we keep, and what we never keep. */
.hold-grid { display: grid; gap: var(--space-16); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.hold-col { padding: var(--space-24) var(--space-32); border-radius: var(--radius-soft); background: var(--color-paper); border: 1px solid var(--color-stone-20); }
.hold-col h3 { color: var(--color-midnight); margin-block-end: var(--space-16); }
.hold-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-16); }
.hold-list li { display: flex; align-items: flex-start; gap: var(--space-12); color: var(--color-midnight); }
.hold-icon { display: grid; place-items: center; flex: none; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%; }
.hold-icon svg { inline-size: 0.85rem; block-size: 0.85rem; }
.hold-icon.is-keep { background: var(--color-mist); color: var(--color-royal); }
.hold-icon.is-never { background: var(--color-stone-20); color: var(--color-navy); }

/* How it is built: four ruled points. */
.built-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-32);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.built-grid li { border-block-start: 2px solid var(--color-royal); padding-block-start: var(--space-20); }
.built-grid h3 { font-size: 1.0625rem; color: var(--color-midnight); }
.built-grid p { margin-block-start: var(--space-8); font-size: var(--type-body-s); line-height: var(--lh-body-relaxed); color: var(--color-stone-60); }

/* Who looks after what: three layers, one above the other. */
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); max-inline-size: 52rem; }
.layer { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--space-24); align-items: baseline;
  padding: var(--space-20) var(--space-24); border-radius: var(--radius-default); background: var(--color-paper); border: 1px solid var(--color-stone-20); }
.layer-who { color: var(--color-royal); }
.layer p { color: var(--color-midnight); }
@media (max-width: 599.98px) { .layer { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }

/* Assurance: the shared check table, row headings a little wider. */
#assurance .check-table tbody th { inline-size: 16rem; }

/* Close. */
.cta-section { padding-block: var(--space-section-standard); }
.cta-section .cta-lede { margin-block-start: var(--space-20); max-inline-size: 52ch; }
.cta-section .cta-options { margin-block-start: var(--space-32); }

/* On a phone: larger labels in the picture, and the assurance rows stacked. */
@media (max-width: 599.98px) {
  .trip { padding: var(--space-16); }
  .trip-node text, .trip-store text { font-size: 19px; }
  .trip-pulse { stroke-width: 4.5; }
  #assurance .check-table tbody th, #assurance .check-table td { display: block; inline-size: auto; }
  #assurance .check-table tbody th { border-block-end: 0; padding-block-end: 0; }
}
