/* Shared footer: official identity, newsletter and a compact navigation index. */
.madrigal-social { margin-top: 24px; --social-border: var(--line); --social-accent: var(--brand-deep); }
.madrigal-social h2,.site-foot-editorial .madrigal-social h2,.contact-new .contact-conversation-copy .madrigal-social h2 { max-width: none; margin: 0 0 12px; font: 700 .78rem/1.4 var(--font-sans); letter-spacing: .02em; text-transform: none; color: var(--social-accent); }
.madrigal-social ul,.site-foot-editorial .madrigal-social ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; max-width: 410px; }
.madrigal-social li { min-width: 0; }
.madrigal-social a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--social-border); border-radius: var(--radius-cta); font: 500 .84rem/1.4 var(--font-sans); color: inherit; text-decoration: none; transition: border-color .15s,background .15s; }
.madrigal-social a span:last-child { color: var(--social-accent); }
.madrigal-social a .plat-ico { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.madrigal-social a .social-name { flex: 1; min-width: 0; }
.madrigal-social a { gap: 10px; }
.madrigal-social a:hover { border-color: var(--social-accent); color: inherit; background: color-mix(in srgb,var(--gold) 9%,transparent); }
.madrigal-social a:focus-visible { outline: 3px solid var(--social-accent); outline-offset: 3px; }
.site-foot-editorial .madrigal-social { --social-border: var(--foot-line); --social-accent: var(--gold); color: var(--surface); }
@media(prefers-reduced-motion:reduce){.madrigal-social a{transition:none}}
body.madrigal-no-audio-player { padding-bottom: 0; }
.site-foot.site-foot-editorial {
  margin-top: 0;
  border-top: 1px solid var(--accent-on-dark);
  background: var(--ink);
  color: var(--surface);
  --foot-line: color-mix(in srgb, var(--bg) 20%, transparent);
  --foot-muted: color-mix(in srgb, var(--bg) 76%, var(--ink));
}
.site-foot-editorial > .container {
  max-width: 1400px;
  padding-top: clamp(40px, 4vw, 56px);
  padding-bottom: 20px;
}
.site-foot-editorial .foot-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
  padding-bottom: 36px;
}
.site-foot-editorial .foot-identity,
.site-foot-editorial .foot-news,
.site-foot-editorial .foot-nav { min-width: 0; }
.site-foot-editorial .foot-social-row { padding-bottom: 28px; }
.site-foot-editorial .foot-social-row .madrigal-social { display: grid; grid-template-columns: 202px minmax(0,1fr); align-items: center; gap: 28px; margin: 0; }
.site-foot-editorial .foot-social-row .madrigal-social h2 { margin: 0; }
.site-foot-editorial .foot-social-row .madrigal-social ul { grid-template-columns: repeat(4,minmax(0,1fr)); max-width: none; }
.site-foot-editorial .foot-brand { display: inline-flex; max-width: 100%; }
.site-foot-editorial .foot-logo {
  width: 202px;
  max-width: 100%;
  height: auto;
  margin: 0;
}
.site-foot-editorial .foot-institution-name { margin: 20px 0 0; font: 500 clamp(1rem, 1.45vw, 1.25rem)/1.5 var(--font-sans); color: var(--foot-muted); }
.site-foot-editorial .foot-listen { margin-top: 26px; }
.site-foot-editorial .foot-listen h2,
.site-foot-editorial .foot-nav h2 {
  margin: 0 0 14px;
  font: 700 .75rem/1.4 var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.site-foot-editorial ul { margin: 0; padding: 0; list-style: none; }
.site-foot-editorial .foot-plats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 8px; max-width: 440px; }
.site-foot-editorial .foot-plats li { min-width: 0; }
.site-foot-editorial .foot-plats a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--foot-line);
  border-radius: var(--radius-cta);
  color: var(--surface);
  text-decoration: none;
  font-size: .8125rem;
  line-height: 1.35;
  font-weight: 600;
  transition: border-color .18s ease, background-color .18s ease;
}
.site-foot-editorial .foot-plats .plat-ico { width: 19px; height: 19px; flex-shrink: 0; }
.site-foot-editorial .foot-platform-name { flex: 1; min-width: 0; }
.site-foot-editorial .foot-external { color: var(--accent-on-dark); margin-left: auto; flex-shrink: 0; }
.site-foot-editorial .foot-plats a:hover { border-color: var(--accent-on-dark); background: color-mix(in srgb, var(--gold) 9%, transparent); }
.site-foot-editorial .foot-news h2 {
  margin: 0 0 10px;
  color: var(--surface);
  font: 650 clamp(1.65rem, 2.5vw, 2.35rem)/1.15 var(--font-sans);
  letter-spacing: -.035em;
  text-transform: none;
}
.site-foot-editorial .foot-news p { margin: 0; color: var(--foot-muted); font-size: .9375rem; line-height: 1.6; }
.site-foot-editorial .foot-news .wpcf7 { margin-top: 22px; }
.site-foot-editorial .foot-news .wpcf7 form { position: relative; max-width: none; margin: 0; }
/* CF7's existing consent, validation and submission remain intact. */
.site-foot-editorial .foot-news form > p:has(> [data-name="email"]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
}
.site-foot-editorial .foot-news form > p > br { display: none; }
.site-foot-editorial .foot-news form > p > label,
.site-foot-editorial .foot-news [data-name="email"] { grid-column: 1 / -1; }
.site-foot-editorial .foot-news form > p > label {
  margin: 0 0 -7px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--foot-muted);
}
.site-foot-editorial .foot-news input[type="email"] {
  width: 100%; min-width: 0; min-height: 50px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--bg) 46%, var(--ink));
  border-radius: 3px;
  background: color-mix(in srgb, var(--surface) 5%, var(--ink));
  color: var(--surface);
  font: 400 1rem/1.5 var(--font-sans);
}
.site-foot-editorial .foot-news .wpcf7-list-item { margin: 0; }
.site-foot-editorial .foot-news .wpcf7-acceptance label {
  display: flex; align-items: flex-start; gap: 10px;
  min-height: 44px; margin: 0;
  color: var(--foot-muted);
  font: 400 .75rem/1.65 var(--font-sans);
  cursor: pointer;
}
.site-foot-editorial .foot-news input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0;
  accent-color: var(--accent-on-dark);
}
.site-foot-editorial .foot-news .wpcf7-acceptance a { color: var(--surface); text-underline-offset: 3px; }
.site-foot-editorial .foot-news input[type="submit"],
.site-foot-editorial .foot-news button[type="submit"] {
  min-height: 48px; max-width: 100%; margin: 0; padding: 12px 20px;
  border: 1px solid var(--accent-on-dark); border-radius: var(--radius-cta);
  background: var(--accent-on-dark); color: var(--ink);
  font: 750 .8125rem/1.4 var(--font-sans);
  letter-spacing: .01em; text-transform: none;
}
.site-foot-editorial .foot-news input[type="submit"]:hover:not(:disabled),
.site-foot-editorial .foot-news button[type="submit"]:hover:not(:disabled) { background: var(--surface); border-color: var(--surface); }
.site-foot-editorial .foot-news :is(input, button)[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }
.site-foot-editorial .foot-news .wpcf7-spinner { position: absolute; right: 0; bottom: -28px; margin: 0; }
.site-foot-editorial .foot-news .wpcf7-response-output { color: var(--surface); }
.site-foot-editorial .foot-news .wpcf7-not-valid-tip { color: var(--accent-on-dark); margin-top: 6px; }
.site-foot-editorial .foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--foot-line);
  padding-top: 30px;
}
.site-foot-editorial .foot-nav li { margin: 0; }
.site-foot-editorial .foot-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 7px 0; max-width: 100%;
  color: var(--surface); font: 500 1rem/1.5 var(--font-sans);
  text-decoration: none; text-underline-offset: 5px;
}
.site-foot-editorial .foot-nav a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.site-foot-editorial .foot-legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px 30px; margin-top: 30px; padding-top: 18px;
  border-top: 1px solid var(--foot-line);
  font: 400 .75rem/1.65 var(--font-sans); color: var(--foot-muted);
}
.site-foot-editorial .foot-legal > span { max-width: 100%; }
.site-foot-editorial .foot-legal-tools { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-foot-editorial .foot-legal a,
.site-foot-editorial .foot-legal-button {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 0; color: var(--foot-muted); font: inherit;
  text-decoration: none; text-underline-offset: 4px;
}
.site-foot-editorial .foot-legal a:hover,
.site-foot-editorial .foot-legal-button:hover { color: var(--surface); text-decoration: underline; }
.site-foot-editorial :is(a, button, input):focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 4px; }
@media (min-width: 1101px) {
  .site-foot-editorial .foot-grid { gap: 32px; }
  .site-foot-editorial .foot-nav + .foot-nav { border-left: 1px solid var(--foot-line); padding-left: 32px; }
  .site-foot-editorial .foot-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
@media (max-width: 900px) {
  .site-foot-editorial .foot-social-row .madrigal-social { grid-template-columns: 1fr; gap: 12px; }
  .site-foot-editorial .foot-connect { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; }
  .site-foot-editorial .foot-news form > p:has(> [data-name="email"]) { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .site-foot-editorial .foot-news :is(input, button)[type="submit"] { justify-self: start; }
}
@media (max-width: 640px) {
  .site-foot-editorial .foot-social-row .madrigal-social ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-foot-editorial > .container { padding-top: 36px; }
  .site-foot-editorial .foot-connect { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 32px; }
  .site-foot-editorial .foot-listen { margin-top: 24px; }
  .site-foot-editorial .foot-news { border-top: 1px solid var(--foot-line); padding-top: 28px; }
  .site-foot-editorial .foot-news :is(input, button)[type="submit"] { width: 100%; }
  .site-foot-editorial .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; padding-top: 28px; }
  .site-foot-editorial .foot-institution { grid-column: 1 / -1; border-top: 1px solid var(--foot-line); padding-top: 24px; }
  .site-foot-editorial .foot-institution ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .site-foot-editorial .foot-nav a { font-size: .9375rem; }
  .site-foot-editorial .foot-legal { margin-top: 24px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-foot-editorial .foot-plats a { transition: none; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .site-foot-editorial .foot-plats { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 360px) {
  .site-foot-editorial .foot-plats a { gap: 6px; padding: 10px 8px; font-size: .75rem; }
  .site-foot-editorial .foot-plats .plat-ico { width: 17px; height: 17px; }
}
