/* iddiy.co - the look and feel of idphotodiy.com (owner 2026-11-20): its Bootstrap 4 navbar,
   container widths, links, buttons and dark footer (website/css/main.css), and the colours and
   cards of its homepage and /documents/ pages (website/css/site2.css). Written out here because
   the CSP allows only same-origin files.
   Light theme only, also when the device is in dark mode (owner 2026-11-19). */
:root {
  color-scheme: only light;
  --blue: #0b6bcb;          /* site2 --ipd-blue */
  --link: #007bff;          /* Bootstrap primary: links and buttons on idphotodiy.com */
  --link-dark: #0056b3;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e2e7ef;
  --bg: #f5f8fc;
  --card: #ffffff;
  --green: #1a7f37;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-dark); text-decoration: underline; }
h1, h2 { line-height: 1.2; color: var(--ink); }
h1 { font-size: 1.85rem; font-weight: 800; margin: 0 0 .75rem; }
h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 1rem; }
p { margin: 0 0 1rem; }
@media (min-width: 992px) { h1 { font-size: 2.5rem; } }

/* Bootstrap's .container widths, so everything lines up with idphotodiy.com. */
.wrap { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 576px) { .wrap { max-width: 540px; } }
@media (min-width: 768px) { .wrap { max-width: 720px; } }
@media (min-width: 992px) { .wrap { max-width: 960px; } }
@media (min-width: 1200px) { .wrap { max-width: 1140px; } }

/* ---- Navbar: .navbar-light.bg-light with the logo and upper-case links ---------------------- */
.top { position: relative; background: #f8f9fa; border-bottom: 1px solid #e7e7e7; padding: 8px 0; }
.top-in { display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; padding: 5px 0; margin-right: 16px; line-height: 0; }
.brand img { display: block; width: 203px; height: 32px; }
.nav, .menu-links { text-transform: uppercase; }
.nav a, .menu-links a { display: block; padding: 8px; color: rgba(0, 0, 0, .5); }
.nav a:hover, .menu-links a:hover { color: rgba(0, 0, 0, .7); text-decoration: none; }
.nav a.active, .menu-links a.active { color: rgba(0, 0, 0, .9); }
.nav { display: none; }
@media (min-width: 992px) { .nav { display: flex; } .menu { display: none; } }

/* Phones and tablets: the "Menu" button (Bootstrap's .navbar-toggler) opens the links below the bar. */
.menu summary { list-style: none; cursor: pointer; padding: 4px 12px; font-size: 1.25rem; line-height: 1.25; color: rgba(0, 0, 0, .5); border: 1px solid rgba(0, 0, 0, .1); border-radius: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline: 3px solid rgba(0, 123, 255, .5); outline-offset: 2px; }
.menu-links { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; background: #f8f9fa; border-bottom: 1px solid #e7e7e7; padding: 0 15px 8px; box-shadow: 0 8px 16px rgba(16, 24, 40, .08); }
.menu-links a { padding: 8px 0; }
@media (min-width: 576px) { .menu-links { padding-left: calc((100% - 540px) / 2 + 15px); padding-right: calc((100% - 540px) / 2 + 15px); } }
@media (min-width: 768px) { .menu-links { padding-left: calc((100% - 720px) / 2 + 15px); padding-right: calc((100% - 720px) / 2 + 15px); } }

/* ---- Content -------------------------------------------------------------------------------- */
main.wrap { padding-top: 32px; padding-bottom: 48px; }   /* main.wrap: .wrap's own padding would win otherwise */
@media (max-width: 575.98px) { main.wrap { padding-top: 20px; } }
.hero { padding: 8px 0 8px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 700; color: var(--blue); margin: 0 0 .4em; }
.muted { color: var(--muted); font-size: .95rem; }
.ok { color: var(--green); }
.steps, .facts { padding-left: 1.3em; line-height: 1.65; }
.steps li, .facts li { margin-bottom: .6em; }

/* Buttons as idphotodiy.com's main blue buttons: bold, 10px corners; taller with a soft shadow on phones. */
.btn { display: inline-block; margin: 4px 8px 4px 0; padding: .5rem 1rem; font-size: 1.1rem; line-height: 1.5; font-weight: 700; border-radius: 10px; background: var(--link); color: #fff; border: 1px solid var(--link); text-align: center; }
.btn:hover { background: #0069d9; border-color: #0062cc; color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--link); border-color: var(--link); color: #fff; }
@media (max-width: 575.98px) {
  .btn { padding: .85rem 1rem; border-radius: 12px; }
  .btn:not(.btn-ghost) { box-shadow: 0 6px 16px rgba(11, 107, 203, .35); }
}

/* Cards and tiles as site2's .ipd-card. */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.code { font-size: 2.2rem; letter-spacing: .03em; word-break: break-all; }
.code-inline { white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.tile:hover { color: var(--ink); text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 24, 40, .08), 0 10px 24px rgba(16, 24, 40, .1); }
.tile-title { display: block; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.tile-text { display: block; color: var(--muted); font-size: .95rem; }

/* The three boxes of GOV.UK's photo code form (iddiy_code_boxes() in inc/layout.php):
   black-framed white boxes, like the form itself. Sized in em so the row shrinks on phones. */
.codebox { display: flex; align-items: flex-end; gap: 0 .3em; margin: 14px 0 10px; font: clamp(.85rem, 4.4vw, 1.5rem)/1.2 Arial, Helvetica, sans-serif; color: #0b0c0c; }
.codebox-box { display: block; flex: none; border: 3px solid #0b0c0c; background: #fff; padding: .45em .55em .45em .4em; white-space: nowrap; }
.codebox-name { min-width: 5.2em; }
.codebox-tld { min-width: 3.6em; }
.codebox-code { min-width: 4.6em; letter-spacing: .02em; }
.codebox-sep { font-size: 1.25em; line-height: 1; padding-bottom: .2em; }
.codebox-dot { font-weight: 700; }

/* ---- Footer: idphotodiy.com's dark footer (.bg-dark .py-5) ---------------------------------- */
.foot { background: #343a40; color: #f8f9fa; padding: 48px 0; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.foot-cols > :last-child { grid-column: 1 / -1; }
@media (min-width: 992px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } .foot-cols > :last-child { grid-column: auto; } }
.foot-cols > div { margin-bottom: 24px; }
.foot-h { margin: 0 0 8px; font-size: 1rem; font-weight: 500; line-height: 1.2; text-transform: uppercase; color: #f8f9fa; }
.foot-list { list-style: none; margin: 0 0 8px; padding: 0; }
.foot-list li { margin-bottom: 4px; }
.foot a { color: #f8f9fa; }
.foot a:hover { color: #dae0e5; }
.foot a.foot-more { color: #17a2b8; }
.foot a.foot-more:hover { color: #5bc8da; }
.foot-note { color: #adb5bd; font-size: .875rem; margin: 8px 0 12px; }
.foot-copy { color: #6c757d; font-size: .8rem; text-align: center; margin: 0; }

@media (max-width: 575.98px) {
  .code { font-size: 1.7rem; }
  .card { padding: 18px; }
  /* Less empty space in the first two boxes, so the widest code (WWMMWWMM) fits a 320 px phone. */
  .codebox-name { min-width: 3.5em; }
  .codebox-tld { min-width: 2.3em; }
}
