/* Denial library (claimrudder.com/denials/): pages built by python -m leakfinder.seo_pages. Uses site.css tokens. */

.lib-preview { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--warn); font: 600 0.82rem var(--body); text-align: center; padding: 8px 16px; }

/* Hero */
.lib-hero h1 { max-width: 24ch; }
.lib-hero .lede { max-width: 68ch; }
.lib-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.codechip { display: inline-flex; align-items: center; font: 600 0.95rem var(--code, monospace); letter-spacing: 0; color: var(--bonnet-ink); background: var(--bonnet-soft); border: 1px solid color-mix(in srgb, var(--bonnet) 35%, transparent); padding: 5px 12px; border-radius: 8px; white-space: nowrap; }
.codechip.sm { font-size: 0.78rem; padding: 3px 9px; border-radius: 6px; justify-self: start; }
.pill.outlook { font-size: 0.78rem; padding: 5px 11px; white-space: normal; }
.outlook-fixable { background: var(--ok-soft); color: var(--ok); }
.outlook-check { background: var(--warn-soft); color: var(--warn); }
.outlook-final { background: var(--leak-soft); color: var(--leak); }
.lib-checked { max-width: 72ch; }

/* Body with the summary card beside it */
.lib-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); grid-template-areas: "body glance"; gap: clamp(24px, 4vw, 48px); align-items: start; }
.lib-glance { grid-area: glance; position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 18px 40px -28px rgba(20, 35, 80, .35); min-width: 0; }
.lib-glance h2 { font-family: var(--body); font-size: 0.92rem; font-weight: 700; color: var(--muted); }
.lib-glance dl { margin: 0; display: grid; gap: 0; }
.lib-glance dl > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px dashed var(--line); }
.lib-glance dl > div:first-child { border-top: 0; padding-top: 0; }
.lib-glance dt { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.lib-glance dd { margin: 0; font-size: 0.94rem; color: var(--ink); overflow-wrap: anywhere; }
.lib-glance .btn { justify-content: center; text-align: center; }
.lib-body { grid-area: body; max-width: 760px; min-width: 0; overflow-wrap: anywhere; } /* a long email address may break rather than push a phone screen sideways */
.lib-body h2 { margin-top: 26px; }
.lib-body h2:first-child { margin-top: 0; }
.lib-body .tablewrap table { min-width: 520px; }
.lib-body .callout { max-width: none; }
sup.cite { font-size: 0.7em; line-height: 0; white-space: nowrap; }
sup.cite a { text-decoration: none; padding: 0 1px; }
sup.cite a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .lib-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "glance" "body"; }
  .lib-glance { position: static; }
}

/* Numbered fix steps */
.lib-body ol.lib-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 10px; }
.lib-steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lib-steps li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 0.85rem var(--mono); color: #fff; background: var(--bonnet); }

/* The path a claim takes, as a row of steps that stacks on a phone */
.lib-body ol.lib-flow { list-style: none; padding: 0; margin: 4px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lib-flow li { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px; background: var(--sunk); border-radius: var(--radius); border-top: 3px solid var(--bonnet); font-size: 0.9rem; }
.lib-flow li:last-child { border-top-color: var(--leak); background: var(--leak-soft); }
.lib-flow li b { font-size: 0.92rem; color: var(--ink); }
.lib-flow li span { color: var(--muted); }

/* Call to action and the end of the page */
.lib-end { display: grid; gap: 18px; max-width: 860px; }
.lib-end > h2 { margin-top: 18px; }
.lib-cta { background: var(--bonnet-ink); color: #fff; border-radius: 14px; padding: clamp(20px, 4vw, 32px); display: grid; gap: 12px; }
.lib-cta h2 { color: #fff; }
.lib-cta p { color: color-mix(in srgb, #fff 82%, transparent); max-width: 62ch; }
.lib-cta .fineprint { color: color-mix(in srgb, #fff 70%, transparent); }
.lib-cta .btn-primary { background: #fff; color: var(--bonnet-ink); }
.lib-cta .btn-primary:hover { background: var(--bonnet-soft); }
.lib-cta .btn-ghost { color: #fff; border-color: color-mix(in srgb, #fff 45%, transparent); }
.lib-cta .btn-ghost:hover { border-color: #fff; }
.lib-related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.lib-related a { display: block; height: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.94rem; color: var(--ink); }
.lib-related a:hover { border-color: var(--bonnet); color: var(--bonnet-ink); }
.sources { display: grid; gap: 10px; }
.sources ol { padding-left: 1.4em; display: grid; gap: 8px; font-size: 0.92rem; color: var(--muted); overflow-wrap: anywhere; margin: 0; }
.sources .checked { color: var(--muted); white-space: nowrap; }
.lib-method { color: var(--muted); max-width: 72ch; }

/* Hub cards */
.lib-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.lib-card { display: grid; gap: 8px; align-content: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.lib-card:hover { border-color: var(--bonnet); box-shadow: 0 14px 32px -24px rgba(20, 35, 80, .45); }
.lib-card h3 { color: var(--ink); }
.lib-card p { color: var(--muted); font-size: 0.94rem; }
.lib-codes { font: 500 0.85rem var(--code, monospace); color: var(--bonnet-ink); }
.lib-card-codes { display: flex; flex-wrap: wrap; gap: 6px; }
#problems .lib-card { border-left: 3px solid var(--bonnet); }
.lib-card-link { position: relative; }
.lib-card-link h3 a { color: inherit; text-decoration: none; }
.lib-card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lib-card-link h3 a:focus-visible { outline: none; }
.lib-card-link:focus-within { outline: 2px solid var(--bonnet); outline-offset: 2px; }
.lib-card-link sup.cite a { position: relative; z-index: 1; }

@media (max-width: 560px) {
  .codechip { font-size: 0.86rem; }
  .lib-steps li { padding-left: 50px; }
  .lib-steps li::before { left: 12px; }
  /* Tables become one card per row, each cell labelled with its column, so nothing hides off the right edge */
  .lib-body .tablewrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .lib-body .tablewrap table.lib-table { min-width: 0; }
  .lib-table, .lib-table tbody, .lib-table tr, .lib-table td, .lib-table caption { display: block; width: 100%; }
  .lib-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lib-table caption { padding: 0 0 10px; font-size: 0.86rem; }
  .lib-table tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; margin-bottom: 10px; }
  .lib-table tbody td { border-bottom: 1px dashed var(--line); padding: 9px 0; }
  .lib-table tbody td:last-child { border-bottom: 0; }
  .lib-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 0.88rem var(--body); color: var(--muted); }
  .lib-table tbody td.mono { font-size: 0.98rem; font-weight: 500; color: var(--bonnet-ink); }
}
@media print {
  .nav, .lib-glance .btn, .lib-cta .cta-row, .skip { display: none; }
  .lib-layout { grid-template-columns: 1fr; grid-template-areas: "glance" "body"; }
  .lib-glance { position: static; box-shadow: none; }
}
