/* The Contact page (Edmon, 26 Oct 2026): a big address that types itself, one card per topic (choosing one sets the big
   address, with a short "chosen" pulse), the social accounts. Colours and type from median.css. */
.ct { padding-bottom: var(--s5); }
.ct-head { padding: var(--s7) 0 var(--s3); }
.ct-title { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 0 0 var(--s3); }

/* 1) the big address */
.ct-hero { position: relative; margin: var(--s5) 0 var(--s6); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--surface);
  overflow: hidden; isolation: isolate; }
.ct-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 140%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--median-amber) 26%, transparent), transparent); filter: blur(30px); opacity: .7; }
.ct-sub { margin: 0; font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; color: var(--ink-muted); }
.ct-q { margin: 0 0 8px; min-height: 1.4em; font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; color: var(--ink-muted); }
.ct-big { position: relative; display: inline-flex; align-items: baseline; max-width: 100%; color: var(--ink); text-decoration: none; white-space: nowrap;
  font-size: clamp(24px, calc((100vw - 96px) / 12.6), 78px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; border-radius: var(--radius); }
.ct-big:hover .ct-local, .ct-big:focus-visible .ct-local { box-shadow: inset 0 -.12em var(--median-amber); }
.ct-dom { color: var(--ink-muted); }
.ct-cur { display: inline-block; width: .06em; height: .86em; margin: 0 .03em; align-self: center; background: var(--median-amber); animation: ct-blink 1s steps(1) infinite; }
.ct-ok { position: absolute; right: -.55em; top: -.15em; display: grid; place-items: center; width: .5em; height: .5em; border-radius: 50%;
  background: var(--median-amber); color: var(--on-amber); transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ct-ok .icon { width: 60%; height: 60%; stroke-width: 2.6; }
.ct-hero.is-picked .ct-ok { transform: scale(1); }
.ct-hero.is-picked .ct-hero.pulse { animation: ct-pulse .7s ease; }
@keyframes ct-blink { 50% { opacity: 0; } }
@keyframes ct-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--median-amber) 70%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
.ct-hint { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--ink-muted); }
.ct-hint .icon { width: 17px; height: 17px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ct-actions[hidden], .ct-include[hidden] { display: none; }
.ct-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: var(--radius); font: inherit;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, color .2s; }
.ct-btn:active { transform: scale(.97); }
.ct-btn .icon { width: 18px; height: 18px; }
.ct-btn-ink { background: var(--ink); color: var(--paper); }
.ct-btn-soft { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.ct-btn.copied { background: var(--median-amber); color: var(--on-amber); box-shadow: none; }
.ct-include { margin-top: 16px; font-size: 14.5px; color: var(--ink-muted); }
.ct-include p { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.ct-include ul { margin: 0; padding-left: 20px; line-height: 1.6; }

/* 2) the topic cards */
.ct-h2 { font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 var(--s4); }
.ct-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-card { position: relative; display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--surface);
  color: var(--ink); text-decoration: none; box-sizing: border-box; transition: transform .2s ease, background .25s, color .25s, box-shadow .25s; }
.ct-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .08); }
.ct-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius); background: var(--paper); transition: background .25s, color .25s; }
.ct-ic .icon, .ct-ic .ct-bi { width: 24px; height: 24px; }
.ct-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-txt b { font-size: 16px; line-height: 1.3; }
.ct-txt span { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.ct-txt em { margin-top: 0; font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ct-card[aria-current="true"] { background: var(--ink); color: var(--paper); }
.ct-card[aria-current="true"] .ct-txt span { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.ct-card[aria-current="true"] .ct-txt em { color: var(--paper); box-shadow: inset 0 -2px var(--median-amber); align-self: flex-start; }
.ct-card[aria-current="true"] .ct-ic { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--median-amber); }   /* the icons carry yellow themselves */

/* 3) follow us: clear space above the heading (28 Oct 2026: a broken selector here had dropped it, and the heading sat
   on the cards) */
.ct-follow { margin-top: clamp(48px, 7vw, 72px); }
.ct-socials { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; }
.ct-soc { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none;
  transition: transform .2s, box-shadow .2s; }
a.ct-soc:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .08); }
.ct-soc-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--paper); }
.ct-soc-ic .icon { width: 24px; height: 24px; }
.ct-soc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-soc-txt b { font-size: 16px; }
.ct-soc-txt small { font-size: 13.5px; color: var(--ink-muted); }
.ct-soc-tg { flex-wrap: wrap; }
.ct-langs { display: flex; gap: 6px; margin-left: auto; }
.ct-langs a { display: inline-grid; place-items: center; min-width: 54px; height: 40px; padding: 0 12px; border-radius: var(--radius); background: var(--paper);
  color: var(--ink); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.ct-langs a:hover, .ct-langs a:focus-visible { background: var(--ink); color: var(--paper); }

@media (max-width: 1023px) {
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-socials { grid-template-columns: 1fr 1fr; }
  .ct-soc-tg { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ct-head { padding-top: var(--s6); }
    .ct-hero { margin: var(--s4) 0 var(--s5); padding: 22px 18px; border-radius: var(--radius); }
  .ct-big { font-size: clamp(20px, calc((100vw - 76px) / 12.6), 40px); }
  .ct-actions .ct-btn { flex: 1 1 auto; justify-content: center; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ct-card { padding: 14px; gap: 12px; border-radius: var(--radius); }
  .ct-ic { width: 38px; height: 38px; border-radius: var(--radius); }
  .ct-socials { grid-template-columns: minmax(0, 1fr); }
  .ct-langs { margin-left: 0; width: 100%; }
  .ct-langs a { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-cur { animation: none; }
  .ct-hero.pulse { animation: none; }
  .ct-card, .ct-ok { transition: none; }
}

/* =====================================================================================================================
   Redesign A (Edmon, 8 Nov 2026): the addresses as a ruled list, not tinted tiles; no glow, no pulse (the typing address and its cursor stay: Edmon, 8 Nov 2026),
   no hover lift; icons without their rounded squares.
   ===================================================================================================================== */
.ct-title { font-stretch: var(--head-stretch); }
.ct-hero::before, .ct-hero::after { display: none; }
.ct-hero.pulse, .ct-hero.pulse * { animation: none; }
.ct-grid { gap: 0 32px; }
.ct-card, .ct-soc { padding-left: 0; padding-right: 0; background: none; border-radius: 0; border-top: 1px solid var(--rule); }
.ct-card:hover, a.ct-soc:hover { transform: none; box-shadow: none; }
.ct-card:hover .ct-txt b, a.ct-soc:hover .ct-soc-txt { text-decoration: underline; text-underline-offset: 3px; }
.ct-ic, .ct-soc-ic { width: auto; background: none; }
/* Redesign A (8 Nov 2026): the big address between thin rules, no grey panel */
.ct-hero { padding: clamp(18px, 3vw, 32px) 0; border-radius: 0; background: none; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); }
/* Median's own icons (components.brand_icon, Edmon 8 Nov 2026): black lines with one yellow stroke, no colourful set */
.ct-ic .bi { width: 32px; height: 32px; }
.ct-card[aria-current="true"] .ct-ic { box-shadow: none; }
