/*
 * site-fix.css — minimal patches for the compiled Tailwind (passport.css).
 *
 * Fonts: the Next.js build declared --font-hanken on the next/font variable
 * class (.__variable_2a03db), which is not ported to the Jinja templates. The
 * compiled CSS wires html { font-family: var(--font-hanken), system-ui,
 * sans-serif }, so re-declaring the variable on :root restores Hanken Grotesk
 * (woff2 files under /static/fonts/, @font-face already in passport.css).
 * Everything else ([data-reveal], watermark, custom type roles, utilities) is
 * already present in passport.css — no visual overrides here.
 */

:root {
  --font-hanken: '__Hanken_Grotesk_2a03db', '__Hanken_Grotesk_Fallback_2a03db';
}

/* Wide comparison tables scroll inside their card on small screens */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 34rem;
}

/* Footer link columns — explicit spans so the layout does not depend on
   utilities that were not present when passport.css was compiled. */
@media (min-width: 640px) {
  footer .footer-col {
    grid-column: span 3 / span 3;
  }
}

/* Guide quick answer — remove the prose heading margin inside the box */
.guide-quick-answer h2 {
  margin-top: 0;
}

.guide-quick-answer p {
  margin-bottom: 0;
}

/* Guide CTA box — same prose margin reset as the quick answer box */
.guide-cta h2 {
  margin-top: 0;
}

/* Guide key facts — explicit grid so it does not depend on compiled utilities */
.guide-keyfacts h2 {
  margin-top: 0;
}

.guide-keyfacts dl {
  display: grid;
  gap: 0.5rem 2rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .guide-keyfacts dl {
    grid-template-columns: minmax(8rem, auto) 1fr;
  }
}

/* Photo examples page — original illustrated cards */
.example-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.example-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(227 227 221);
  background: #fff;
}

.example-visual {
  background: rgb(243 243 240);
  border-bottom: 1px solid rgb(227 227 221);
}

.example-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.example-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.2rem;
}

.example-body h2 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgb(21 33 32);
}

.example-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgb(84 97 94);
}

.example-body .example-fix {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgb(227 227 221);
}

.example-body .example-fix strong {
  color: rgb(21 33 32);
}

.verdict {
  align-self: flex-start;
  padding: 0.18rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict--good {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.verdict--bad {
  background: rgba(163, 58, 44, 0.1);
  color: #a33a2c;
}

/* Photo examples page — closing CTA.
   The compiled CSS predates the md:col-span-8 / md:col-span-4 grid this
   section used, so the copy collapsed into a one-word column. Layout is
   now explicit here; the template only needs the block classes. */
.example-cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  border-left: 3px solid rgb(15 118 110);
}

@media (min-width: 768px) {
  .example-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2.25rem 2.5rem;
  }
}

.example-cta__copy {
  min-width: 0;
  max-width: 58ch;
}

.example-cta__copy p {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
  max-width: 54ch;
}

.example-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: none;
}

@media (min-width: 768px) {
  .example-cta__actions {
    justify-content: flex-end;
  }
}

.example-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.375rem;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.example-cta__button--ghost {
  background: #fff;
  color: rgb(21 33 32);
}

.example-cta__button--ghost:hover {
  background: rgb(243 243 240);
  color: rgb(21 33 32);
}

.example-cta__button--primary {
  background: rgb(15 118 110);
  color: #fff;
}

.example-cta__button--primary:hover {
  background: rgb(10 90 84);
  color: #fff;
}

.example-cta__button:focus-visible {
  outline: 2px solid rgb(15 118 110);
  outline-offset: 3px;
}

