/* F4g (04 §3.1): the small information pages that share markup: /party (link tiles), /projects (tiles),
   /income (the admin-edited glass_account HTML), /contact-us (contact cards), /account-deletion (steps + form).
   .tiles/.more-card/.input stay here: no other page uses them (checked F4h). */

/* ---------- Link tiles (party, projects) ---------- */
.tile-group + .tile-group { margin-top: var(--s8); }
.tile-group > h2 { margin: 0 0 var(--s4); font-size: 1.5rem; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.tiles .tile { display: grid; grid-template-columns: 56px 1fr 24px; gap: var(--s4); align-items: center; height: 100%; min-height: 96px; padding: 20px 20px 20px 16px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.tiles .tile:hover { background: var(--blue-tint); color: var(--ink); }
.tiles .tile:active { transform: scale(.98); }
.tile-t { display: grid; gap: 2px; min-width: 0; }
.tile-t b { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; transition: color var(--t-fast) var(--ease); }
.tiles .tile:hover .tile-t b { color: var(--blue); }
.tiles .tile .go { color: var(--blue); transition: transform var(--t-fast) var(--ease); }
.tiles .tile:hover .go { transform: translateX(3px); }
.tiles-lg .tile { grid-template-columns: 1fr 24px; grid-template-rows: auto 1fr; align-items: end; min-height: 220px; padding: var(--s5); }
.tiles-lg .tile .well { grid-column: 1 / -1; align-self: start; width: 64px; height: 64px; }
.tiles-lg .tile-t b { font-size: var(--fs-h3); }
.tiles-more { margin: var(--s5) 0 0; }

/* ---------- A soft call-out under the content (income, FAQ uses its own) ---------- */
.more-card { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s5); align-items: center; margin-top: var(--s8); padding: var(--s5); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.more-card .well { background: var(--blue-tint); }
.more-card h2 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.more-card p { margin: 4px 0 0; }

/* ---------- Income: the admin HTML (Bootstrap grid classes and the old stat boxes, styled here without Bootstrap) ---------- */
.glass { overflow-wrap: anywhere; }
.glass .section-title { margin: 0 0 var(--s5); text-align: left; }
.glass h1, .glass h2, .glass h3, .glass .title-text { margin: 0 0 var(--s4); color: var(--ink); font-size: var(--fs-h3); font-weight: 650; line-height: var(--lh-head); letter-spacing: var(--track-head); }
.glass .section-title .title-text { font-size: var(--fs-h2); }
.glass .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s4); margin: 0; }
.glass .row > * { width: auto; max-width: none; margin: 0; padding: 0; }
.glass .stats-wrapper { margin-bottom: var(--s8); }
.glass .stat-box { display: flex; flex-direction: column-reverse; gap: 4px; height: 100%; padding: 20px; border-radius: var(--r-lg); background: var(--surface); text-align: left; }
.glass .stat-price { color: var(--blue); font-size: clamp(1.5rem, 1.2rem + .6vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.glass .stat-name { color: var(--ink-2); font-size: var(--fs-meta); font-weight: 500; }
.glass .donation-wrapper > .row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s7); }
.glass .donation-info { padding: var(--s6); border-radius: var(--r-lg); background: var(--blue-tint); }
.glass .donation-info p { margin: 0 0 var(--s2); }
.glass p { max-width: var(--measure); }
.glass img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: var(--r-md); }
.glass table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.glass td, .glass th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
/* The admin HTML carries Bootstrap utilities; since F4h no Bootstrap is loaded, so the ones it uses keep their old
   values here (as !important as Bootstrap's: the page looks as it did). */
.glass .text-center { text-align: center !important; }
.glass .fw-bold { font-weight: 700 !important; }
.glass .mb-4 { margin-bottom: 1.5rem !important; }
.glass .mb-5 { margin-bottom: 3rem !important; }
.glass .pb-4 { padding-bottom: 1.5rem !important; }
.glass .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s6); align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.ccard { position: relative; display: grid; gap: var(--s2); align-content: start; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); transition: background var(--t-fast) var(--ease); }
.ccard:hover { background: var(--blue-tint); }
.ccard h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-meta); font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.ccard h2 .ic { width: 20px; height: 20px; color: var(--blue); }
.ccard a { font-size: 1.1875rem; font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
.ccard a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* the whole card writes the mail */
.ccard:hover a { text-decoration: underline; }
.contact-office { display: grid; gap: var(--s5); margin: 0; padding: var(--s5); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.contact-office dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--fs-meta); font-weight: 500; }
.contact-office dt .ic { color: var(--blue); width: 20px; height: 20px; }
.contact-office dd { margin: 4px 0 0; font-size: 1.125rem; }
.contact-office a { font-weight: 600; }

/* ---------- Account deletion: steps + form ---------- */
.deletion { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: var(--s8); align-items: start; }
.deletion h2 { margin: 0 0 var(--s4); font-size: var(--fs-h3); }
.deletion-info p { max-width: var(--measure); color: var(--ink-2); }
.steps { counter-reset: step; display: grid; gap: var(--s3); margin: 0 0 var(--s7); padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); align-items: center; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); font-weight: 700; }
.form-card { padding: var(--s6); border-radius: var(--r-xl); background: var(--surface); }
.form-card form { display: grid; gap: var(--s5); }
.form-card .btn { justify-self: start; }
.frow { display: grid; gap: var(--s2); }
.frow label { font-weight: 600; }
.frow label .meta { font-weight: 400; }
.input { width: 100%; min-height: var(--tap); padding: 12px 16px; border: 0; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 400 1.125rem/1.5 var(--font); transition: box-shadow var(--t-fast) var(--ease); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b42318; }
textarea.input { resize: vertical; min-height: 104px; }
.ferr { margin: 0; color: #b42318; font-size: var(--fs-meta); font-weight: 500; }  /* error red 6.6:1 on white; the only non-palette colour, errors only */
.ok-note { display: flex; gap: var(--s3); align-items: flex-start; margin: 0; padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--ok-tint); color: var(--ok); font-weight: 500; }
.ok-note .ic { margin-top: 2px; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact, .deletion { grid-template-columns: 1fr; gap: var(--s6); }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles .tile { grid-template-columns: 48px 1fr 24px; min-height: 80px; padding: 16px; }
  .tiles .tile .well { width: 48px; height: 48px; }
  .tiles-lg .tile { min-height: 168px; }
  .more-card { grid-template-columns: 48px 1fr; }
  .more-card .well { width: 48px; height: 48px; }
  .more-card .btn { grid-column: 1 / -1; }
  .form-card { padding: var(--s5); border-radius: var(--r-lg); }
  .form-card .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .tiles .tile:active { transform: none; } .tiles .tile:hover .go { transform: none; } }
