/* Public styles for content pages and blocks. Path: /home/designfi/uberfife.com/modules/content/assets/content.css */
.wrap--text { max-width: calc(46rem + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(75rem + 2 * var(--gutter)); }
.content { padding: clamp(2rem, 7vw, 5rem) 0 var(--space); }
.content__head { margin-bottom: 2.5rem; }
.content__title { font-size: clamp(2.3rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.03; max-width: 18ch; }
.content__lede { margin-top: 1.25rem; font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.content__body > .block + .block { margin-top: 1.75rem; }
.prose { font-size: 1.125rem; line-height: 1.65; }
/* Every element in a text block starts flush; space comes only between elements. (Before 1.5.3 a
   paragraph rule cancelled this, so paragraphs had no gap.) */
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose > * + h2, .prose > * + h3, .prose > * + h4 { margin-top: 1.75em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 1.25rem; border-left: 4px solid var(--ink); font-size: 1.2rem; }
.prose a { font-weight: 600; text-decoration-thickness: 2px; }
.block--heading { font-weight: 800; letter-spacing: -0.02em; }
h2.block--heading { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-top: 3rem; }
h3.block--heading { font-size: 1.35rem; margin-top: 2rem; }
.content__body > .block--heading + .block { margin-top: 1rem; }
.block--image { margin: 2.5rem auto; padding: 0 var(--gutter); }
.block--image.block--text { max-width: calc(46rem + 2 * var(--gutter)); }
.block--image.block--wide { max-width: calc(75rem + 2 * var(--gutter)); }
.block--image.block--full { padding: 0; }
.block--image img { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: var(--card); }
.block--image.block--full img { border-radius: 0; }
figcaption { margin-top: 0.6rem; font-size: 0.925rem; color: var(--muted); }
.block--image.block--full figcaption { padding: 0 var(--gutter); }
.credit { display: block; font-size: 0.85rem; }
.block--quote { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.block--quote blockquote { margin: 0; }
.block--quote blockquote p { font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.block--quote figcaption { margin-top: 1rem; font-weight: 600; color: var(--ink); }
.block--quote figcaption span { font-weight: 400; color: var(--muted); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r-md); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cta-card { background: var(--card); border-radius: var(--r-md); padding: clamp(1.5rem, 5vw, 2.5rem); }
.cta__title { font-size: clamp(1.5rem, 4.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
.cta__text { margin: 0.75rem 0 1.5rem; max-width: 36rem; }
.cta__text:last-child { margin-bottom: 0; } /* no button below */
.cta-band { background: var(--ink); color: var(--paper); padding: var(--space) 0; margin: 3rem 0; }
.cta-band .cta__text { color: #cfcfcf; }
.cta-band :focus-visible { outline-color: var(--paper); }
.block--alert { border-left: 6px solid var(--ink); padding-top: 1rem; padding-bottom: 1rem; background: var(--card); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.alert--warning { border-left-color: #b3261e; background: #fbeeed; }
.alert__title { font-weight: 800; margin-bottom: 0.5rem; }
.block--alert .prose { font-size: 1.05rem; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: 1.15rem; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; font-size: 1.5rem; font-weight: 400; }
.acc[open] summary::after { content: "–"; }
.acc__body { padding-bottom: 1.25rem; font-size: 1.075rem; line-height: 1.6; }
.notices { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; max-width: 46rem; }
.notice--update { color: var(--muted); font-weight: 600; margin: 0; }
.notice--correction { background: var(--card); border-left: 6px solid var(--ink); padding: 0.9rem 1.1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.notice--correction p { margin: 0; }
.notice--correction p + p { margin-top: 0.35rem; }
.notice-details summary { cursor: pointer; font-weight: 600; }
.notice-details ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.preview-bar { background: #fdf1d8; color: #6b4600; padding: 0.75rem 0; font-weight: 600; }
.corrections { list-style: none; padding: 0; margin: 0; }
.corrections li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.corrections__date { color: var(--muted); font-weight: 600; margin: 0; }
.corrections__title { font-size: 1.2rem; font-weight: 700; margin: 0.25rem 0 0.5rem; }

/* Homepage and section blocks (Phase 2 batch 3) */
.home-blocks > .block--hero:first-child { padding-top: clamp(2.5rem, 9vw, 7rem); }
.content__body > .block--hero { padding-top: 0; }
.content__body > .block--hero, .content__body > .block--cards, .content__body > .block--feature { margin-top: 2.5rem; }
.home-blocks > .block + .block { margin-top: 0; }
.block--feature { margin-bottom: var(--space); }
.feature { display: grid; border-radius: var(--r-md); overflow: hidden; }
.feature--dark { background: var(--ink); color: var(--paper); }
.feature--light { background: var(--card); }
.feature__body { padding: clamp(1.75rem, 6vw, 3.5rem); }
.feature__eyebrow { margin: 0 0 0.75rem; font-weight: 700; font-size: 0.9rem; }
.feature--dark .feature__eyebrow { color: #cfcfcf; }
.feature__title { font-size: clamp(1.8rem, 5.5vw, 3rem); font-weight: 800; letter-spacing: -0.025em; max-width: 20ch; }
.feature__text { margin: 1rem 0 1.75rem; font-size: 1.125rem; max-width: 36rem; }
.feature--dark .feature__text { color: #dcdcdc; }
.feature--dark :focus-visible { outline-color: var(--paper); }
.feature__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .feature--media { grid-template-columns: 1.1fr 1fr; } .feature--media .feature__media { min-height: 100%; } }
.cards--even .card:first-child { grid-row: auto; }
.cards--even .card:first-child .card__title { font-size: 1.5rem; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 600px) { .gallery--2, .gallery--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery--3 { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--card); }
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.compare caption { text-align: left; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; padding-bottom: 1rem; }
.compare th, .compare td { text-align: left; padding: 0.8rem 0.75rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 1.05rem; font-weight: 800; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 600; color: var(--muted); width: 34%; }
.compare__note { margin-top: 0.75rem; font-size: 0.925rem; color: var(--muted); }
.related__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.75rem; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.related a { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.25rem; background: var(--card); border-radius: var(--r-md); text-decoration: none; }
.related a:hover { background: var(--card-hover); }
.related__type { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.related__name { font-weight: 700; font-size: 1.1rem; }
.related__text { color: var(--muted); font-size: 0.95rem; }

/* A page with its title hidden: no gap where the title was */
.content__head:has(> .visually-hidden:first-child):not(:has(.notices)) { margin-bottom: 0; }

/* Citation markers (Phase 4) */
.cite { font-size: 0.75em; font-weight: 700; vertical-align: super; line-height: 0; text-decoration: none; margin-left: 0.1em; }
.cite:hover { text-decoration: underline; }
.block-cites { margin-top: 0.35rem !important; }
.content__body > .block + .block-cites { margin-top: 0.35rem; }

/* Touch screens: a larger tap area for citation markers. Vertical padding on an inline link does not move the text. */
@media (pointer: coarse) {
  .cite { padding: 0.45em 0.25em; margin-left: 0; }
}

/* Route card without a link: same card, no hover, no arrow */
.card__link--static, .card__link--static:hover { background: var(--card); cursor: default; }

/* Feature boxes: phones one per row, tablets two, wide screens the chosen number. */
.block--boxes { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.boxes__intro { color: var(--muted); max-width: 40rem; margin: -0.5rem 0 1.5rem; }
.boxes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 600px) { .boxes.boxes--cols-2, .boxes.boxes--cols-3, .boxes.boxes--cols-4, .boxes.boxes--cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .boxes.boxes--cols-3, .boxes.boxes--cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .boxes.boxes--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .boxes.boxes--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.85rem; } }
.box { position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; min-width: 0; }
.box--grey { background: var(--card); color: var(--ink); }
.box--black { background: var(--ink); color: var(--paper); }
.box__image { overflow: hidden; background: #ddd; }
.box__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.boxes--wide .box__image { aspect-ratio: 3 / 2; }
.boxes--square .box__image { aspect-ratio: 1 / 1; }
.boxes--tall .box__image { aspect-ratio: 4 / 5; }
.box__body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding: 1.5rem; }
.box__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.boxes--cols-4 .box__title, .boxes--cols-5 .box__title { font-size: 1.2rem; }
.boxes--cols-5 .box__body { padding: 1.15rem; }
.box__text { margin: 0; overflow-wrap: anywhere; }
.box--grey .box__text { color: #3a3a3a; }
.box--black .box__text { color: #d6d6d6; }
.box__more { margin: auto 0 0; padding-top: 0.5rem; font-weight: 700; }
.box__link { color: inherit; text-decoration: none; }
/* The title link covers the whole box, so the box is clickable anywhere. */
.box__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.box--linked { transition: background-color 0.15s ease; }
.box--grey.box--linked:hover { background: var(--card-hover); }
.box--black.box--linked:hover { background: #222; }
.box--linked:hover .box__more { text-decoration: underline; text-underline-offset: 0.2em; }
.box__link:focus-visible { outline: none; }
.box__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
/* One column: image beside the text on wide screens. */
@media (min-width: 760px) {
  .boxes--cols-1 .box--has-image { flex-direction: row; }
  .boxes--cols-1 .box--has-image .box__image { flex: 0 0 42%; aspect-ratio: auto; min-height: 16rem; }
  .boxes--cols-1 .box__body { padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; }
  .boxes--cols-1 .box__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .boxes--cols-1 .box__text { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .box--linked { transition: none; } }
@media print { .box { border: 1px solid #999; background: none !important; color: #000 !important; } .box__text { color: #000 !important; } }
