
:root { --idm-max: 1180px; }
body.idm-theme { overflow-x: clip; }
* { box-sizing: border-box; }
img, video, iframe, embed, object { max-width: 100%; }
.site-shell { max-width: var(--idm-max); margin: 0 auto; padding: 0 20px; }
.site-header-dynamic { border-bottom: 1px solid var(--idm-line-soft); }
.site-header-dynamic .utility-row,
.site-header-dynamic .branding-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.site-header-dynamic .utility-row { padding: 16px 0 8px; }
.site-header-dynamic .branding-row { padding: 18px 0 26px; }
.site-title-text { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; margin: 0; }
.site-title-text a { text-decoration:none; color: inherit; }
.site-description-text { margin: 6px 0 0; opacity: var(--idm-dim); }
.idm-menu, .idm-utility-menu, .idm-footer-menu { margin:0; padding:0; list-style:none; display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
.idm-menu li, .idm-utility-menu li, .idm-footer-menu li { margin:0; }
.idm-menu a, .idm-utility-menu a, .idm-footer-menu a { text-decoration:none; color:inherit; }
.idm-menu a:hover, .idm-utility-menu a:hover, .idm-footer-menu a:hover { text-decoration:underline; }
.idm-search-form { display:flex; align-items:center; gap:10px; }
.idm-search-form input[type="search"] { min-width: 180px; padding: 5px 12px; border:1.5px solid var(--idm-ink); border-radius: 0; }
.idm-search-form button { padding: 5px 12px; border:1.5px solid var(--idm-ink); border-left:0; border-radius:0; cursor:pointer; background:var(--idm-bg); }
.main-content-area { padding: 40px 0 60px; }
.idm-page-header { max-width: 900px; margin: 0 auto 40px; text-align:center; }
.idm-page-header h1, .idm-page-header h2 { margin-bottom: 10px; }
.idm-editable-content { max-width: 820px; margin: 0 auto; }
.idm-home-intro { max-width: 900px; margin: 0 auto 56px; text-align:center; }
.idm-home-posts { margin-top: 48px; }
.idm-section-title { margin: 0 0 24px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.idm-post-grid, .wp-block-post-template.columns-4 { list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
 .idm-post-grid.two-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
.idm-post-card img, .wp-block-post-featured-image img { width:100%; height:auto; display:block; }
.idm-post-card .taxonomy-category, .taxonomy-category { margin-bottom: 12px; }
.idm-post-card h3, .idm-post-card h4 { margin: 0 0 10px; }
.idm-post-card a { text-decoration:none; color:inherit; }
.idm-post-card a:hover { text-decoration:underline; }
.idm-post-meta { font-size: .85rem; opacity: var(--idm-dim); }
.idm-single-header { max-width: 980px; margin: 0 auto 28px; }
/* single-content width defined once below */
.idm-single-content img { height:auto; }
.idm-related-posts { margin-top: 56px; padding-top: 28px; }
.pagination, .nav-links { margin-top: 36px; display:flex; gap: 12px; flex-wrap:wrap; }
.pagination .page-numbers, .nav-links .page-numbers { padding: 8px 12px; border:1px solid var(--idm-line); text-decoration:none; }
.site-footer-dynamic { padding: 36px 0; }
.site-footer-dynamic .footer-row { display:flex; align-items:flex-start; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.site-footer-dynamic p { margin:0; }
.wp-caption, .wp-block-image { max-width: 100%; }
.gallery { display:grid; gap:16px; }
@media (max-width: 991px) { .idm-post-grid, .wp-block-post-template.columns-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) {
  .site-header-dynamic .utility-row, .site-header-dynamic .branding-row, .site-footer-dynamic .footer-row { flex-direction:column; align-items:flex-start; }
  .site-footer-dynamic .footer-row { gap: 12px; }
  .idm-post-grid, .wp-block-post-template.columns-4, .idm-post-grid.two-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .idm-search-form { width:100%; }
  .idm-search-form input[type="search"] { flex:1; min-width:0; width:100%; }
}

.idm-home-hero {
  position: relative;
  min-height: 420px;
  margin: 0 0 56px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.32) 38%, rgba(0,0,0,.08) 100%);
}
.idm-home-hero__inner {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 56px;
}
.idm-home-hero__title {
  max-width: 560px;
  margin: 0;
  color: var(--idm-on-brand);
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: .95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: left;
}
.idm-featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 28px;
  align-items: stretch;
  margin: 0 0 32px;
}
.idm-featured-post__image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}
.idm-featured-post__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.idm-featured-post__title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}
.idm-featured-post__title a { text-decoration:none; color:inherit; }
.idm-featured-post__title a:hover { text-decoration:underline; }
.idm-featured-post__excerpt { margin-top: 14px; }
@media (max-width: 700px) {
  .idm-home-hero { min-height: 300px; border-radius: 18px; }
  .idm-home-hero__inner { min-height: 300px; padding: 28px; }
  .idm-featured-post { grid-template-columns: 1fr; }
  .idm-featured-post__image img { min-height: 240px; }
}

:root {
  --idm-serif: "Ibarra Real Nova", Georgia, serif;
  --idm-sans: "Libre Franklin", Arial, sans-serif;

  /* One grey scale. These replace fourteen hand-picked rgba values that
     differed by amounts nobody could see. Three rules, two fills. */
  --idm-line-soft:   rgba(0,0,0,.08);
  --idm-line:        rgba(0,0,0,.14);
  --idm-line-strong: rgba(0,0,0,.22);
  --idm-fill:        rgba(0,0,0,.04);
  --idm-fill-strong: rgba(0,0,0,.08);

  /* Text is black. These used to fade secondary text to 62%, 45% and
     30%, which made half the site grey; they now only separate a
     disabled control from a live one. */
  --idm-dim:       1;
  --idm-dim-more:  1;
  --idm-dim-most:  1;
  --idm-disabled:  .4;

  /* ---------------------------------------------------------------
     The inherited stylesheets reference two dozen --wp--preset--*
     variables that nothing defines. An undefined variable makes the
     whole declaration compute to "unset", and several of those
     declarations carry !important — so a rule like
     "table { font-size: var(--wp--preset--font-size--text-m)
     !important }" silently reset every table on the site to the
     inherited 16px, beating the theme's own sizing. Same trap as the
     font families aliased further down. Give them values.
     --------------------------------------------------------------- */
  --wp--preset--font-size--text-xxs:  .72rem;
  --wp--preset--font-size--text-xs:   .8rem;
  --wp--preset--font-size--text-s:    .88rem;
  --wp--preset--font-size--text-m:    1rem;
  --wp--preset--font-size--text-l:    1.125rem;
  --wp--preset--font-size--text-xxxl: 2.5rem;

  --wp--preset--color--font-primary:               #111;
  --wp--preset--color--font-secondary:             #111;
  --wp--preset--color--font-tertiary:              #111;
  --wp--preset--color--primary:                    #781717;
  --wp--preset--color--secondary:                  #111;
  --wp--preset--color--background-primary:         #fff;
  --wp--preset--color--background-quinary:         rgba(0,0,0,.04);
  --wp--preset--color--border:                     rgba(0,0,0,.14);
  --wp--preset--color--border-secondary:           rgba(0,0,0,.08);
  --wp--preset--color--button-color-primary:       #111;
  --wp--preset--color--button-color-secondary:     #fff;
  --wp--preset--color--variant-primary:            #781717;
  --wp--preset--color--variant-secondary:          #111;
  --wp--preset--color--variant-font-primary:       #111;
  --wp--preset--color--variant-font-secondary:     #111;
  --wp--preset--color--variant-background-primary: #fff;
  --wp--preset--color--variant-button-color-primary:   #111;
  --wp--preset--color--variant-button-color-secondary: #fff;
  --wp--preset--variant-color--primary:                #781717;

  /* The inherited form controls read these. */
  --global--color--form-border:        rgba(0,0,0,.22);
  --global--color--form-border-active: #781717;
  --global--color--form-background:    #fff;
  --global--color--form-select-fill:   #111;
  --global--color--form-glow:          rgba(120,23,23,.18);
  --global--color--border:             rgba(0,0,0,.14);
  --global--color--notification:       #781717;
  --global--color--success:            #2f6b35;
  --global--color--variant-code-background: rgba(0,0,0,.04);
  --global--color--variant-code-color:      #111;
  --wp--style--color--link:            #111;

  /* ---------------------------------------------------------------
     SURFACES AND INK
     Dark mode used to be a list of selectors, and every new section
     was one somebody had forgotten to add to it. These four are what
     the whole site is painted with, so the dark block below only has
     to change them once.
     --------------------------------------------------------------- */
  --idm-bg:        #fff;        /* the page */
  --idm-bg-soft:   #faf9f7;     /* a panel raised off it */
  --idm-ink:       #111;        /* body text */
  --idm-ink-soft:  #41403d;     /* a caption or a byline */
  --idm-burgundy:  #781717;     /* a brand SURFACE: the same in both modes */
  --idm-burgundy-ink: #fff;     /* text that sits on the burgundy */

  /* Text that sits on something dark by its own nature — a photograph,
     a video, the burgundy — is white in both modes. It must not follow
     --idm-bg, because that inverts and the backdrop does not. */
  --idm-on-brand:  #fff;

  /* The page gutter. Referenced in a dozen places with a fallback; it
     was never actually defined, so every one of them silently used its
     fallback and the two could drift apart. */
  --idm-shell-padding: 24px;
  --idm-shell-max:     1280px;
  /* The brand colour used as TEXT on the page. This one does lighten in
     dark mode, because #781717 on near-black cannot be read. */
  --idm-accent:    #781717;
}

/* =====================================================================
   DARK MODE
   One place. Every rule that paints with a token follows automatically,
   the inherited stylesheets included, because they read the same
   --wp--preset--* and --global--* variables redefined here.
   ===================================================================== */
html.idm-dark {
  --idm-bg:        #101114;
  --idm-bg-soft:   #16181c;
  --idm-ink:       #e8e6e1;
  --idm-ink-soft:  #b9b6b0;
  /* The burgundy surface stays as it is: it is dark enough to carry
     white text on a dark page, and lightening it turned the footer into
     a pale band with black writing on it. */
  --idm-accent:    #c9695f;     /* only the text accent lightens */

  --idm-line-soft:   rgba(255,255,255,.10);
  --idm-line:        rgba(255,255,255,.18);
  --idm-line-strong: rgba(255,255,255,.30);
  --idm-fill:        rgba(255,255,255,.06);
  --idm-fill-strong: rgba(255,255,255,.12);

  --wp--preset--color--font-primary:               #e8e6e1;
  --wp--preset--color--font-secondary:             #e8e6e1;
  --wp--preset--color--font-tertiary:              #e8e6e1;
  --wp--preset--color--primary:                    #c9695f;
  --wp--preset--color--secondary:                  #e8e6e1;
  --wp--preset--color--background-primary:         #101114;
  --wp--preset--color--background-quinary:         rgba(255,255,255,.06);
  --wp--preset--color--border:                     rgba(255,255,255,.18);
  --wp--preset--color--border-secondary:           rgba(255,255,255,.10);
  --wp--preset--color--button-color-primary:       #e8e6e1;
  --wp--preset--color--button-color-secondary:     #101114;
  --wp--preset--color--variant-primary:            #c9695f;
  --wp--preset--color--variant-secondary:          #e8e6e1;
  --wp--preset--color--variant-font-primary:       #e8e6e1;
  --wp--preset--color--variant-font-secondary:     #e8e6e1;
  --wp--preset--color--variant-background-primary: #101114;
  --wp--preset--color--variant-button-color-primary:   #e8e6e1;
  --wp--preset--color--variant-button-color-secondary: #101114;
  --wp--preset--variant-color--primary:                #c9695f;

  --global--color--form-border:        rgba(255,255,255,.30);
  --global--color--form-border-active: #c9695f;
  --global--color--form-background:    #16181c;
  --global--color--form-select-fill:   #e8e6e1;
  --global--color--form-glow:          rgba(201,105,95,.25);
  --global--color--border:             rgba(255,255,255,.18);
  --global--color--variant-code-background: rgba(255,255,255,.06);
  --global--color--variant-code-color:      #e8e6e1;
  --wp--style--color--link:            #e8e6e1;

  color-scheme: dark;
}

/* The surfaces the tokens paint. Everything else inherits from these,
   which is what makes one token change the whole site. */
html { background: var(--idm-bg); }
body.idm-theme {
    background: var(--idm-bg);
    color: var(--idm-ink);
}
/* :where() keeps this at zero specificity, so it is a default rather
   than a rule. Written plainly, "body.idm-theme p" beat
   ".idm-footer__address" and painted white footer text black. Every
   component that chooses its own colour now wins, as it should. */
:where(body.idm-theme) :where(h1, h2, h3, h4, h5, h6, p, li, th, td, dt, dd,
    figcaption, blockquote, label, legend, summary) { color: var(--idm-ink); }
:where(body.idm-theme a) { color: inherit; }
.site-header-dynamic,
.site-footer-dynamic,
.idm-primary-nav { background: var(--idm-bg); color: var(--idm-ink); }
body.idm-theme hr { border-color: var(--idm-line); }

/* Form controls follow too; the inherited sheet paints them from the
   --global--color--form-* variables redefined above, but the text
   colour inside them is its own. */
:where(body.idm-theme) input,
:where(body.idm-theme) textarea,
:where(body.idm-theme) select {
    color: var(--idm-ink);
    background-color: var(--global--color--form-background);
}
:where(body.idm-theme) ::placeholder { color: var(--idm-ink-soft); opacity: .75; }

/* The two notice colours need a dark counterpart of their own: a pale
   green panel with pale text would be unreadable. */
:root { --idm-ok-bg: #eef7ee; --idm-bad-bg: #fbefef; }
html.idm-dark { --idm-ok-bg: rgba(90,170,100,.16); --idm-bad-bg: rgba(201,105,95,.18); }
.idm-form-success { background: var(--idm-ok-bg); color: var(--idm-ink); }
.idm-form-error   { background: var(--idm-bad-bg); color: var(--idm-ink); }

/* Photographs sit oddly bright against a dark page; a touch less so. */
html.idm-dark img:not(.idm-no-dim) { filter: brightness(.88) contrast(1.02); }
body.idm-theme { font-family: var(--idm-sans); }
.site-title-text,
.site-title-text a,
.idm-home-featured__title,
.idm-single-title { font-family: var(--idm-serif); }
.idm-section-title,
.idm-card-title,
.idm-card-title a,
.idm-card-meta,
.idm-single-meta,
.idm-single-content,
.idm-single-content p,
.idm-home-featured__text,
.idm-get-started__text,
.taxonomy-category,
.idm-post-card,
.site-description-text,
.site-footer-dynamic p { font-family: var(--idm-sans); }
.idm-menu a,
.idm-utility-menu a,
.idm-footer-menu a,
.idm-menu li,
.idm-footer-menu li,
.idm-menu-toggle { font-family: var(--idm-sans); }
.idm-section-title,
.idm-card-title,
.idm-card-title a { font-weight: 700; }
.idm-home-featured,
.idm-top-stories,
.idm-get-started { margin: 0 0 72px; }
.idm-home-featured__grid {
  display: grid;
  grid-template-columns: 1fr minmax(520px, 880px);
  column-gap: 40px;
  row-gap: 26px;
  align-items: start;
}
.idm-home-featured__copy { padding-top: 12px; }
.idm-home-featured__title {
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 5rem);
  line-height: .92;
  letter-spacing: -0.02em;
  text-transform: none;
}
.idm-home-featured__media img {
  display: block;
  width: 100%;
  height: auto;
}
.idm-home-featured__text {
  grid-column: 2;
  columns: 2;
  column-gap: 56px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}
.idm-home-featured__text p { margin: 0; break-inside: avoid; }
.idm-section-title {
  font-size: clamp(2.35rem, 3.2vw, 3.3rem);
  line-height: 1;
  margin: 0 0 34px;
}
.idm-post-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.idm-post-card .wp-block-post-featured-image { margin: 0 0 12px; }
.idm-post-card .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
}
.idm-post-card:nth-child(1) .wp-block-post-featured-image img,
.idm-post-card:nth-child(3) .wp-block-post-featured-image img {
  aspect-ratio: 1 / 1;
}
.idm-card-title {
  font-size: clamp(1.3rem, 1.9vw, 1.95rem);
  line-height: 1.16;
  margin: 0 0 10px;
}
.idm-card-title a { text-decoration: none; color: inherit; }
.idm-card-title a:hover { text-decoration: underline; }
.idm-card-meta {
  font-size: 0.95rem;
  font-weight: 400;
}
.idm-post-card .taxonomy-category {
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: .02em;
}
.idm-get-started__grid {
  display: grid;
  grid-template-columns: 1fr minmax(520px, 880px);
  column-gap: 40px;
  row-gap: 26px;
  align-items: start;
}
.idm-get-started__title-wrap { padding-top: 12px; }
.idm-get-started__media img { display: block; width: 100%; height: auto; }
.idm-get-started__text {
  grid-column: 2;
  columns: 2;
  column-gap: 56px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}
.idm-get-started__text p { margin: 0; }
.idm-single-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, .75fr);
  gap: 44px;
  align-items: center;
  margin: 8px 0 34px;
}
.idm-single-title {
  margin: 0 0 22px;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: .92;
  letter-spacing: -0.02em;
}
.idm-single-meta {
  font-size: 1rem;
  line-height: 1.4;
}
.idm-meta-sep::before { content: ""; display: inline-block; width: .45rem; }
.idm-single-featured-image,
.idm-single-featured-image img { margin: 0; width: 100%; display: block; }
/* Show full image on event pages — no cropping */
.idm-single-event .idm-single-featured-image img {
  aspect-ratio: unset;
  height: auto;
  object-fit: unset;
  max-height: 680px;
  object-fit: contain;
  background: var(--idm-ink);
}
/* Non-event single posts keep the square crop */
.idm-single-article:not(.idm-single-event) .idm-single-featured-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.idm-single-content {
  width: min(60vw, 980px);
  max-width: 60%;
  margin: 0 auto;
  font-size: clamp(1.1rem, 1.45vw, 1.28rem);
  line-height: 1.65;
}
.idm-single-content > *:first-child { margin-top: 0; }
.idm-single-content h2,
.idm-single-content h3,
.idm-single-content h4,
.idm-single-content strong { font-weight: 700; }
@media (max-width: 1100px) {
  .idm-home-featured__grid,
  .idm-get-started__grid { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); }
  .idm-single-content { width: min(72vw, 900px); max-width: 72%; margin: 0 auto; }
}
@media (max-width: 820px) {
  .idm-home-featured__grid,
  .idm-get-started__grid,
  .idm-single-hero { grid-template-columns: 1fr; }
  .idm-post-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .idm-home-featured__text,
  .idm-get-started__text { grid-column: auto; columns: 1; }
  .idm-single-content { width: 100%; max-width: 100%; margin-left: 0; }
}

/* v4 header, footer, stories, calendar */
.site-header-dynamic { border-bottom: 1px solid var(--idm-line); }
.site-header-dynamic .utility-row { padding: 14px 0 8px; justify-content: flex-end; display: flex; align-items: center; gap: 16px; }
.header-social-wrap { display: flex; align-items: center; gap: 8px; }
.utility-spacer { flex: 1; }
.header-search-wrap { width: min(260px, 100%); }
.header-search-wrap input[type="search"],
.header-search-wrap .search-field {
    border: 1.5px solid var(--idm-ink);
    padding: 5px 12px;      /* same vertical padding as .header-social-icon */
    font-family: var(--idm-sans, sans-serif);
    font-size: .9rem;
    width: 100%;
    box-sizing: border-box;
    background: var(--idm-bg);
    color: var(--idm-ink);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    height: auto;
}
.header-search-wrap input[type="search"]:focus,
.header-search-wrap .search-field:focus {
    outline: 2px solid var(--idm-ink);
    outline-offset: -2px;
}
.site-header-dynamic .branding-row { padding: 20px 0 24px; gap: 30px; }
.site-branding-wrap { display:flex; align-items:center; gap:16px; min-width:0; }
.site-logo-square { width: 52px; height: 52px; display:flex; align-items:center; justify-content:center; flex: 0 0 52px; text-decoration:none; }
.site-logo-square img, .site-logo-square .custom-logo { width:52px; height:52px; object-fit:cover; display:block; }
.site-logo-placeholder { display:block; width:52px; height:52px; background:#e7e7e7; border:1px solid var(--idm-line); }
.site-title-text { font-size: clamp(1.7rem, 3vw, 2.6rem); text-transform:none; letter-spacing: -0.02em; }
.site-description-text { font-size:.9rem; margin-top:4px; }
.idm-primary-nav { margin-left:auto; }
.idm-menu, .idm-footer-menu { gap: 28px; }
.idm-menu a, .idm-footer-menu a { letter-spacing: .02em; }
.idm-menu-toggle { display:none; border:0; background:transparent; padding:4px; width:38px; height:38px; align-items:center; justify-content:center; flex-direction:column; gap:6px; cursor:pointer; }
.idm-menu-toggle span { display:block; width:22px; height:1.8px; background:var(--idm-ink); }
.idm-search-form { display:block; width:100%; }
.idm-search-form input[type="search"] { width:100%; min-width:0; padding: 5px 12px; border:1.5px solid var(--idm-ink); border-radius:0; font-family:var(--idm-sans); }
.idm-home-featured__title, .idm-single-title, .idm-calendar-item__title, .idm-calendar-item__date { font-family: var(--idm-serif); }
.idm-calendar-item__content, .idm-calendar-item__content p { font-family: var(--idm-sans); }
.idm-top-stories--below-single { margin-top: 88px; }
.idm-stories-grid { margin-bottom: 18px; }
.idm-calendar-list { border-top:1px solid var(--idm-line); }
.idm-calendar-item { padding: 22px 0; border-bottom:1px solid var(--idm-line); }
.idm-calendar-item__header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:8px; }
.idm-calendar-item__title { margin:0; font-size: clamp(1.5rem, 2vw, 2.25rem); line-height:1.05; }
.idm-calendar-item__title a { color:inherit; text-decoration:none; }
.idm-calendar-item__title a:hover { text-decoration:underline; }
.idm-calendar-item__date { font-size:1.25rem; white-space:nowrap; font-weight:700; letter-spacing:-.01em; }
.idm-calendar-item__content { width: 80%; max-width: 80%; line-height:1.6; }
.site-footer-dynamic .footer-row { gap: 42px; }
.idm-footer-menu { justify-content:center; }
@media (max-width: 900px) {
  .site-header-dynamic .utility-row { display:none !important; }
  .idm-menu-toggle { display:inline-flex; }
  .site-shell.branding-row { position:relative; overflow:visible; }
  .idm-primary-nav { position:absolute; top:100%; left:16px; right:16px; width:auto; background:var(--idm-bg); border:1px solid var(--idm-line); padding:0; display:none; z-index:9999; box-shadow:0 4px 12px rgba(0,0,0,.08); }
  .idm-primary-nav.is-open { display:block; }
  .site-header-dynamic .branding-row { position:relative; }
  .idm-menu { flex-direction:column; align-items:flex-start; gap:18px; }
}
@media (max-width: 700px) {
  .site-header-dynamic .branding-row { flex-direction:row; align-items:center; padding-left:16px; padding-right:16px; }
  .site-branding-wrap { min-width:0; flex:1; }
  .site-title-text { font-size: clamp(1.45rem, 6vw, 2rem); }
  .site-description-text { display:none; }
  .site-footer-dynamic .footer-row { align-items:flex-start; }
  .idm-calendar-item__header { flex-direction:column; gap:8px; }
}

/* v5 about/contact/home refinements */
.idm-menu, .idm-footer-menu { gap: 24px; }
.idm-home-static-box { margin: 0 0 56px; overflow:hidden; }
.idm-home-static-box__inner {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.idm-home-static-box__inner img {
  display: block;
  width: 100%;
  height: auto;
  min-height: clamp(240px, 40vw, 480px);
  max-height: 520px;
  object-fit: cover;
}
.idm-home-static-box__title {
  position: absolute;
  left: clamp(28px, 5vw, 64px);
  bottom: clamp(24px, 6vw, 56px);
  margin: 0;
  max-width: min(70%, 620px);
  color: var(--idm-on-brand);
  font-family: var(--idm-serif);
  font-size: clamp(2.7rem, 6.2vw, 5.7rem);
  line-height: .92;
  letter-spacing: -0.02em;
}
.idm-about-page,
.idm-contact-page { padding-top: 8px; }
.idm-contact-hero { margin: 0 0 56px; max-width: 820px; }
/* The about hero is the calendar page's two-column layout now: title
   and a short paragraph beside the picture, so it is not held to a
   single text column. */
.idm-about-hero { margin: 0 0 56px; }
.idm-about-hero .idm-about-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.idm-about-hero__caption {
  font-family: var(--idm-sans, sans-serif);
  font-size: .82rem;
  opacity: var(--idm-dim);
  margin: 8px 0 0;
}
/* Whatever shape the photograph is, it sits in the same frame, so the
   page does not change height with the picture somebody uploads. */
.idm-about-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
/* The board needs air after the text above it. */
.idm-about-structured .idm-authors-section { margin-top: 56px; }
@media (max-width: 700px) {
  .idm-about-structured .idm-authors-section { margin-top: 36px; }
}
.idm-about-title {
  margin: 0 0 18px;
  font-family: var(--idm-serif);
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: .92;
  letter-spacing: -0.02em;
}
.idm-about-intro,
.idm-contact-credit { font-family: var(--idm-sans); font-size: 1.1rem; line-height: 1.65; }
.idm-contact-credit { margin: 0 0 14px; opacity: var(--idm-dim); }
.idm-authors-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 34px 28px;
  margin-bottom: 72px;
}
.idm-author-card img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  display:block;
  margin-bottom: 16px;
}
.idm-author-card h3,
.idm-faq-item h3,
.idm-contact-block h3 {
  margin: 0 0 8px;
  font-family: var(--idm-sans);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
}
.idm-author-card__role,
.idm-contact-list li span {
  display:block;
  margin: 0 0 10px;
  font-family: var(--idm-sans);
  font-weight: 700;
}
.idm-author-card p,
.idm-faq-item p,
.idm-contact-block p,
.idm-contact-list li,
.idm-contact-list strong {
  font-family: var(--idm-sans);
  line-height: 1.6;
}
.idm-faq-list { border-top: 1px solid var(--idm-line); margin-bottom: 72px; }
.idm-faq-item { padding: 24px 0; border-bottom: 1px solid var(--idm-line); }
.idm-contact-columns {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 40px;
}
.idm-contact-list { list-style:none; margin:0; padding:0; border-top:1px solid var(--idm-line); }
.idm-contact-list li { display:flex; flex-direction:column; gap:4px; padding:16px 0; border-bottom:1px solid var(--idm-line); }
.idm-contact-blocks { border-top:1px solid var(--idm-line); }
.idm-contact-block { padding:18px 0; border-bottom:1px solid var(--idm-line); }
@media (max-width: 1000px) {
  .idm-authors-grid,
  .idm-contact-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .idm-menu, .idm-footer-menu { gap: 18px; }
  .idm-home-static-box__title { max-width: 80%; }
  .idm-contact-columns { grid-template-columns: 1fr; }
  /* Board members stay two to a row: one portrait per screen made the
     board look longer than it is, and the faces read fine at half
     width. */
  .idm-authors-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 16px; }
  .idm-authors-grid .idm-author-card h3 { font-size: 1.1rem; }
  .idm-authors-grid .idm-author-card__role { font-size: .88rem; }
  .idm-authors-grid .idm-author-card p { font-size: .9rem; }
}

@media (max-width: 560px) {
  .idm-post-grid, .wp-block-post-template.columns-4, .idm-post-grid.two-col, .idm-post-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
  .idm-card-title { font-size: 1.05rem; }
  .idm-calendar-item__content { width: 100%; max-width: 100%; }
}

/* v10 menu and events updates */
.idm-menu,
.idm-footer-menu { gap: 14px; }
.idm-menu li,
.idm-footer-menu li { display:flex; align-items:center; }
.idm-menu li + li::before,
.idm-footer-menu li + li::before {
  content: "|";
  display: inline-block;
  margin: 0 10px 0 0;
  color: var(--idm-ink);
  font-family: var(--idm-sans);
  font-weight: 700;
}
.idm-menu a,
.idm-footer-menu a {
  font-family: var(--idm-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .92rem;
}
@media (max-width: 900px) {
  .idm-menu li + li::before { content: none; }
}

.idm-calendar-hero {
  display:grid;
  grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr);
  gap: 34px;
  align-items:center;
  margin: 0 0 48px;
}
.idm-calendar-hero__copy h1 {
  margin: 0 0 16px;
  font-family: var(--idm-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: .92;
  letter-spacing: -0.02em;
}
.idm-calendar-hero__copy p {
  margin: 0;
  max-width: 56ch;
  font-family: var(--idm-sans);
  font-size: 1.06rem;
  line-height: 1.65;
}
.idm-calendar-hero__media img {
  display:block;
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.idm-single-event {
  max-width: 1180px;
  margin: 0 auto;
}
.idm-single-event .idm-single-hero__copy {
  align-self: start;
}
.idm-event-date-display {
  margin: 0 0 18px;
  font-family: var(--idm-serif);
  font-size: clamp(1.6rem, 2.2vw, 2.45rem);
  line-height: 1.05;
}
.idm-signup-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top: 26px;
  padding: 14px 22px;
  border: 1px solid var(--idm-ink);
  text-decoration:none;
  color:var(--idm-ink);
  font-family: var(--idm-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.idm-signup-button:hover {
  background:var(--idm-ink);
  color:var(--idm-bg);
  text-decoration:none;
}
@media (max-width: 820px) {
  .idm-calendar-hero { grid-template-columns: 1fr; }
}

/* v14 mobile menu and page updates */
@media (max-width: 900px) {
  .idm-primary-nav{padding:0;overflow:hidden;}
  .idm-menu{width:100%;gap:0;}
  .idm-menu li{display:block;width:100%;}
  .idm-menu li + li{border-top:1px solid var(--idm-line);}
  .idm-menu li + li::before{content:none;}
  .idm-menu a{display:block;width:100%;padding:11px 16px;font-size:.95rem;}
}
.idm-contact-page .idm-page-editor-content{padding-bottom:24px;}

/* v16 consistency and front-end editor */
body.idm-theme,
body.idm-theme p,
body.idm-theme li,
body.idm-theme label,
body.idm-theme input,
body.idm-theme textarea,
body.idm-theme select,
body.idm-theme button,
body.idm-theme .idm-page-editor-content,
body.idm-theme .idm-page-editor-content p,
body.idm-theme .idm-contact-page,
body.idm-theme .idm-membership-page,
body.idm-theme .idm-membership-page p,
body.idm-theme .idm-project-card p,
body.idm-theme .idm-contact-block p,
body.idm-theme .idm-contact-list,
body.idm-theme .idm-contact-list li,
body.idm-theme .idm-author-card__content,
body.idm-theme .idm-author-card__content p,
body.idm-theme .idm-single-content,
body.idm-theme .idm-single-content p,
body.idm-theme .idm-calendar-item__content,
body.idm-theme .idm-calendar-item__content p,
body.idm-theme .idm-edit-hub,
body.idm-theme .idm-front-editor-guard,
body.idm-theme .idm-editor-form {
  font-family: var(--idm-sans);
}

.idm-page-header h1,
.idm-membership-page .idm-page-header h1,
.idm-edit-hub h1,
.idm-calendar-hero__title,
.idm-single-title,
.idm-calendar-item__title,
.idm-calendar-item__date {
  font-family: var(--idm-serif);
}

.idm-editor-form {
  max-width: 920px;
}
/* Every field that takes typing is the same width. Listing the types
   one by one left email, tel, number and search at the browser's own
   default, so a form changed width from one line to the next. */
.idm-editor-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.idm-editor-form textarea,
.idm-editor-form select {
  width: 100%;
  border: 1px solid var(--idm-line);
  padding: 12px 14px;
  font-family: var(--idm-sans);
  font-size: 1rem;
  box-sizing: border-box;
}
.idm-editor-form label { display:block; margin:0 0 6px; font-weight:700; }
.idm-editor-card { border:1px solid var(--idm-line); padding:20px; margin:0 0 18px; }
.idm-editor-card legend { font-family: var(--idm-serif); font-size: 1.2rem; padding:0 8px; }
.idm-form-success, .idm-form-error { padding: 14px 16px; margin: 0 0 16px; }
.idm-form-success { background: var(--idm-ok-bg); }
.idm-form-error { background: var(--idm-bad-bg); }
.idm-edit-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }

@media (max-width: 900px) {
  .idm-primary-nav { right:0; left:0; width:100%; border-left:0; border-right:0; padding:0; }
  .idm-primary-nav .idm-menu { width:100%; gap:0; }
  .idm-primary-nav .idm-menu > li { width:100%; border-bottom:1px solid var(--idm-line); list-style:none; margin:0; }
  .idm-primary-nav .idm-menu > li:last-child { border-bottom:0; }
  .idm-primary-nav .idm-menu > li > a { display:block; width:100%; padding:16px 20px; }
}

/* v21 updates */
.idm-home-intro {
  max-width: 1100px;
  margin: 0 0 2.25rem;
  text-align: left;
}
.idm-home-intro p {
  margin: 0;
  font-family: var(--idm-sans);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 60rem;
}
.idm-editor-taxonomy-field {
  border: 1px solid var(--idm-line);
  padding: 14px 16px;
  margin: 0 0 1rem;
}
.idm-editor-taxonomy-field legend {
  font-weight: 700;
}
.idm-checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 10px 0;
  font-family: var(--idm-sans);
}
.idm-editor-richtext {
  margin: 0 0 1rem;
}
.idm-editor-richtext label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.idm-article-subtitle {
  font-family: var(--idm-sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}
.idm-articles-filter-wrap {
  margin: 1rem 0 2rem;
}
.idm-articles-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.idm-articles-filter label,
.idm-articles-filter select {
  font-family: var(--idm-sans);
}
.idm-post-card--lead {
  margin-bottom: 2.25rem;
}
.idm-post-card--lead .idm-card-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.idm-post-grid--rest {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 900px) {
  .idm-post-grid--rest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.idm-form-help {
  margin: -0.5rem 0 1rem;
  color: var(--idm-ink);
  font-size: 0.95rem;
  font-family: var(--idm-sans);
}
.idm-edit-content-items {
  border-top: 1px solid var(--idm-line);
}
.idm-edit-content-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--idm-line);
}
.idm-edit-content-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.idm-edit-content-title {
  font-family: var(--idm-sans);
  font-weight: 700;
}
.idm-edit-content-type {
  font-family: var(--idm-sans);
  font-size: 0.9rem;
  color: var(--idm-ink);
}
@media (max-width: 640px) {
  .idm-edit-content-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Experimental Version 1 */
:root{--idm-section-space:88px;
  /* Aliases, so the two names used across the file follow the one
     place the colours are decided. They used to be literals, which is
     why half the site stayed black in dark mode. */
  --idm-border: var(--idm-line);
  --idm-text:   var(--idm-ink);}
body.idm-theme{color:var(--idm-text);}
.idm-home-intro,.idm-linked-projects,.idm-top-stories,.idm-get-started,.idm-calendar-group,.idm-articles-list,.idm-edit-content-section{margin-bottom:var(--idm-section-space);}
.idm-home-intro,.idm-linked-projects,.idm-top-stories,.idm-get-started,.idm-calendar-group,.idm-edit-content-section{padding-top:0;border-top:0;}
.idm-home-intro{text-align:left;max-width:760px;margin-top:10px;}
.idm-section-title{font-size:clamp(2.7rem,3.9vw,4rem);line-height:.96;margin-bottom:28px;}
.idm-card-title{font-size:clamp(1.45rem,2vw,2.2rem);line-height:1.08;}
.idm-card-excerpt{font-size:1rem;line-height:1.65;color:var(--idm-ink-soft);margin-top:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.idm-post-card,.idm-project-card,.idm-calendar-item,.idm-edit-content-item{transition:transform .2s ease,opacity .2s ease;}
.idm-post-card:hover,.idm-project-card:hover{transform:translateY(-2px);}
.idm-post-card:hover .wp-block-post-featured-image img,.idm-project-card:hover img{transform:scale(1.02);transition:transform .3s ease;}
.idm-menu a,.idm-footer-menu a{transition:opacity .2s ease;}
.idm-menu a:hover,.idm-footer-menu a:hover{opacity: var(--idm-dim);text-decoration:none;}
.idm-post-card .wp-block-post-featured-image{overflow:hidden;}
.idm-post-card .taxonomy-category{font-weight:700;letter-spacing:.06em;}
.idm-single-title{font-size:clamp(3.5rem,7vw,6.5rem);}
.idm-single-content{font-size:clamp(1.12rem,1.45vw,1.32rem);line-height:1.78;}
.idm-single-content h2{font-size:clamp(1.9rem,2.6vw,2.6rem);line-height:1.08;margin:2.3rem 0 1rem;}
.idm-single-content h3{font-size:clamp(1.4rem,2vw,1.8rem);line-height:1.12;margin:2rem 0 .8rem;}
.idm-card-role{opacity: var(--idm-dim);}
.idm-articles-filter-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:26px;}
.idm-filter-chip{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--idm-border);text-decoration:none;color:inherit;font-family:var(--idm-sans);font-weight:700;font-size:.8rem;}
.idm-filter-chip.is-active,.idm-filter-chip:hover{background:var(--idm-ink);color:var(--idm-bg);text-decoration:none;}
.idm-editor-form,.idm-front-editor-guard{max-width:900px;margin:0 auto 56px;}
.idm-form-help{font-size:.92rem;opacity: var(--idm-dim);}
.idm-form-actions{display:flex;gap:12px;flex-wrap:wrap;}
.idm-signup-button--secondary{background:var(--idm-bg);color:var(--idm-ink);border-color:#bcb8af;}
.idm-signup-button--danger{border-color:#8a1d1d;color:#8a1d1d;}
.idm-signup-button--danger:hover{background:#8a1d1d;color:var(--idm-bg);}
.idm-calendar-item__meta{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 10px;font-family:var(--idm-sans);font-size:.95rem;font-weight:700;}
.idm-event-location{font-family:var(--idm-sans);font-size:1rem;}
@media (max-width:900px){.idm-primary-nav{padding:0;}.idm-menu{width:100%;gap:0;}.idm-menu li{width:100%;padding:16px 18px;border-bottom:1px solid var(--idm-border);}.idm-menu li + li::before{display:none;}.idm-primary-nav{border:1px solid var(--idm-border);} }
@media (max-width:700px){.idm-home-intro,.idm-linked-projects,.idm-top-stories,.idm-get-started,.idm-calendar-group,.idm-articles-list,.idm-edit-content-section{margin-bottom:58px;padding-top:20px;}.idm-section-title{font-size:clamp(2rem,8vw,2.8rem);} }

/* v23 requested adjustments */
.idm-articles-page .idm-post-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.idm-home-events-preview .idm-calendar-list { border-top:0; }
.idm-author-articles { margin-top:48px; }
@media (max-width: 900px) {
  .idm-articles-page .idm-post-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.idm-section-title-link{color:inherit;text-decoration:none;}
.idm-section-title-link:hover,.idm-section-title-link:focus{text-decoration:none;color:inherit;}
.idm-card-title.idm-title--long,.idm-calendar-item__title.idm-title--long{font-size:clamp(1.15rem,1.5vw,1.7rem);line-height:1.16;}
.idm-single-title.idm-title--long{font-size:clamp(2.4rem,4.6vw,4.2rem);line-height:1.04;}

.idm-single-event-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px;align-items:center;}
.idm-single-event-actions .idm-signup-button{margin:0;}

/* ================================================================
   NEWSLETTER SECTION
   ================================================================ */
.idm-newsletter-section {
    background: transparent;
    padding: 1.2rem 0 2.5rem;
    margin-top: 0;
}
.idm-newsletter-inner {
    max-width: 640px;
    text-align: center;
}
.idm-newsletter-heading {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.idm-newsletter-subtext {
    color: var(--color-text-light, #555);
    margin-bottom: 1.5rem;
}
.idm-newsletter-form {
    width: 100%;
}
.idm-newsletter-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.idm-newsletter-row input[type="email"] {
    flex: 1 1 260px;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--color-border, #ccc);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--idm-bg);
}
.idm-newsletter-row input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary, var(--idm-ink));
}

/* ================================================================
   PAST EVENTS – more link
   ================================================================ */
.idm-more-past-events {
    margin-top: 1.25rem;
}
.idm-more-past-link {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-primary, var(--idm-ink));
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}
.idm-more-past-link:hover {
    text-decoration: underline;
}

/* ================================================================
   ABOUT PAGE BANNER
   ================================================================ */
.idm-about-banner {
    margin: 2.5rem 0;
}

/* ================================================================
   PROJECT PAST EVENTS SECTION
   ================================================================ */
.idm-project-past-events {
    margin-top: 2rem;
    padding-top: 2rem;
}

/* ================================================================
   LINKS PAGE
   ================================================================ */
.idm-links-page {
    display: flex;
    justify-content: center;
    padding: 3rem 20px 5rem;
    min-height: 60vh;
}
.idm-links-card {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.idm-links-logo {
    margin-bottom: 1.25rem;
}
.idm-links-logo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.idm-links-title {
    font-family: var(--idm-serif, serif);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 6px;
    text-align: center;
}
.idm-links-subtitle {
    font-size: .95rem;
    opacity: var(--idm-dim);
    margin: 0 0 2rem;
    text-align: center;
}
.idm-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.idm-link-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid var(--idm-ink);
    text-align: center;
    text-decoration: none;
    color: var(--idm-ink);
    font-family: var(--idm-sans, sans-serif);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .02em;
    transition: background .15s, color .15s;
    box-sizing: border-box;
}
.idm-link-button:hover {
    background: var(--idm-ink);
    color: var(--idm-bg);
    text-decoration: none;
}
.idm-links-empty {
    color: #888;
    text-align: center;
    margin-top: 1rem;
}

/* ================================================================
   GLOBAL BUTTON COLOUR FIXES — remove any blue browser defaults
   ================================================================ */
.idm-signup-button,
.idm-link-button,
.idm-more-past-link,
body.idm-theme button {
    -webkit-appearance: none;
    appearance: none;
    color: var(--idm-ink);
    background-color: transparent;
}
.idm-signup-button:focus,
.idm-link-button:focus,
body.idm-theme button:focus,
body.idm-theme input:focus,
body.idm-theme select:focus,
body.idm-theme textarea:focus {
    outline: 2px solid var(--idm-ink);
    outline-offset: 2px;
}
/* Override any WP or browser blue on links used as buttons */
a.idm-signup-button,
a.idm-link-button {
    color: var(--idm-ink);
}
a.idm-signup-button:hover,
a.idm-link-button:hover {
    color: var(--idm-bg);
    background: var(--idm-ink);
}

/* ================================================================
   MOBILE HEADER TIGHTENING
   ================================================================ */
@media (max-width: 900px) {
  .site-shell.branding-row {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ================================================================
   NEWSLETTER FORM — email input matches button style
   ================================================================ */
.idm-newsletter-row {
    align-items: stretch;
}
.idm-newsletter-row input[type="email"] {
    border: 1.5px solid var(--idm-ink);
    border-radius: 0;
    padding: 14px 18px;
    font-family: var(--idm-sans, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    background: var(--idm-bg);
    color: var(--idm-ink);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.idm-newsletter-row input[type="email"]:focus {
    outline: 2px solid var(--idm-ink);
    outline-offset: -2px;
    border-color: var(--idm-ink);
}
.idm-newsletter-row .idm-signup-button {
    margin-top: 0;
    white-space: nowrap;
}

/* ================================================================
   LINKS PAGE — more space between logo and buttons
   ================================================================ */
.idm-links-logo {
    margin-bottom: 2rem;
}
.idm-links-subtitle {
    margin-bottom: 2.5rem;
}

/* ================================================================
   EVENT SIGNUP FORM TOGGLE
   ================================================================ */
.idm-event-form-toggle-wrap {
    border: 1px solid var(--idm-line);
    padding: 16px 20px;
    margin-top: 18px;
}
.idm-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--idm-sans, sans-serif);
}
.idm-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--idm-ink);
    cursor: pointer;
    flex-shrink: 0;
}

/* ================================================================
   OPINION FORM
   ================================================================ */
.idm-opinion-form-page {
    padding-bottom: 4rem;
}
.idm-opinion-header {
    margin-bottom: 2rem;
    max-width: 820px;
}
.idm-opinion-kicker {
    font-size: .85rem;
    opacity: var(--idm-dim);
    margin: 0 0 8px;
    font-family: var(--idm-sans, sans-serif);
    font-weight: 700;
}
.idm-opinion-subheading {
    font-size: 1rem;
    font-weight: 700;
    opacity: var(--idm-dim);
    margin: 0 0 18px;
    font-family: var(--idm-sans, sans-serif);
}
.idm-opinion-intro {
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 700px;
}
.idm-opinion-guidelines {
    margin-bottom: 2.5rem;
    max-width: 700px;
}
.idm-opinion-guidelines ul {
    padding-left: 1.5rem;
    line-height: 1.8;
}
.idm-char-count {
    display: block;
    font-size: .85rem;
    opacity: var(--idm-dim);
    margin-top: 4px;
    font-family: var(--idm-sans, sans-serif);
}
.idm-opinion-consent {
    margin-top: 16px;
}

/* ================================================================
   MANAGE FORMS TABLE
   ================================================================ */
.idm-forms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    font-family: var(--idm-sans, sans-serif);
}
.idm-forms-table th,
.idm-forms-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--idm-line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}
.idm-forms-table th {
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--idm-fill);
    position: sticky;
    top: 0;
    z-index: 1;
}
.idm-forms-table tr:hover td {
    background: var(--idm-fill);
}

/* ================================================================
   CAROUSEL
   ================================================================ */
.idm-carousel {
    position: relative;
    margin: 0 0 56px;
    overflow: hidden;
    /* A photo backdrop stays dark in both modes: it is there to sit
       behind an image, not to carry text. */
    background: #14130f;
    /* Responsive aspect ratio: wider on desktop, squarer on mobile */
    aspect-ratio: 16/7;
}
@media (max-width: 700px) {
    /* Shorter than the old 4:3, so the banner does not fill the phone
       before a word of the page is visible. */
    .idm-carousel { aspect-ratio: 3/2; }
}
.idm-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}
.idm-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}
.idm-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.idm-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.idm-carousel__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.idm-carousel__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 28px 32px 24px;
    background: linear-gradient(to top, rgba(0,0,0,.62) 0%, transparent 100%);
    color: var(--idm-on-brand);
    font-family: var(--idm-serif, serif);
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-weight: 700;
}
@media (max-width: 700px) {
    .idm-carousel__caption { padding: 16px 16px 14px; font-size: clamp(1.25rem, 6vw, 1.8rem); line-height: 1.12; }
}
.idm-carousel__controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}
.idm-carousel__btn {
    background: rgba(255,255,255,.25);
    border: none;
    color: var(--idm-on-brand);
    font-size: 1.6rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background .15s;
    -webkit-appearance: none;
    appearance: none;
}
.idm-carousel__btn:hover { background: rgba(255,255,255,.5); }
.idm-carousel__dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.idm-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
    -webkit-appearance: none;
    appearance: none;
}
.idm-carousel__dot.is-active {
    background: var(--idm-bg);
    transform: scale(1.35);
}

/* ================================================================
   PROJECTS GRID — two columns on landing page
   ================================================================ */
.idm-projects-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 700px) {
    .idm-projects-grid--two {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ================================================================
   TOP STORIES — mobile: 2 shown, rest hidden, "Read more" button
   ================================================================ */
.idm-stories-more-wrap {
    margin-top: 16px;
    text-align: left;
}
@media (min-width: 701px) {
    /* On desktop all 4 always visible, toggle irrelevant */
    .idm-story-hidden { display: block !important; }
    .idm-stories-more-wrap { display: none !important; }
}

/* ================================================================
   MOBILE MENU — denser item spacing
   ================================================================ */
@media (max-width: 900px) {
    .idm-menu a {
        padding: 9px 16px !important;
        font-size: .92rem !important;
    }
    .idm-menu li + li {
        border-top: 1px solid var(--idm-line-soft);
    }
}

/* ================================================================
   GET STARTED TITLE — linked
   ================================================================ */
.idm-get-started__title-link {
    text-decoration: none;
    color: inherit;
}
.idm-get-started__title-link:hover .idm-section-title {
    text-decoration: underline;
}

/* ================================================================
   PARAGRAPH SPACING — ensure new paragraphs are visually separated
   in all reading contexts
   ================================================================ */
.idm-single-content p,
.entry-content p,
.post-content p,
.idm-page-editor-content p,
.idm-project-detail-content p {
    margin-top: 0;
    margin-bottom: 1.35em;
}
.idm-single-content p:last-child,
.entry-content p:last-child,
.post-content p:last-child,
.idm-page-editor-content p:last-child {
    margin-bottom: 0;
}
/* Ensure block-level elements in content also get spacing */
.idm-single-content > * + *,
.entry-content > * + *,
.post-content > * + * {
    margin-top: 1.35em;
}
.idm-single-content > *:first-child,
.entry-content > *:first-child,
.post-content > *:first-child {
    margin-top: 0;
}
/* Headings inside content */
.idm-single-content h2,
.idm-single-content h3,
.idm-single-content h4,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.8em;
    margin-bottom: .45em;
}
/* Lists */
.idm-single-content ul,
.idm-single-content ol,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.35em;
    padding-left: 1.6em;
}
.idm-single-content li,
.entry-content li {
    margin-bottom: .35em;
}

/* ================================================================
   CAROUSEL — updated: no arrows, dots only, no bottom gap
   ================================================================ */
.idm-carousel {
    margin-bottom: 0 !important;
}
/* Hide prev/next arrow buttons entirely */
.idm-carousel__btn--prev,
.idm-carousel__btn--next {
    display: none !important;
}
/* Controls bar: just the dots, minimal height */
.idm-carousel__controls {
    bottom: 10px;
}
/* Dots: smaller, line-style instead of circles */
.idm-carousel__dot {
    width: 24px;
    height: 3px;
    border-radius: 0;
    background: rgba(255,255,255,.4);
}
.idm-carousel__dot.is-active {
    background: var(--idm-bg);
    transform: none;
}

/* ================================================================
   CAROUSEL TITLE — serif, flush below carousel, no gap
   ================================================================ */
.idm-carousel-title {
    font-family: var(--idm-serif, serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-weight: 700;
    margin: 0 0 var(--idm-section-space, 72px);
    padding: 24px 0 0;
}
@media (max-width: 700px) {
    .idm-carousel-title {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
        padding-top: 18px;
    }
}

/* ================================================================
   TOP STORIES — "Read more" + "All articles" side by side
   ================================================================ */
.idm-stories-more-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.idm-stories-all-link {
    opacity: var(--idm-dim);
    font-weight: 500;
}
.idm-stories-all-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ================================================================
   CAROUSEL TITLE — no space to intro text below
   ================================================================ */
.idm-carousel-title {
    margin-bottom: 0 !important;
}
.idm-home-intro {
    margin-top: 20px !important;
}

/* ================================================================
   HOME EVENTS BUTTON — below intro text
   ================================================================ */
.idm-home-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}
.idm-home-events-btn {
    margin-top: 0 !important;
}

/* ================================================================
   TOP STORIES — "All articles" link, black, no toggle button
   ================================================================ */
.idm-stories-more-wrap {
    margin-top: 20px;
}
.idm-stories-all-link {
    color: var(--idm-ink) !important;
    opacity: 1 !important;
    font-weight: 700;
    font-family: var(--idm-sans, sans-serif);
    text-decoration: none;
    letter-spacing: .01em;
}
.idm-stories-all-link:hover {
    text-decoration: underline;
}

/* ================================================================
   ARTICLES PAGE — search bar
   ================================================================ */
.idm-articles-header {
    margin-bottom: 20px;
}
.idm-articles-search-form {
    margin-bottom: 18px;
}
.idm-articles-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.idm-articles-search-row input[type="search"] {
    flex: 1 1 240px;
    padding: 12px 16px;
    border: 1.5px solid var(--idm-ink);
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    background: var(--idm-bg);
    color: var(--idm-ink);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.idm-articles-search-row input[type="search"]:focus {
    outline: 2px solid var(--idm-ink);
    outline-offset: -2px;
}
.idm-articles-clear-search {
    font-size: .85rem;
    color: var(--idm-ink);
    text-decoration: none;
    opacity: var(--idm-dim);
    white-space: nowrap;
}
.idm-articles-clear-search:hover { opacity: 1; text-decoration: underline; }
.idm-articles-no-results {
    padding: 24px 0;
    font-family: var(--idm-sans, sans-serif);
}
.idm-articles-no-results a {
    color: var(--idm-ink);
    font-weight: 700;
    margin-left: 8px;
}

/* ================================================================
   ARTICLES PAGE — one category filter
   A row of chips became four lines of buttons on a phone and pushed
   the articles off the screen. One control, one line.
   ================================================================ */
.idm-articles-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    align-items: center;
}
.idm-articles-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
}
.idm-articles-filter__label {
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    flex: 0 0 auto;
}
.idm-articles-filter__select {
    flex: 0 1 320px;
    min-width: 0;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid var(--idm-ink);
    background-color: var(--idm-bg);
    color: var(--idm-ink);
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    -webkit-appearance: none;
    appearance: none;
    /* The arrow is drawn rather than loaded, and follows the ink colour. */
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: right 17px center, right 12px center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: border-color var(--idm-in, 190ms) var(--idm-ease-out, ease);
}
.idm-articles-filter__select:hover { border-color: var(--idm-accent); }
.idm-articles-filter__select:focus-visible { outline: 2px solid var(--idm-ink); outline-offset: 2px; }
.idm-articles-filter__go {
    padding: 10px 16px;
    border: 1.5px solid var(--idm-ink);
    background: var(--idm-bg);
    color: var(--idm-ink);
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
}
.idm-articles-filter__go:hover { background: var(--idm-ink); color: var(--idm-bg); }
/* With JavaScript the select submits itself, so the button is spare. */
.idm-has-js .idm-articles-filter__go { display: none; }
@media (max-width: 600px) {
    .idm-articles-page .idm-articles-header { margin-bottom: 14px; }
    .idm-articles-page .idm-articles-filter { margin-bottom: 12px; gap: 8px; }
    .idm-articles-page .idm-articles-filter__label { font-size: .78rem; }
    .idm-articles-page .idm-articles-filter__select { flex: 1 1 auto; }
    /* The articles themselves start right under the filter: the section
       spacing is meant for gaps between sections, not for this one. */
    .idm-articles-page .idm-articles-top-stories { margin-top: 0; padding-top: 0; }
    .idm-articles-page .idm-articles-top-stories > .idm-post-grid { margin-top: 0; }
}
/* ================================================================
   MEMBERSHIP FORM — prevent overflow/spill
   ================================================================ */
.idm-membership-page {
    overflow-x: hidden;
}
.idm-membership-content,
.idm-membership-content .idm-membership-form {
    max-width: 760px;
    width: 100%;
    box-sizing: border-box;
}
.idm-membership-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.idm-membership-form textarea,
.idm-membership-form select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
.idm-membership-form .idm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
@media (max-width: 600px) {
    .idm-membership-form .idm-form-grid {
        grid-template-columns: 1fr;
    }
    .idm-membership-content,
    .idm-membership-content .idm-membership-form {
        max-width: 100%;
        padding: 0;
    }
}

/* ================================================================
   ARTICLES PAGE — mobile shows the first four, "Show more" reveals
   the rest. Everything is visible from 701px up.
   ================================================================ */
@media (max-width: 700px) {
    .idm-article-hidden { display: none; }
}
@media (min-width: 701px) {
    .idm-articles-mobile-more { display: none !important; }
}
.idm-articles-mobile-more {
    margin-top: 16px;
}

/* ================================================================
   STICKY MOBILE HEADER
   ================================================================ */
@media (max-width: 900px) {
    .site-header-dynamic {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--idm-bg);
    }
}

/* ================================================================
   STICKY HEADER — all devices
   ================================================================ */
.site-header-dynamic {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--idm-bg);
}
/* Remove the old mobile-only rule */
@media (max-width: 900px) {
    .site-header-dynamic {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--idm-bg);
    }
}

/* ================================================================
   HEADER SOCIAL ICONS
   ================================================================ */
.header-social-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    /* no margin-right:auto — utility-row uses justify-content:flex-end, social wrap comes first */
}
.header-social-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--idm-ink);
    text-decoration: none;
    border: 1.5px solid var(--idm-ink);
    padding: 5px 8px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.header-social-icon:hover {
    background: var(--idm-ink);
    color: var(--idm-bg);
}
.header-social-icon svg {
    flex-shrink: 0;
}
/* Hide label text in desktop utility row */
.utility-row .header-social-icon span {
    display: none;
}

/* ================================================================
   MOBILE MENU — v15 clean style
   ================================================================ */
/* Social icons visible in utility row on desktop, hidden on mobile
   (utility-row itself is already hidden at ≤900px) */

/* ================================================================
   PROJECTS — title left + cards right (like membership)
   ================================================================ */
.idm-projects-membership-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}
.idm-projects-membership-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .idm-projects-membership-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .idm-projects-membership-right {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
@media (max-width: 600px) {
    .idm-projects-membership-right {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   NEWSLETTER — inputs + button unified row, matching border style
   ================================================================ */

/* Outer wrapper: inputs + button in one flex row */
.idm-newsletter-form-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    overflow: hidden; /* prevent any child from spilling */
}

/* The three text inputs grouped */
/* Newsletter form: inputs + button in one flex row */
.idm-newsletter-form-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    max-width: 900px;
    flex-wrap: nowrap;
}
.idm-newsletter-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}
/* Name input */
.idm-newsletter-row input[name="idm_newsletter_sub_name"] {
    flex: 2 1 140px;
    min-width: 0;
}
/* Email input */
.idm-newsletter-row input[name="idm_newsletter_sub_email"] {
    flex: 2 1 160px;
    min-width: 0;
}
/* Position (third) input — widest on desktop */
.idm-newsletter-row input[name="idm_newsletter_sub_position"] {
    flex: 3 1 180px;
    min-width: 0;
}
/* Shared input style */
.idm-newsletter-row input {
    box-sizing: border-box;
    padding: 13px 12px;
    border: 1px solid var(--idm-ink);
    font-family: var(--idm-sans, sans-serif);
    font-size: .88rem;
    font-weight: 500;
    color: var(--idm-ink);
    background: var(--idm-bg);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    line-height: 1.4;
    height: auto;
}
.idm-newsletter-row input:focus {
    outline: 2px solid var(--idm-ink);
    outline-offset: -2px;
    position: relative;
    z-index: 1;
}
/* Subscribe button: beside the inputs */
.idm-newsletter-form-row .idm-signup-button {
    flex: 0 0 auto;
    margin-top: 0 !important;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 13px 20px;
}

/* ── Mobile ── */
@media (max-width: 700px) {
    .idm-newsletter-form-row {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 8px;
        max-width: 100%;
    }
    .idm-newsletter-row {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        flex: none;
    }
    .idm-newsletter-row input[name="idm_newsletter_sub_name"],
    .idm-newsletter-row input[name="idm_newsletter_sub_email"],
    .idm-newsletter-row input[name="idm_newsletter_sub_position"] {
        flex: none;
        width: 100%;
        min-width: 0;
    }
    .idm-newsletter-form-row .idm-signup-button {
        width: 100% !important;
        justify-content: center;
        display: flex !important;
        align-self: auto;
        padding: 14px 20px;
        margin-top: 0 !important;
        box-sizing: border-box;
    }
}

/* ================================================================
   FOOTER INSTITUTION ROW
   ================================================================ */
.footer-institution-row {
    padding: 12px 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    justify-content: flex-start; /* left-aligned with site name */
    width: 100%;
}
@media (max-width: 700px) {
    .footer-institution-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
        justify-content: flex-start !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .footer-institution-link {
        text-align: left;
        margin-left: 0;
    }
}
.footer-institution-link {
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    color: var(--idm-ink);
    text-decoration: none;
    opacity: var(--idm-dim);
    letter-spacing: .02em;
}
.footer-institution-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ================================================================
   MANAGE FORMS — per-event sections, table actions
   ================================================================ */
.idm-manage-event-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
}
.idm-manage-event-title {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.idm-manage-count {
    font-weight: 400;
    opacity: var(--idm-dim);
    font-size: .9em;
}
.idm-forms-table-wrap {
    overflow: hidden;
}
.idm-forms-table-actions {
    margin-bottom: 10px;
}

/* ================================================================
   FOOTER — right column with copyright + social icons
   ================================================================ */
.footer-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.footer-social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-social-icon {
    display: flex;
    align-items: center;
    color: var(--idm-ink);
    text-decoration: none;
    border: 1px solid var(--idm-ink);
    padding: 6px 8px;
    transition: background .15s, color .15s;
}
.footer-social-icon:hover {
    background: var(--idm-ink);
    color: var(--idm-bg);
}
@media (max-width: 700px) {
    .footer-right-col {
        align-items: flex-start;
    }
}

/* ================================================================
   EDIT HUB — categorised sections
   ================================================================ */
.idm-edit-hub-sections {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 32px;
}
.idm-edit-hub-section .idm-section-title {
    font-size: 1rem;
    margin-bottom: 12px;
    opacity: var(--idm-dim);
    font-family: var(--idm-sans, sans-serif);
    font-weight: 700;
}
.idm-edit-hub-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.idm-edit-hub-buttons .idm-signup-button {
    margin-top: 0;
}

/* ================================================================
   NEWSLETTER — unified border thickness across all fields
   ================================================================ */
.idm-newsletter-form .idm-newsletter-row input,
.idm-newsletter-form .idm-newsletter-row input[type="text"],
.idm-newsletter-form .idm-newsletter-row input[type="email"] {
    border: 1px solid var(--idm-ink) !important;
    border-radius: 0 !important;
}
/* Subscribe button border already 1px solid #111 — matches */

/* ================================================================
   FOOTER INSTITUTION ROW — left-aligned with site name, all sizes
   ================================================================ */

/* ================================================================
   ABOUT PAGE — second intro paragraph block
   ================================================================ */
.idm-about-intro-2 {
    margin-top: 1.5rem;
}
.idm-about-intro-2 p {
    margin-bottom: 1.2em;
    line-height: 1.75;
}
.idm-about-intro-2 p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   AUTHOR PROFILE — spacing between bio and events section
   ================================================================ */
.idm-author-events {
    margin-top: 2.5rem;
}

/* ================================================================
   YOUTUBE SOCIAL ICON — black like other socials
   ================================================================ */
.header-social-icon.idm-social-youtube,
.footer-social-icon.idm-social-youtube {
    color: var(--idm-ink);
    border-color: var(--idm-ink);
}
.header-social-icon.idm-social-youtube svg path,
.footer-social-icon.idm-social-youtube svg path {
    fill: currentColor !important;
    stroke: none;
}
.header-social-icon.idm-social-youtube:hover,
.footer-social-icon.idm-social-youtube:hover {
    background: var(--idm-ink);
    color: var(--idm-bg);
}

/* ================================================================
   FOOTER SOCIALS ROW — earlier layout
   ================================================================ */
.footer-socials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0 12px;
}
@media (max-width: 700px) {
    .footer-socials-row {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ================================================================
   YOUTUBE EMBED — responsive 16:9
   ================================================================ */
.idm-youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 2rem 0;
    background: var(--idm-ink);
}
.idm-youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================================================================
   THINK TANK FEATURES
   ================================================================ */

/* ── Policy briefs ── */
.idm-publications-intro { opacity: var(--idm-dim); max-width:640px; }
.idm-briefs-grid {
    display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:32px; margin-top:32px;
}
.idm-brief-card { display:flex; flex-direction:column; }
.idm-brief-card__image img { width:100%; aspect-ratio:16/10; object-fit:cover; display:block; }
.idm-brief-card__topic {
    font-size:0.8rem;
    opacity: var(--idm-dim); margin:12px 0 4px; font-family:var(--idm-sans);
}
.idm-brief-card h2 { font-size:1.25rem; margin:4px 0 6px; letter-spacing:-.02em; }
.idm-brief-card h2 a { text-decoration:none; color:inherit; }
.idm-brief-card h2 a:hover { text-decoration:underline; }
.idm-brief-card__meta { font-size:.82rem; opacity: var(--idm-dim); font-family:var(--idm-sans); margin:0 0 8px; }
.idm-brief-card__excerpt { font-size:.92rem; line-height:1.6; }

/* ── Annual report stats ── */
.idm-report-stats {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:24px; margin:32px 0;
}
.idm-report-stat {
    text-align:center; padding:28px 16px; border:1px solid var(--idm-line);
}
.idm-report-stat__num {
    display:block; font-family:var(--idm-serif,serif); font-size:2.6rem;
    font-weight:700; letter-spacing: -0.02em; line-height:1;
}
.idm-report-stat__label {
    display:block; margin-top:8px; font-size:0.8rem; opacity: var(--idm-dim); font-family:var(--idm-sans);
}
.idm-report-ambassadors { max-width:680px; line-height:1.7; }

/* ── Reading time ── */
.idm-reading-time {
    font-size:.82rem; font-family:var(--idm-sans); opacity: var(--idm-dim); margin:8px 0 20px;
}

/* ── Open positions ── */
.idm-positions-list { display:flex; flex-direction:column; gap:20px; margin-top:24px; }
.idm-position-card { border:1px solid var(--idm-line); padding:24px; }
.idm-position-card h3 { margin:0 0 8px; font-size:1.15rem; }
.idm-position-card p { margin:0; line-height:1.6; }

/* ── Video archive ── */
.idm-video-archive {
    display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:36px; margin-top:24px;
}
.idm-video-card h3 { font-size:1.1rem; margin:12px 0 4px; }
.idm-video-card h3 a { text-decoration:none; color:inherit; }
.idm-video-card h3 a:hover { text-decoration:underline; }
.idm-video-card .idm-youtube-embed { margin:0; }
.idm-video-date { font-size:.82rem; opacity: var(--idm-dim); font-family:var(--idm-sans); margin:0; }
/* ── Dark mode toggle button ──
   This is not a dark-mode override, despite the name: it is the button
   itself, and it is wanted in both modes. */
.idm-darkmode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1.5px solid var(--idm-ink);
    background: transparent;
    color: var(--idm-ink);
    padding: 5px 8px;
    cursor: pointer;
    transition: background var(--idm-in, 150ms) var(--idm-ease-out, ease),
                color var(--idm-in, 150ms) var(--idm-ease-out, ease);
}
.idm-darkmode-toggle:hover { background: var(--idm-ink); color: var(--idm-bg); }
@media (max-width:900px){ .idm-darkmode-toggle:not(.idm-mobile-darkmode) { display:none; } }
html.idm-dark img { opacity: var(--idm-dim); }

/* ================================================================
   POLICY BRIEF — single academic page
   ================================================================ */
.idm-brief-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 0 80px;
}
.idm-brief-header { margin-bottom: 0; }
.idm-brief-meta-topic {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    opacity: var(--idm-dim);
    margin: 0 0 16px;
}
.idm-brief-title {
    font-family: var(--idm-serif, serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 20px;
    font-weight: 700;
}
.idm-brief-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-family: var(--idm-sans, sans-serif);
    font-size: .88rem;
    color: var(--idm-ink-soft);
    margin-bottom: 14px;
}
.idm-brief-byline__author { font-weight: 600; color: var(--idm-ink); }
.idm-brief-doi {
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    opacity: var(--idm-dim);
    margin: 0 0 20px;
}
.idm-brief-doi a { color: inherit; text-decoration: underline; }
.idm-brief-download-wrap { margin: 20px 0 0; }
.idm-brief-download-btn {
    display: inline-flex !important;
    align-items: center;
}
.idm-brief-rule {
    border: none;
    border-top: 2px solid var(--idm-ink);
    margin: 32px 0;
}
.idm-brief-abstract h2 {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.idm-brief-abstract p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--idm-ink-soft);
    border-left: 3px solid var(--idm-ink);
    padding-left: 20px;
    margin: 0 0 32px;
}
.idm-brief-body { margin-top: 32px; }
.idm-brief-footer {
    margin-top: 48px;
    padding-top: 24px;
}

/* ================================================================
   MOBILE NAV FOOTER — socials + dark mode at bottom of dropdown
   ================================================================ */
.idm-mobile-nav-footer {
    display: none; /* hidden on desktop */
}
@media (max-width: 900px) {
    .idm-mobile-nav-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px 18px;
        border-top: 1px solid var(--idm-line);
        gap: 12px;
        /* Prevent any overflow */
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    .idm-mobile-nav-socials {
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
        align-items: center;
    }
    .idm-mobile-darkmode {
        display: inline-flex !important; /* show inside mobile menu */
        flex-shrink: 0;
    }
}
/* Sync dark mode moon/sun icons in mobile duplicate */
html.idm-dark .idm-mobile-darkmode .idm-dm-sun  { display: none !important; }
html.idm-dark .idm-mobile-darkmode .idm-dm-moon { display: block !important; }
.idm-mobile-darkmode .idm-dm-moon { display: none; }
.idm-mobile-darkmode .idm-dm-sun  { display: block; }

/* ================================================================
   BRIEF SINGLE — open access, reads, citation modal, A4 cover
   ================================================================ */
.idm-brief-meta-row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 16px; margin: 14px 0 20px;
}
.idm-brief-reads {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--idm-sans); font-size: .82rem; opacity: var(--idm-dim);
}
.idm-brief-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; }
.idm-brief-actions .idm-signup-button { margin-top: 0 !important; }
/* A4 cover image: 1:√2 ratio */
.idm-brief-cover {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1.414;
    overflow: hidden;
    margin: 24px 0;
    border: 1px solid var(--idm-line);
}
.idm-brief-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Citation modal */
.idm-cite-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    display: none; align-items: center; justify-content: center;
    z-index: 99999; padding: 20px;
}
.idm-cite-modal__box {
    background: var(--idm-bg); max-width: 600px; width: 100%;
    padding: 32px; position: relative;
}
.idm-cite-modal__box h2 { margin: 0 0 16px; font-size: 1.2rem; font-family: var(--idm-sans); }
.idm-cite-modal__close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 1.4rem; cursor: pointer; line-height: 1; color: var(--idm-ink);
}
.idm-cite-apa {
    font-family: var(--idm-sans); font-size: .92rem; line-height: 1.7;
    background: var(--idm-fill); padding: 16px; border-left: 3px solid var(--idm-ink);
}

/* ================================================================
   PUBLICATIONS ARCHIVE — A4 card cover, filters, search
   ================================================================ */
.idm-publications-filters { margin-bottom: 28px; }
.idm-publications-search-row {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px;
}
.idm-publications-search-input {
    flex: 1 1 200px; padding: 12px 14px;
    border: 1.5px solid var(--idm-ink); font-family: var(--idm-sans);
    font-size: .9rem; background: var(--idm-bg); color: var(--idm-ink);
    outline: none; -webkit-appearance: none; border-radius: 0;
}
.idm-publications-search-input:focus { outline: 2px solid var(--idm-ink); outline-offset: -2px; }
.idm-publications-select {
    padding: 12px 14px; border: 1.5px solid var(--idm-ink); font-family: var(--idm-sans);
    font-size: .9rem; background: var(--idm-bg); color: var(--idm-ink);
    outline: none; cursor: pointer; border-radius: 0;
}
.idm-publications-clear { font-size: .85rem; opacity: var(--idm-dim); align-self: center; color: var(--idm-ink); text-decoration: none; }
.idm-publications-clear:hover { opacity: 1; text-decoration: underline; }
.idm-publications-no-results { padding: 24px 0; }
/* A4 card cover in grid */
.idm-brief-card__cover-link { display: block; }
.idm-brief-card__cover {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    overflow: hidden;
    background: var(--idm-fill);
}
.idm-brief-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.idm-brief-card:hover .idm-brief-card__cover img { transform: scale(1.03); }
.idm-brief-card__cover--placeholder { background: linear-gradient(135deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.12) 100%); }

/* ================================================================
   ARTICLES — quadratic image ratio everywhere
   ================================================================ */
.idm-post-card .wp-block-post-featured-image,
.idm-post-card figure.wp-block-post-featured-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
}
.idm-post-card .wp-block-post-featured-image img,
.idm-post-card figure.wp-block-post-featured-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ================================================================
   BRIEF SINGLE — overrides: all text black, mobile layout fix
   ================================================================ */
.idm-brief-article,
.idm-brief-article h1,
.idm-brief-article h2,
.idm-brief-article h3,
.idm-brief-article p,
.idm-brief-article span,
.idm-brief-article a,
.idm-brief-byline,
.idm-brief-byline__author,
.idm-brief-byline__org,
.idm-brief-byline__date,
.idm-brief-byline__region,
.idm-brief-reads,
.idm-brief-meta-topic,
.idm-brief-abstract p {
    color: var(--idm-ink) !important;
    opacity: 1 !important;
}
/* Fix: ensure article uses full width, not mobile-squeezed */
.idm-brief-single { width: 100%; max-width: 100%; }
.idm-brief-article { max-width: 780px; margin: 40px auto; padding: 0 0 80px; width: 100%; }
@media (max-width: 700px) { .idm-brief-article { margin: 20px 0; } }

/* PDF viewer */
.idm-brief-pdf-viewer { margin-top: 36px; }
.idm-brief-pdf-viewer h2 { font-family: var(--idm-sans); font-size: 0.8rem; font-weight: 700; margin: 0 0 12px; color: var(--idm-ink); }
.idm-brief-pdf-embed { width: 100%; }
.idm-brief-pdf-embed iframe { width: 100%; height: 800px; border: 1px solid var(--idm-line); display: block; }
@media (max-width: 700px) { .idm-brief-pdf-embed iframe { height: 500px; } }
.idm-brief-pdf-fallback { font-size: .85rem; margin-top: 8px; }
.idm-brief-pdf-fallback a { color: var(--idm-ink); text-decoration: underline; }

/* ================================================================
   BOARD MEMBER DESCRIPTION — 3-line clamp
   ================================================================ */
.idm-author-card p:not(.idm-author-card__role),
.idm-author-card__content > p:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   CONTACT PAGE — Google Maps embed
   ================================================================ */
.idm-contact-map { margin-top: 48px; }
.idm-map-embed { width: 100%; overflow: hidden; }
.idm-map-embed iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ================================================================
   ARTICLES PAGE — publications section
   ================================================================ */
.idm-articles-publications { margin-top: 64px; padding-top: 48px; }

/* ================================================================
   BRIEF SINGLE — image next to abstract, dark mode, smaller image
   ================================================================ */
.idm-brief-intro-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
}
@media (max-width: 700px) {
    .idm-brief-intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* Smaller A4 cover beside abstract */
.idm-brief-cover-small {
    width: 200px;
    aspect-ratio: 1 / 1.414;
    overflow: hidden;
    border: 1px solid var(--idm-line);
    flex-shrink: 0;
}
.idm-brief-cover-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 700px) {
    .idm-brief-cover-small {
        width: 100%;
        max-width: 260px;
    }
}

/* Contact map */
.idm-contact-map-desc {
    font-family: var(--idm-sans);
    font-size: .95rem;
    line-height: 1.65;
    max-width: 600px;
    margin-bottom: 12px;
}
.idm-contact-map-address {
    font-family: var(--idm-sans);
    font-size: .88rem;
    opacity: var(--idm-dim);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ================================================================
   PAST FEATURED SPEAKERS
   ================================================================ */
.idm-speakers-section {
    padding: var(--idm-section-space, 72px) 0;
    text-align: center;
}
.idm-speakers-header { margin-bottom: 48px; }
.idm-speakers-title {
    font-family: var(--idm-serif, serif);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 12px;
}
.idm-speakers-subheading {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1rem;
    opacity: var(--idm-dim);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}
.idm-speakers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 28px;
    max-width: 960px;
    margin: 0 auto;
}
.idm-speaker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 148px;
}
.idm-speaker-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--idm-line);
    margin-bottom: 14px;
    background: var(--idm-fill-strong);
    flex-shrink: 0;
}
.idm-speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.idm-speaker-photo__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.16));
}
.idm-speaker-name {
    font-family: var(--idm-sans, sans-serif);
    font-weight: 700;
    font-size: .9rem;
    margin: 0 0 5px;
    line-height: 1.3;
    color: var(--idm-ink);
}
.idm-speaker-title {
    font-family: var(--idm-sans, sans-serif);
    font-size: .78rem;
    line-height: 1.4;
    opacity: var(--idm-dim);
    margin: 0;
    color: var(--idm-ink);
}
@media (max-width: 600px) {
    .idm-speaker-card { width: 120px; }
    .idm-speaker-photo { width: 88px; height: 88px; }
    .idm-speakers-grid { gap: 28px 16px; }
}

/* ================================================================
   SPEAKERS — mobile horizontal scroll, 3 visible
   ================================================================ */
@media (max-width: 700px) {
    .idm-speakers-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin: 0 calc(-1 * var(--idm-shell-padding, 16px));
        padding-left:  var(--idm-shell-padding, 16px);
        padding-right: var(--idm-shell-padding, 16px);
    }
    .idm-speaker-card {
        flex: 0 0 auto;
        width: calc((100% - 40px) / 3); /* 3 visible, accounting for 2 gaps */
        min-width: 96px;
        scroll-snap-align: start;
    }
    .idm-speaker-photo {
        width: 72px;
        height: 72px;
    }
    .idm-speaker-name { font-size: .78rem; }
    .idm-speaker-title { font-size: .68rem; }
}

/* ================================================================
   REDUCE SPACE — speakers to newsletter
   ================================================================ */
.idm-speakers-section {
    padding-bottom: 32px !important;
}

/* ================================================================
   FRONT PAGE — recent publications section
   ================================================================ */
.idm-home-publications { margin-top: var(--idm-section-space, 56px); margin-bottom: var(--idm-section-space, 56px); padding-bottom: 24px; }
.idm-top-stories { margin-top: var(--idm-section-space, 56px); }

/* YouTube embed matches the text content column exactly */
.idm-single-content .idm-youtube-embed {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* ================================================================
   BRIEF HERO — GI-TOC style (dark purple)
   ================================================================ */
.idm-brief-hero {
    background: var(--idm-burgundy);
    color: var(--idm-on-brand);
    padding: 64px 0 72px;
    margin-bottom: 0;
}
.idm-brief-hero__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.idm-brief-breadcrumb {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    margin: 0 0 24px;
}
.idm-brief-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.idm-brief-breadcrumb a:hover { text-decoration: underline; }
.idm-brief-breadcrumb span { color: rgba(255,255,255,.85); }
.idm-brief-hero__title {
    font-family: var(--idm-serif, serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--idm-on-brand);
    margin: 0 0 24px;
}
.idm-brief-hero__subtitle {
    font-family: var(--idm-serif, serif);
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--idm-sand);
    margin: 0;
}
.idm-brief-hero__cover {
    display: flex;
    flex-direction: column;
}
.idm-brief-hero__cover img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.idm-brief-hero__lang {
    margin: 16px 0 0;
    font-family: var(--idm-sans, sans-serif);
    font-weight: 700;
    font-size: .95rem;
}
.idm-brief-hero__lang a { color: var(--idm-on-brand); text-decoration: none; }
.idm-brief-hero__lang a:hover { text-decoration: underline; }
@media (max-width: 800px) {
    .idm-brief-hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .idm-brief-hero { padding: 40px 0 48px; }
    .idm-brief-hero__cover { order: -1; }
    .idm-brief-hero__cover img { max-width: 200px; }
}
/* Body article no longer needs its own top rule */
.idm-brief-single .idm-brief-article { padding-top: 40px; }

/* ================================================================
   RELATED ANALYSIS — GI-TOC card grid (taupe banners)
   ================================================================ */
.idm-related-analysis {
    padding: 64px 0;
    margin-top: 40px;
}
.idm-related-analysis__title {
    font-family: var(--idm-sans, sans-serif);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: .02em;
    color: var(--idm-accent);
    margin: 0 0 40px;
}
.idm-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
@media (max-width: 980px) { .idm-related-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (max-width: 560px) { .idm-related-grid { grid-template-columns: 1fr; } }

.idm-related-card { display: flex; flex-direction: column; }
.idm-related-card__banner {
    position: relative;
    display: block;
    background: var(--idm-sand);
    aspect-ratio: 3 / 2;
    padding: 22px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 16px;
}
.idm-related-card__date {
    position: relative;
    z-index: 2;
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    font-weight: 600;
    color: var(--idm-on-brand);
    letter-spacing: .03em;
    display: block;
}
.idm-related-card__banner-title {
    position: absolute;
    z-index: 2;
    left: 22px;
    bottom: 22px;
    width: 55%;
    font-family: var(--idm-sans, sans-serif);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.15;
    color: var(--idm-on-brand);
    letter-spacing: .01em;
}
.idm-related-card__thumb {
    position: absolute;
    z-index: 1;
    right: 14px;
    bottom: 0;
    top: 28px;
    width: 42%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}
.idm-related-card__thumb img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom right;
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.idm-related-card__org {
    font-family: var(--idm-sans, sans-serif);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--idm-sand);
    margin: 0 0 8px;
}
.idm-related-card__title {
    font-family: var(--idm-serif, serif);
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0;
}
.idm-related-card__title a { color: var(--idm-accent); text-decoration: none; }
.idm-related-card__title a:hover { text-decoration: underline; }

/* Publications archive uses same grid */
.idm-publications-grid { margin-top: 32px; }

/* ================================================================
   MEMBERSHIP — areas of interest chips
   ================================================================ */
.idm-areas-wrap {
    border: 1px solid var(--idm-line);
    padding: 20px;
    margin: 4px 0 20px;
}
.idm-areas-wrap[hidden] { display: none !important; }
.idm-areas-legend {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    margin: 0 0 14px;
}
.idm-areas-legend span { opacity: var(--idm-dim); font-weight: 400; }
.idm-areas-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .idm-areas-options { grid-template-columns: 1fr; } }
.idm-area-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1.5px solid var(--idm-line);
    cursor: pointer;
    font-family: var(--idm-sans, sans-serif);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.25;
    background: var(--idm-bg);
    transition: border-color .12s, background .12s, opacity .12s;
    user-select: none;
}
.idm-area-chip:hover { border-color: var(--idm-ink); }
/* A real checkbox, drawn by the browser. The tick used to be a styled span
   with the input hidden behind it, which meant the mark depended on CSS and
   script both behaving; this cannot fail to show. */
.idm-area-chip input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--idm-ink);
    cursor: pointer;
}
.idm-area-chip input[type="checkbox"]:disabled { cursor: not-allowed; }
.idm-area-chip.is-selected { border-color: var(--idm-ink); background: var(--idm-fill); }
.idm-area-chip.is-disabled { opacity: var(--idm-disabled); cursor: not-allowed; }
.idm-area-chip.is-disabled:hover { border-color: var(--idm-line); }

/* Fallback: the tick shows from the checkbox state alone, so a chip still
   reads as chosen even if the script never runs. */
.idm-area-chip:has(input[type="checkbox"]:checked) { border-color: var(--idm-ink); background: var(--idm-fill); }
.idm-area-chip:has(input[type="checkbox"]:disabled) { opacity: var(--idm-disabled); cursor: not-allowed; }
.idm-areas-hint {
    margin: 12px 0 0;
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    opacity: var(--idm-dim);
}
.idm-areas-hint[hidden] { display: none !important; }

/* ================================================================
   EDIT HUB
   ================================================================ */
.idm-hub { padding: 8px 0 72px; }
.idm-hub__head { margin-bottom: 32px; }
.idm-hub__title {
    font-family: var(--idm-serif, serif);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 10px;
}
.idm-hub__lead {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1rem;
    opacity: var(--idm-dim);
    margin: 0;
}
.idm-hub__login { max-width: 420px; }

/* ---- What needs doing, above everything else ---- */
.idm-hub__todo { margin: 0 0 40px; }
.idm-hub__todo-title {
    font-family: var(--idm-sans, sans-serif);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0 0 12px;
}
.idm-hub__todo-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--idm-line); }
.idm-hub__todo-item + .idm-hub__todo-item { border-top: 1px solid var(--idm-line); }
.idm-hub__todo-item > a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: background var(--idm-in, 190ms) var(--idm-ease-out, ease);
}
.idm-hub__todo-item > a:hover,
.idm-hub__todo-item > a:focus-visible { background: var(--idm-fill, #f6f4f1); }
.idm-hub__todo-what {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1rem;
    font-weight: 600;
}
.idm-hub__todo-detail {
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    opacity: var(--idm-dim);
    flex: 1;
}
/* The card's arrow is absolutely placed against the card; in a row it
   just sits at the end, so it has to be put back in the flow. */
.idm-hub__todo-item .idm-hub-card__arrow {
    position: static;
    margin-left: auto;
    transition: transform var(--idm-in, 190ms) var(--idm-ease-out, ease);
}
.idm-hub__todo-item > a:hover .idm-hub-card__arrow { transform: translateX(3px); }
@media (max-width: 560px) {
    .idm-hub__todo-item > a { flex-wrap: wrap; gap: 4px 12px; }
    .idm-hub__todo-detail { flex: 1 0 100%; }
}

/* Stats */
.idm-hub__stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--idm-fill-strong);
    border: 1px solid var(--idm-line);
    margin-bottom: 48px;
}
@media (max-width: 980px) { .idm-hub__stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .idm-hub__stats { grid-template-columns: repeat(2, 1fr); } }
.idm-hub__stat {
    background: var(--idm-bg, var(--idm-bg));
    padding: 18px 16px;
    text-align: center;
    display: block;
}
.idm-hub__stat--link {
    text-decoration: none;
    color: inherit;
    transition: background var(--idm-in, 190ms) var(--idm-ease-out, ease);
}
.idm-hub__stat--link:hover { background: var(--idm-fill, #f6f4f1); }
/* A figure that means somebody is waiting should not look like the rest. */
.idm-hub__stat--alert .idm-hub__stat-n { color: var(--idm-burgundy, var(--idm-burgundy)); }
.idm-hub__stat--alert .idm-hub__stat-l { opacity: 1; font-weight: 600; }
.idm-hub__stat-n {
    display: block;
    font-family: var(--idm-serif, serif);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}
.idm-hub__stat-l {
    display: block;
    margin-top: 6px;
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    opacity: var(--idm-dim);
}

/* Groups */
.idm-hub__group { margin-bottom: 44px; }
.idm-hub__group-head { margin-bottom: 16px; }
.idm-hub__group-title {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.idm-hub__group-desc {
    font-family: var(--idm-sans, sans-serif);
    font-size: .88rem;
    opacity: var(--idm-dim);
    margin: 0;
}
.idm-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

/* Cards */
.idm-hub-card {
    position: relative;
    display: block;
    padding: 20px 44px 20px 20px;
    border: 1.5px solid var(--idm-line);
    text-decoration: none;
    color: var(--idm-ink);
    background: var(--idm-bg);
    transition: border-color .12s, transform .12s;
}
.idm-hub-card:hover { border-color: var(--idm-ink); transform: translateY(-2px); }
.idm-hub-card--primary { border-color: var(--idm-ink); }
.idm-hub-card--muted { opacity: var(--idm-dim); }
.idm-hub-card--muted:hover { opacity: 1; }
.idm-hub-card__label {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 5px;
}
.idm-hub-card__desc {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-size: .84rem;
    line-height: 1.45;
    opacity: var(--idm-dim);
}
.idm-hub-card__arrow {
    position: absolute;
    right: 18px;
    top: 20px;
    font-size: 1.05rem;
    opacity: var(--idm-dim-most);
    transition: opacity .12s, transform .12s;
}
.idm-hub-card:hover .idm-hub-card__arrow { opacity: 1; transform: translateX(3px); }

/* Shortcut links */
.idm-hub__links { display: flex; flex-wrap: wrap; gap: 10px; }
.idm-hub__link {
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    font-weight: 600;
    padding: 9px 15px;
    border: 1px solid var(--idm-line);
    color: var(--idm-ink);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.idm-hub__link:hover { background: var(--idm-ink); color: var(--idm-bg); }

/* ================================================================
   BRAND TOKENS
   ================================================================ */
:root {
    --idm-burgundy: #781717;
    --idm-burgundy-dark: #5c1010;
    --idm-burgundy-light: #8d2020;
    --idm-sand: #a89e86;
}

/* ================================================================
   PUBLICATION HERO — journal style
   ================================================================ */
.idm-pub-hero {
    background: var(--idm-burgundy);
    color: var(--idm-on-brand);
    padding: 56px 0 64px;
}
.idm-pub-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
}
@media (max-width: 900px) {
    .idm-pub-hero { padding: 36px 0 44px; }
    .idm-pub-hero__inner { grid-template-columns: 1fr; gap: 32px; }
}
.idm-pub-crumbs {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 22px;
    color: var(--idm-on-brand);
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.idm-pub-crumbs a { color: var(--idm-on-brand); text-decoration: underline; text-underline-offset: 3px; }
.idm-pub-crumbs a:hover { text-decoration-thickness: 2px; }
.idm-pub-crumbs__sep { opacity: var(--idm-dim); }
.idm-pub-hero__title {
    font-family: var(--idm-serif, serif);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--idm-on-brand);
    margin: 0 0 14px;
    max-width: 22ch;
}
.idm-pub-hero__subtitle {
    font-family: var(--idm-sans, sans-serif);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.4;
    color: rgba(255,255,255,.85);
    margin: 0 0 20px;
    max-width: 46ch;
}
.idm-pub-hero__status,
.idm-pub-hero__vol,
.idm-pub-hero__access {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1rem;
    color: var(--idm-on-brand);
    margin: 0 0 10px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.idm-pub-hero__oa { text-decoration: underline; text-underline-offset: 3px; }
.idm-pub-hero__pipe { opacity: var(--idm-dim); }
.idm-pub-hero__cite {
    background: none; border: 0; padding: 0;
    color: var(--idm-on-brand); font: inherit; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.idm-pub-hero__cite:hover { text-decoration-thickness: 2px; }
.idm-pub-hero__access { margin-top: 26px; font-size: .97rem; }
.idm-pub-hero__access svg { flex-shrink: 0; }
.idm-pub-hero__ul { text-decoration: underline; text-underline-offset: 3px; }
.idm-pub-hero__actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
    margin-top: 18px;
}
.idm-pub-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--idm-bg); color: var(--idm-burgundy);
    font-family: var(--idm-sans, sans-serif);
    font-weight: 700; font-size: 1rem;
    padding: 14px 28px;
    text-decoration: none;
    transition: background .15s, transform .12s;
}
.idm-pub-btn:hover { background: #f1e9e9; transform: translateY(-1px); }
.idm-pub-reads {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem; color: rgba(255,255,255,.85);
}
.idm-pub-hero__rail { color: var(--idm-on-brand); }
.idm-pub-hero__cover {
    border: 3px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.06);
    line-height: 0;
    margin-bottom: 22px;
}
.idm-pub-hero__cover img { width: 100%; height: auto; display: block; }
.idm-pub-hero__series {
    font-family: var(--idm-sans, sans-serif);
    font-weight: 800; font-size: 1.15rem;
    margin: 0 0 18px;
}
.idm-pub-hero__series a { color: var(--idm-on-brand); text-decoration: underline; text-underline-offset: 4px; }
.idm-pub-hero__raillink {
    font-family: var(--idm-sans, sans-serif);
    font-weight: 700; font-size: 1rem;
    margin: 0 0 14px;
}
.idm-pub-hero__raillink a { color: var(--idm-on-brand); text-decoration: underline; text-underline-offset: 4px; }

.idm-pub-meta {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    font-family: var(--idm-sans, sans-serif);
    font-size: .9rem;
    padding-bottom: 20px;
    margin-bottom: 28px;
}
.idm-pub-meta a { color: inherit; }

/* ================================================================
   FOOTER — two-panel burgundy
   ================================================================ */
.site-footer-dynamic { display: none !important; }
.idm-footer {
    background: var(--idm-burgundy);
    color: var(--idm-on-brand);
    margin-top: 64px;
}
.idm-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: stretch;
    max-width: var(--idm-shell-max, 1280px);
    margin: 0 auto;
}
@media (max-width: 900px) {
    .idm-footer__inner { grid-template-columns: 1fr; }
}
.idm-footer__main { padding: 52px var(--idm-shell-padding, 24px) 44px; }
.idm-footer__aside {
    background: var(--idm-burgundy-light);
    padding: 52px var(--idm-shell-padding, 24px) 44px;
}
.idm-footer__parent {
    font-family: var(--idm-sans, sans-serif);
    font-size: .8rem;
    font-weight: 700;
    margin: 0 0 14px;
}
.idm-footer__parent a { color: rgba(255,255,255,.8); text-decoration: none; }
.idm-footer__parent a:hover { color: var(--idm-on-brand); }
.idm-footer__title {
    font-family: var(--idm-serif, serif);
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 32px;
}
.idm-footer__title a { color: var(--idm-on-brand); text-decoration: none; }
.idm-footer__contact { margin-bottom: 40px; }
.idm-footer__address,
.idm-footer__email {
    font-family: var(--idm-sans, sans-serif);
    font-size: .98rem;
    line-height: 1.6;
    margin: 0 0 4px;
    color: var(--idm-on-brand);
}
.idm-footer__email a { color: var(--idm-on-brand); text-decoration: none; }
.idm-footer__email a:hover { text-decoration: underline; }
.idm-footer__copy {
    font-family: var(--idm-sans, sans-serif);
    font-size: .92rem;
    color: var(--idm-on-brand);
    margin: 0;
}
.idm-footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
}
@media (max-width: 420px) { .idm-footer__cols { grid-template-columns: 1fr; } }
.idm-footer__col { display: flex; flex-direction: column; gap: 14px; }
.idm-footer__link {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1rem;
    color: var(--idm-on-brand);
    text-decoration: none;
    line-height: 1.2;
}
.idm-footer__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.idm-footer__social { display: flex; align-items: center; gap: 12px; }
.idm-footer__social svg { flex-shrink: 0; }

/* Landing/articles publications block */
.idm-home-publications__more { margin-top: 24px; }
.idm-articles-publications { margin-top: 64px; padding-top: 48px; }

/* ================================================================
   PUBLICATION CARD — shared by /publications, articles page,
   landing page and related-publications blocks.
   Replaces .idm-related-card (absolute layout caused overlaps).
   ================================================================ */
.idm-pubcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 56px 36px;
    margin-top: 36px;
}
@media (max-width: 720px) {
    .idm-pubcard-grid { grid-template-columns: 1fr; gap: 44px; }
}

.idm-pubcard { display: flex; flex-direction: column; }

/* Banner: flex row so the text column and cover can never overlap */
.idm-pubcard__banner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--idm-sand);
    padding: 26px 26px 26px 28px;
    min-height: 280px;
    text-decoration: none;
    margin-bottom: 20px;
    overflow: hidden;
}
.idm-pubcard__banner-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}
.idm-pubcard__date {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--idm-on-brand);
    margin-bottom: 18px;
}
.idm-pubcard__kicker {
    display: block;
    margin-top: auto;           /* pins the overline to the bottom */
    font-family: var(--idm-sans, sans-serif);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: .005em;
    color: var(--idm-on-brand);
    overflow-wrap: anywhere;
}
.idm-pubcard__thumb {
    flex: 0 0 43%;
    max-width: 43%;
    align-self: center;
    line-height: 0;
}
.idm-pubcard__thumb img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 6px 22px rgba(0,0,0,.28);
}
.idm-pubcard--noimg .idm-pubcard__banner-text { width: 100%; }
.idm-pubcard--noimg .idm-pubcard__kicker { font-size: 1.15rem; }

.idm-pubcard__org {
    font-family: var(--idm-sans, sans-serif);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.45;
    color: var(--idm-sand);
    margin: 0 0 12px;
}
.idm-pubcard__title {
    font-family: var(--idm-serif, serif);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.32;
    letter-spacing: -.01em;
    margin: 0;
}
.idm-pubcard__title a {
    color: var(--idm-accent);
    text-decoration: none;
}
.idm-pubcard__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
    .idm-pubcard__banner { min-height: 240px; padding: 22px; gap: 16px; }
    .idm-pubcard__kicker { font-size: .92rem; }
    .idm-pubcard__title { font-size: 1.2rem; }
}

/* Section spacing around the publication blocks */
.idm-home-publications { margin-top: 72px; margin-bottom: 72px; }
.idm-home-publications__more { margin-top: 36px; }
.idm-articles-publications { margin-top: 80px; padding-top: 56px; }
.idm-related-analysis { padding: 72px 0; }
.idm-related-analysis__title { margin-bottom: 36px; }

/* ================================================================
   PUBLICATION CARD — burgundy banner, black text outside the box
   (overrides the earlier sand/burgundy treatment)
   ================================================================ */
.idm-pubcard__banner { background: var(--idm-burgundy); }

.idm-pubcard__org {
    color: var(--idm-ink);
    opacity: var(--idm-dim);
}
.idm-pubcard__title a,
.idm-pubcard__title a:visited {
    color: var(--idm-ink);
}
.idm-pubcard__title a:hover { color: var(--idm-ink); }

/* ================================================================
   FOOTER — site title in the serif face
   ================================================================ */
.idm-footer .idm-footer__title,
.idm-footer .idm-footer__title a {
    font-family: var(--idm-serif) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ================================================================
   IMPACT NUMBERS — burgundy cards overlapping a full-bleed photo
   ================================================================ */
.idm-impact {
    position: relative;
    margin: 72px 0;
    /* full-bleed: escape the site shell */
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.idm-impact__cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--idm-shell-max, 1280px);
    margin: 0 auto;
    padding: 0 var(--idm-shell-padding, 24px);
    align-items: stretch;
}
.idm-impact-card {
    background: var(--idm-burgundy);
    color: var(--idm-on-brand);
    padding: 34px 32px 38px;
    display: flex;
    flex-direction: column;
}
.idm-impact-card__figure {
    font-family: var(--idm-serif, serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.02em;
    margin: 0 0 22px;
    color: var(--idm-on-brand);
}
.idm-impact-card__head {
    font-family: var(--idm-sans, sans-serif);
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -.01em;
    margin: 0 0 20px;
    color: var(--idm-on-brand);
}
.idm-impact-card__desc {
    font-family: var(--idm-sans, sans-serif);
    font-size: .98rem;
    line-height: 1.5;
    color: rgba(255,255,255,.88);
    margin: 0 0 26px;
}
.idm-impact-card__link {
    margin: auto 0 0;          /* pin links to the bottom of each card */
    font-family: var(--idm-sans, sans-serif);
    font-size: 1.02rem;
    font-weight: 600;
}
.idm-impact-card__link a {
    color: var(--idm-on-brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.idm-impact-card__link a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Photo sits behind and below, so the cards overlap its top edge */
.idm-impact__photo {
    position: relative;
    z-index: 1;
    margin-top: -190px;
    padding-top: 190px;
    height: 460px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ddd;
}
@media (max-width: 900px) {
    .idm-impact__cards { grid-template-columns: 1fr; gap: 18px; }
    .idm-impact__photo { margin-top: -120px; padding-top: 120px; height: 320px; }
    .idm-impact-card { padding: 28px 24px 30px; }
}

/* ================================================================
   IMPACT NUMBERS — slimmer boxes, serif figures
   ================================================================ */
.idm-impact__cards {
    gap: 20px;
    max-width: 1080px;            /* narrower than the full shell */
}
.idm-impact-card {
    padding: 28px 24px 30px;
}
.idm-impact-card__figure {
    font-family: var(--idm-serif, serif) !important;
    font-weight: 400;
    font-size: clamp(2.6rem, 4.6vw, 4rem);
    margin-bottom: 16px;
}
.idm-impact-card__head {
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    margin-bottom: 14px;
}
.idm-impact-card__desc {
    font-size: .92rem;
    margin-bottom: 20px;
}
.idm-impact-card__link { font-size: .96rem; }
.idm-impact__photo { height: 400px; }
@media (max-width: 900px) {
    .idm-impact__photo { height: 300px; }
}

/* ================================================================
   NEWSLETTER — plain background, black frames, compact
   ================================================================ */
.idm-newsletter-section {
    background: transparent;
    color: inherit;
    padding: 2rem 0 2.4rem;
    margin-top: 2rem;
    /* stay inside the shell — no full-bleed */
    width: auto;
    margin-left: 0;
    transform: none;
}
.idm-newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 20px 40px;
    align-items: start;
    max-width: var(--idm-shell-max, 1280px);
    margin: 0 auto;
    padding: 0 var(--idm-shell-padding, 24px);
    text-align: left;
}
@media (max-width: 860px) {
    .idm-newsletter-inner { grid-template-columns: 1fr; gap: 18px; }
    .idm-newsletter-section { padding: 1.6rem 0 2rem; }
}
.idm-newsletter-heading {
    font-family: var(--idm-serif, serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--idm-ink);
    margin: 0 0 10px;
    max-width: 18ch;
}
.idm-newsletter-subtext {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    line-height: 1.55;
    color: var(--idm-ink-soft);
    margin: 0;
    max-width: 46ch;
}
.idm-nl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
@media (max-width: 560px) { .idm-nl-grid { grid-template-columns: 1fr; } }
.idm-nl-field { margin: 0; }
.idm-nl-field--full { grid-column: 1 / -1; }
.idm-nl-field label {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--idm-ink);
    margin-bottom: 5px;
}
.idm-nl-field input {
    width: 100%;
    box-sizing: border-box;
    background: var(--idm-bg);
    border: 1px solid var(--idm-ink);
    border-radius: 0;
    padding: 9px 11px;          /* shorter fields */
    font-family: var(--idm-sans, sans-serif);
    font-size: .9rem;
    line-height: 1.3;
    color: var(--idm-ink);
    -webkit-appearance: none;
    appearance: none;
}
.idm-nl-field input:focus {
    outline: 2px solid var(--idm-ink);
    outline-offset: -2px;
}
.idm-nl-actions { margin: 14px 0 0; }
.idm-nl-button {
    background: var(--idm-bg);
    color: var(--idm-ink);
    border: 1px solid var(--idm-ink);
    border-radius: 0;
    font-family: var(--idm-sans, sans-serif);
    font-weight: 700;
    font-size: .9rem;
    padding: 10px 26px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.idm-nl-button:hover { background: var(--idm-ink); color: var(--idm-bg); }
.idm-newsletter-thanks,
.idm-newsletter-error {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    color: var(--idm-ink);
    margin: 0;
}
.idm-newsletter-error { margin-bottom: 12px; }

/* ================================================================
   TYPE SCALE — single source of truth
   Every heading/body size below maps to one of these steps.
   Appended last so it supersedes the older scattered rules.
   ================================================================ */
:root {
    /* Display + headings */
    --fs-display: clamp(2.6rem, 5.2vw, 4.4rem);   /* hero / single titles      */
    --fs-h1:      clamp(2.1rem, 4vw, 3.2rem);     /* page titles               */
    --fs-h2:      clamp(1.55rem, 2.6vw, 2.15rem); /* section titles            */
    --fs-h3:      clamp(1.2rem, 1.8vw, 1.5rem);   /* card titles, sub-sections */
    --fs-h4:      clamp(1.05rem, 1.4vw, 1.2rem);  /* minor headings            */

    /* Body */
    --fs-body-lg: clamp(1.05rem, 1.25vw, 1.18rem); /* article body             */
    --fs-body:    1rem;                            /* default body             */
    --fs-small:   .92rem;                          /* meta, excerpts           */
    --fs-xs:      .8rem;                           /* labels, eyebrows         */
    --fs-xxs:     .72rem;                          /* uppercase micro-labels   */

    /* Line heights */
    --lh-tight:  1.08;
    --lh-snug:   1.22;
    --lh-normal: 1.45;
    --lh-relaxed: 1.7;
}

/* ---------- Display / single titles ---------- */
.idm-single-title,
.idm-single-title.idm-title--long,
.idm-home-featured__title {
    font-size: var(--fs-display) !important;
    line-height: var(--lh-tight) !important;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}
.idm-brief-title,
.idm-pub-hero__title {
    font-size: var(--fs-h1) !important;
    line-height: var(--lh-snug) !important;
}

/* ---------- Page titles ---------- */
.idm-about-title,
.idm-page-header h1,
.idm-publications-header h1,
.idm-hub__title {
    font-size: var(--fs-h1) !important;
    line-height: var(--lh-snug) !important;
    letter-spacing: -0.02em;
}

/* ---------- Section titles ---------- */
.idm-section-title,
.idm-section-title a,
.idm-speakers-title,
.idm-newsletter-heading,
.idm-related-analysis__title,
.idm-carousel-title {
    font-size: var(--fs-h2) !important;
    line-height: var(--lh-snug) !important;
}
/* Uppercase micro-headings keep their own small step */
.idm-hub__group-title,
.idm-event-people__title,
.idm-brief-abstract h2,
.idm-brief-pdf-viewer h2,
.idm-brief-meta-topic,
.idm-pubcard__org {
    font-size: var(--fs-xxs) !important;
}

/* ---------- Card / list titles ---------- */
.idm-card-title,
.idm-card-title a,
.idm-calendar-item__title,
.idm-calendar-item__title a,
.idm-pubcard__title,
.idm-brief-card h2,
.idm-video-card h3,
.idm-position-card h3,
.idm-author-card h3,
.idm-hub-card__label,
.idm-faq-item h3 {
    font-size: var(--fs-h3) !important;
    line-height: var(--lh-snug) !important;
}
.idm-calendar-item__date {
    font-size: var(--fs-h4) !important;
}

/* ---------- Body copy ---------- */
.idm-single-content,
.idm-single-content p,
.idm-single-content li {
    font-size: var(--fs-body-lg) !important;
    line-height: var(--lh-relaxed) !important;
}
.idm-single-content h2 { font-size: var(--fs-h2) !important; line-height: var(--lh-snug) !important; }
.idm-single-content h3 { font-size: var(--fs-h3) !important; line-height: var(--lh-snug) !important; }
.idm-single-content h4 { font-size: var(--fs-h4) !important; line-height: var(--lh-snug) !important; }

.idm-about-intro,
.idm-about-intro-2 p,
.idm-brief-abstract p,
.idm-home-intro p,
.idm-publications-intro,
.idm-newsletter-subtext,
.idm-contact-map-desc {
    font-size: var(--fs-body) !important;
    line-height: var(--lh-relaxed) !important;
}

/* ---------- Meta / secondary ---------- */
.idm-card-meta,
.idm-card-excerpt,
.idm-single-meta,
.idm-brief-card__meta,
.idm-brief-byline,
.idm-video-date,
.idm-reading-time,
.idm-hub-card__desc,
.idm-hub__group-desc,
.idm-speaker-title,
.idm-author-card__role,
.idm-contact-map-address {
    font-size: var(--fs-small) !important;
    line-height: var(--lh-normal) !important;
}
.idm-pubcard__date,
.idm-filter-chip,
.idm-hub__stat-l,
.idm-footer__parent,
.idm-nl-field label,
.idm-speaker-name {
    font-size: var(--fs-xs) !important;
}

/* ================================================================
   SINGLE EVENT / ARTICLE — video matches the text column exactly
   ================================================================ */
.idm-single-content .idm-youtube-embed,
.entry-content .idm-youtube-embed,
.post-content .idm-youtube-embed {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0;
    margin-right: 0;
    margin-top: 2.2rem;
    margin-bottom: 2.2rem;
}
.idm-single-content .idm-youtube-embed iframe { width: 100%; height: 100%; }

/* ================================================================
   EVENT CONTACT LINE
   ================================================================ */
.idm-event-contact {
    margin: 32px 0 0;
    padding-top: 20px;
    font-family: var(--idm-sans, sans-serif);
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
}
.idm-event-contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   HEADER — raise the logo + wordmark, keep them optically aligned
   ================================================================ */
.site-header-dynamic .branding-row {
    padding: 6px 0 20px !important;
    align-items: center;
}
.site-branding-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-branding-wrap > div { display: flex; flex-direction: column; justify-content: center; }
.site-title-text { line-height: 1.02; }
.site-description-text { margin: 3px 0 0; line-height: 1.3; }

/* ================================================================
   CAROUSEL TITLE — larger
   ================================================================ */
.idm-carousel-title {
    font-size: clamp(2.2rem, 5.4vw, 4.2rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em;
}
@media (max-width: 700px) {
    .idm-carousel-title { font-size: clamp(1.8rem, 8.5vw, 2.8rem) !important; }
}

/* ================================================================
   NEWSLETTER — larger labels and button
   ================================================================ */
.idm-nl-field label {
    font-size: 1rem !important;
    font-weight: 600;
    margin-bottom: 7px;
}
.idm-nl-field input {
    font-size: 1rem;
    padding: 11px 13px;
}
.idm-nl-button {
    font-size: 1.02rem !important;
    padding: 12px 32px;
}

/* Tighten the gap before the footer */
.idm-newsletter-section { padding-bottom: 1.4rem; }
.idm-footer { margin-top: 28px; }

/* ================================================================
   PAST SPEAKERS — bigger photos + names, horizontal scroll at all sizes
   ================================================================ */
.idm-speakers-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    gap: 34px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 14px;
    max-width: 100%;
    /* let the row bleed to the shell edges so it reads as scrollable */
    margin: 0 calc(-1 * var(--idm-shell-padding, 24px));
    padding-left: var(--idm-shell-padding, 24px);
    padding-right: var(--idm-shell-padding, 24px);
    /* thin scrollbar */
    scrollbar-width: thin;
}
.idm-speakers-grid::-webkit-scrollbar { height: 6px; }
.idm-speakers-grid::-webkit-scrollbar-thumb { background: var(--idm-fill-strong); border-radius: 3px; }
.idm-speakers-grid::-webkit-scrollbar-track { background: var(--idm-fill); }

.idm-speaker-card {
    flex: 0 0 auto;
    width: 190px;
    scroll-snap-align: start;
}
.idm-speaker-photo {
    width: 150px;
    height: 150px;
    margin-bottom: 18px;
}
.idm-speaker-name {
    font-size: 1.05rem !important;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 7px;
}
.idm-speaker-title {
    font-size: .9rem !important;
    line-height: 1.4;
}
@media (max-width: 700px) {
    .idm-speakers-grid {
        --sp-gap: 22px;
        gap: var(--sp-gap);
        /* The trailing padding of a scroll container is dropped by every
           browser once the content overflows, so the last card ended up
           against the screen edge while the first sat a gutter in. The
           spacer below is padding the browser cannot discard; its
           negative margin cancels the flex gap in front of it, so the
           space left at the end is the gutter exactly. */
        padding-right: 0;
        scroll-padding-left: var(--idm-shell-padding, 16px);
    }
    .idm-speakers-grid::after {
        content: "";
        flex: 0 0 var(--idm-shell-padding, 16px);
        margin-left: calc(-1 * var(--sp-gap));
    }
    /* Three cards and a sliver of the fourth, so the row reads as
       something that continues. */
    .idm-speaker-card { width: calc((100% - 5.5rem) / 3.25); min-width: 104px; }
    .idm-speaker-photo { width: 110px; height: 110px; }
    .idm-speaker-name { font-size: .95rem !important; }
    .idm-speaker-title { font-size: .82rem !important; }
}

/* ================================================================
   ARTICLES — "All articles" button
   ================================================================ */
.idm-articles-allmore { margin-top: 32px; }

/* ================================================================
   MOBILE — side spacing for logo row and menu
   ================================================================ */
@media (max-width: 900px) {
    .site-header-dynamic .branding-row,
    .site-header-dynamic .utility-row {
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-sizing: border-box;
    }
    /* dropdown nav inset from the screen edges */
    .idm-primary-nav {
        left: 18px !important;
        right: 18px !important;
        width: auto !important;
    }
    .idm-menu a { padding-left: 18px !important; padding-right: 18px !important; }
    .idm-mobile-nav-footer { padding-left: 18px; padding-right: 18px; }
}

/* ================================================================
   PUBLICATION CARD — title in the article-card face
   ================================================================ */
.idm-pubcard__title,
.idm-pubcard__title a {
    font-family: var(--idm-sans) !important;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* ================================================================
   "Show more" style links — shared by articles and publications
   ================================================================ */
.idm-home-publications__more,
.idm-articles-allmore { margin-top: 26px; }
.idm-home-publications__more .idm-more-past-link,
.idm-articles-allmore .idm-more-past-link {
    display: inline-block;
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--idm-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--idm-ink);
    text-decoration: none;
    cursor: pointer;
}
.idm-home-publications__more .idm-more-past-link:hover,
.idm-articles-allmore .idm-more-past-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   EVENT — "Read about this event" buttons
   ================================================================ */
.idm-event-article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 0;
    padding-top: 24px;
}
.idm-event-article-links .idm-signup-button { margin-top: 0; }

/* ================================================================
   BRIEF SUBMISSION FORM
   ================================================================ */
.idm-brief-submit-form { max-width: 720px; }
.idm-brief-submit-form textarea { width: 100%; box-sizing: border-box; }

/* ================================================================
   ODOMETER — impact figures
   ================================================================ */
.idm-odo {
    display: flex;
    align-items: flex-end;
    line-height: 1;
}
.idm-odo__fixed { display: inline-block; }
.idm-odo__digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    vertical-align: bottom;
}
.idm-odo__reel {
    display: flex;
    flex-direction: column;
    will-change: transform;
}
.idm-odo__n {
    display: block;
    height: 1em;
    line-height: 1em;
    text-align: center;
}

/* ================================================================
   EDIT HUB — tighter, friendlier
   ================================================================ */
.idm-hub__head { margin-bottom: 26px; }
.idm-hub__group { margin-bottom: 36px; }
.idm-hub__group-head { margin-bottom: 12px; }
.idm-hub__stats { margin-bottom: 40px; }

/* ================================================================
   MEMBERS PAGE — approval workflow
   ================================================================ */
.idm-members-stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 8px; }
@media (max-width: 700px) { .idm-members-stats { grid-template-columns: repeat(2, 1fr); } }

.idm-approve-all-form { margin: 0 0 18px; }
.idm-approve-all-form .idm-signup-button { margin-top: 0; }

.idm-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.idm-rowbtn {
    display: inline-block;
    font-family: var(--idm-sans);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 10px;
    border: 1px solid var(--idm-ink);
    color: var(--idm-ink);
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s, color .12s;
}
.idm-rowbtn:hover { background: var(--idm-ink); color: var(--idm-bg); }
.idm-rowbtn--approve { background: var(--idm-ink); color: var(--idm-bg); }
.idm-rowbtn--approve:hover { background: var(--idm-bg); color: var(--idm-ink); }
.idm-rowbtn--danger { border-color: #a12; color: #a12; }
.idm-rowbtn--danger:hover { background: #a12; color: var(--idm-bg); }

.idm-accept-settings > summary {
    cursor: pointer;
    font-family: var(--idm-sans);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 16px;
}
.idm-accept-settings textarea { width: 100%; box-sizing: border-box; font-family: var(--idm-sans); font-size: .92rem; line-height: 1.55; }
.idm-accept-settings code {
    background: var(--idm-fill-strong);
    padding: 1px 5px;
    font-size: .88em;
}

/* ================================================================
   EDITOR SUB-NAVIGATION
   ================================================================ */
.idm-edit-subnav {
    margin: 0 0 32px;
    border-bottom: 1px solid var(--idm-line);
}
.idm-edit-subnav__inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}
.idm-edit-subnav__inner::-webkit-scrollbar { height: 5px; }
.idm-edit-subnav__inner::-webkit-scrollbar-thumb { background: var(--idm-fill-strong); border-radius: 3px; }
.idm-edit-subnav__link {
    flex: 0 0 auto;
    font-family: var(--idm-sans);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1;
    padding: 9px 13px;
    color: var(--idm-ink);
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background .12s, color .12s, border-color .12s;
}
.idm-edit-subnav__link:hover { border-color: var(--idm-ink); }
.idm-edit-subnav__link.is-current { background: var(--idm-ink); color: var(--idm-bg); border-color: var(--idm-ink); }

/* ================================================================
   MEMBERS — selection toolbar and checkbox column
   ================================================================ */
.idm-approve-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}
.idm-approve-bar .idm-signup-button { margin-top: 0; padding: 10px 18px; font-size: .88rem; }
.idm-approve-bar__sep {
    width: 1px;
    height: 24px;
    background: var(--idm-fill-strong);
    margin: 0 4px;
}
.idm-check-col { width: 36px; text-align: center; }
.idm-check-col input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--idm-ink); }
tr:has(.idm-member-check:checked) { background: var(--idm-fill); }

/* ================================================================
   MOBILE NAV — full width again (overrides the inset version)
   ================================================================ */
@media (max-width: 900px) {
    .idm-primary-nav {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-left: 0;
        border-right: 0;
    }
}

/* ================================================================
   HEADER — break the site name after the first word on mobile
   ================================================================ */
.idm-title-break { display: none; }
@media (max-width: 700px) {
    .idm-title-break { display: block; }
    .site-title-text { line-height: 1.04; }
}

/* ================================================================
   PUBLICATION PAGE — burgundy runs up to the header
   ================================================================ */
.single-idm_brief .main-content-area { padding-top: 0; }
.single-idm_brief .idm-pub-hero { margin-top: 0; }

/* ================================================================
   PUBLICATION PAGE — breadcrumb is now one series label
   ================================================================ */
.idm-pub-crumbs {
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    font-weight: 700;
    margin: 0 0 20px;
}
.idm-pub-crumbs a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
}
.idm-pub-crumbs a:hover { color: var(--idm-on-brand); text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   PDF VIEWER — iframe on desktop, card on mobile
   ================================================================ */
.idm-brief-pdf-embed {
    width: 100%;
    height: 800px;
}
.idm-brief-pdf-embed iframe {
    width: 100%;
    height: 100%;
    border: 1px solid var(--idm-line);
    display: block;
}
.idm-brief-pdf-card { display: none; }

@media (max-width: 820px) {
    /* Phones and most tablets cannot render a PDF in an iframe */
    .idm-brief-pdf-embed { display: none; }
    .idm-brief-pdf-fallback { display: none; }
    .idm-brief-pdf-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 20px;
        border: 1.5px solid var(--idm-ink);
        text-decoration: none;
        color: var(--idm-ink);
        background: var(--idm-bg);
    }
    .idm-brief-pdf-card__icon {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .idm-brief-pdf-card__text {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }
    .idm-brief-pdf-card__text strong {
        font-family: var(--idm-sans, sans-serif);
        font-size: 1rem;
        font-weight: 700;
    }
    .idm-brief-pdf-card__text span {
        font-family: var(--idm-sans, sans-serif);
        font-size: .85rem;
        opacity: var(--idm-dim);
    }
}

/* ================================================================
   WEEKLY POLL — public form and results
   ================================================================ */
.idm-poll { max-width: 640px; }
.idm-poll__empty { opacity: var(--idm-dim); }

.idm-poll__field {
    border: 0;
    padding: 0;
    margin: 0 0 26px;
}
.idm-poll__field legend {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1rem;
    font-weight: 700;
    padding: 0;
    margin-bottom: 12px;
}
.idm-poll__yesno { display: flex; gap: 10px; flex-wrap: wrap; }
.idm-poll__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1.5px solid var(--idm-line);
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    cursor: pointer;
    transition: border-color .12s, background .12s;
}
.idm-poll__opt:hover { border-color: var(--idm-ink); }
.idm-poll__opt input { width: 17px; height: 17px; accent-color: var(--idm-accent); cursor: pointer; flex-shrink: 0; }
.idm-poll__opt:has(input:checked) { border-color: var(--idm-accent); background: rgba(120,23,23,.05); }
.idm-poll__groups { display: flex; flex-direction: column; gap: 8px; }
.idm-poll__groups .idm-poll__opt { width: 100%; box-sizing: border-box; }

.idm-poll__privacy {
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    opacity: var(--idm-dim);
    margin: 0 0 18px;
}
.idm-poll__done { font-family: var(--idm-sans, sans-serif); opacity: var(--idm-dim); }

/* Results */
.idm-poll__results {
    margin-top: 36px;
    padding-top: 28px;
}
.idm-poll__results-title {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 14px;
}
.idm-poll__headline {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1.05rem;
    margin: 0 0 28px;
}
.idm-poll__headline strong { font-size: 1.5rem; }
.idm-poll__sep { opacity: var(--idm-dim-most); margin: 0 4px; }

.idm-poll__chart-title {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 14px;
    opacity: var(--idm-dim);
}
.idm-poll__chart { display: flex; flex-direction: column; gap: 10px; }
.idm-poll__bar-row {
    display: grid;
    grid-template-columns: minmax(0, 11rem) 1fr 2.2rem;
    align-items: center;
    gap: 12px;
}
.idm-poll__bar-label {
    font-family: var(--idm-sans, sans-serif);
    font-size: .9rem;
    line-height: 1.25;
}
.idm-poll__bar-track {
    display: block;
    height: 22px;
    background: var(--idm-fill-strong);
    position: relative;
}
.idm-poll__bar-fill {
    display: block;
    height: 100%;
    background: var(--idm-burgundy);
    transition: width .5s ease;
    min-width: 0;
}
.idm-poll__bar-value {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.idm-poll__closes {
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    opacity: var(--idm-dim);
    margin: 22px 0 0;
}
@media (max-width: 560px) {
    .idm-poll__bar-row { grid-template-columns: minmax(0, 7.5rem) 1fr 2rem; gap: 8px; }
    .idm-poll__bar-label { font-size: .82rem; }
}

/* Admin view */
.idm-poll-admin-current {
    border: 1px solid var(--idm-line);
    padding: 22px;
    margin-bottom: 8px;
}
.idm-poll-admin-figures { font-family: var(--idm-sans, sans-serif); font-size: 1.05rem; }
.idm-poll-admin-figures strong { font-size: 1.4rem; }
.idm-poll-admin-groups {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-family: var(--idm-sans, sans-serif);
    font-size: .92rem;
}

/* ================================================================
   TABLE ACTIONS — download + copy emails sit side by side
   ================================================================ */
.idm-forms-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.idm-copy-emails { white-space: nowrap; }

/* ================================================================
   MEMBERS — copy-by-type row above the approved table
   ================================================================ */
.idm-copy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}
.idm-copy-row__label {
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    font-weight: 600;
    opacity: var(--idm-dim);
    margin-right: 2px;
}

/* Printable signature sheets. The row wraps onto its own line because
   the three labels are longer than the copy buttons beside them. */
.idm-sheet-row {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--idm-line, #e4e0da);
}
.idm-sheet-row .idm-copy-row__label { flex: 1 0 100%; margin-bottom: 2px; }
.idm-sheet-row .idm-audience-note { display: block; font-weight: 400; margin-top: 2px; }
a.idm-sheet-button {
    margin-top: 0;
    padding: 8px 14px;
    font-size: .82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
a.idm-sheet-button .idm-manage-count { opacity: var(--idm-dim); }

/* ================================================================
   CHANGE MEMBERSHIP STATUS — section under the application form
   ================================================================ */
.idm-change-status {
    margin-top: 64px;
    padding-top: 44px;
    max-width: 760px;
}
.idm-change-status__lead {
    font-family: var(--idm-sans, sans-serif);
    font-size: .98rem;
    line-height: 1.6;
    opacity: var(--idm-dim);
    margin: 0 0 24px;
    max-width: 52ch;
}
.idm-change-form { max-width: 100%; }

/* ================================================================
   PAST SPEAKERS — self-rotating row
   Snapping and smooth scrolling both fight a per-frame scroll, so both
   are off while the row moves itself. Each speaker appears exactly
   once: when a card leaves on the left it is moved to the end.

   The moment somebody takes hold of the row the rotation pauses and
   .is-held goes on, which turns snapping on — so a swipe always comes
   to rest on a card rather than halfway between two. It turns off
   again when the rotation resumes.
   ================================================================ */
.idm-speakers-grid {
    scroll-behavior: auto;
    scroll-snap-type: none;
}
.idm-speaker-card { scroll-snap-align: start; }
.idm-speakers-grid.is-held {
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--idm-shell-padding, 16px);
}
/* While the row is rotating, hide the scrollbar — the motion already
   signals that there is more to see, and a twitching bar is noise. */
.idm-speakers-grid.is-rotating { scrollbar-width: none; }
.idm-speakers-grid.is-rotating::-webkit-scrollbar { height: 0; }

/* ================================================================
   QUICK ACTIONS — the first page of the editing hub
   ================================================================ */
.idm-quick { max-width: 880px; }
.idm-quick__lead {
    font-family: var(--idm-sans, sans-serif);
    font-size: .98rem;
    line-height: 1.6;
    opacity: var(--idm-dim);
    margin: 0 0 40px;
    max-width: 56ch;
}
.idm-quick-block { margin-bottom: 44px; }
.idm-quick-block__title {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: var(--idm-dim-more);
    margin: 0 0 14px;
    padding-bottom: 10px;
}
.idm-quick-block__note {
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    line-height: 1.5;
    opacity: var(--idm-dim);
    margin: 0 0 16px;
    max-width: 56ch;
}
.idm-quick-clear {
    font-family: var(--idm-sans, sans-serif);
    font-size: .92rem;
    opacity: var(--idm-dim);
    margin: 0;
}

/* To-do list */
.idm-quick-todo { list-style: none; margin: 0; padding: 0; }
.idm-quick-todo__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--idm-line);
    margin-bottom: 8px;
    background: var(--idm-bg);
}
.idm-quick-todo__item.is-urgent {
    border-color: var(--idm-burgundy, var(--idm-burgundy));
    border-left-width: 4px;
}
.idm-quick-todo__text {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
}
.idm-quick-todo__cta {
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    font-weight: 700;
    color: var(--idm-burgundy, var(--idm-burgundy));
    text-decoration: none;
    white-space: nowrap;
}
.idm-quick-todo__cta:hover { text-decoration: underline; }

/* "Start something" buttons */
.idm-quick-makes { display: flex; flex-wrap: wrap; gap: 10px; }
.idm-quick-make {
    font-family: var(--idm-sans, sans-serif);
    font-size: .9rem;
    font-weight: 700;
    padding: 13px 20px;
    border: 1.5px solid var(--idm-ink);
    color: var(--idm-ink);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.idm-quick-make:hover { background: var(--idm-ink); color: var(--idm-bg); }

/* Poll snapshot */
.idm-quick-poll-head,
.idm-quick-event {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 10px;
}
.idm-quick-event a { color: inherit; text-decoration: none; }
.idm-quick-event a:hover { text-decoration: underline; }
.idm-quick-poll-dates {
    font-size: .88rem;
    opacity: var(--idm-dim);
}
.idm-quick-poll-figures {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1.05rem;
    margin: 0 0 14px;
}
.idm-quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.idm-quick-chip {
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    padding: 7px 12px;
    border: 1px solid var(--idm-line);
}
.idm-quick-chip strong { margin-left: 4px; }
.idm-quick-poll-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.idm-quick-poll-form .idm-signup-button { margin-top: 0; }
.idm-quick-poll-links { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 18px; }
.idm-quick-inline-link {
    font-family: var(--idm-sans, sans-serif);
    font-size: .88rem;
    font-weight: 600;
    color: var(--idm-burgundy, var(--idm-burgundy));
    text-decoration: none;
}
.idm-quick-inline-link:hover { text-decoration: underline; }

/* The hub card that points here spans the row */
.idm-hub-card--wide { grid-column: 1 / -1; }

@media (max-width: 600px) {
    .idm-quick-block { margin-bottom: 36px; }
    .idm-quick-todo__item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .idm-quick-make { flex: 1 1 100%; text-align: center; }
    .idm-quick-poll-form .idm-signup-button { flex: 1 1 100%; }
}

/* ================================================================
   ARTICLES PAGE — tighter publications block on mobile
   ================================================================ */
@media (max-width: 700px) {
    .idm-articles-publications {
        margin-top: 36px;
        padding-top: 26px;
    }
    .idm-articles-publications .idm-home-publications {
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 8px;
    }
}

/* ================================================================
   AUTHOR BYLINE — photo, name, badge, title
   Used on articles, publications and the Authors editor.
   ================================================================ */
.idm-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--idm-sans, sans-serif);
}
.idm-byline__avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--idm-fill-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}
.idm-byline__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0;
}
.idm-byline__initials {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: var(--idm-dim);
}
.idm-byline__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.idm-byline__line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.idm-byline__name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--idm-ink);
}
.idm-byline__name a { color: inherit; text-decoration: none; }
.idm-byline__name a:hover { text-decoration: underline; }
.idm-byline__badge {
    display: inline-block;
    background: var(--idm-burgundy, var(--idm-burgundy));
    color: var(--idm-on-brand);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 9px 4px;
    line-height: 1;
    white-space: nowrap;
}
.idm-byline__role {
    font-size: .88rem;
    line-height: 1.35;
    opacity: var(--idm-dim);
    color: var(--idm-ink);
}

/* Compact variant */
.idm-byline--small { gap: 10px; }
.idm-byline--small .idm-byline__avatar { width: 40px; height: 40px; }
.idm-byline--small .idm-byline__name { font-size: .92rem; }
.idm-byline--small .idm-byline__role { font-size: .8rem; }
.idm-byline--small .idm-byline__badge { font-size: .6rem; padding: 4px 7px 3px; }

/* ================================================================
   ARTICLE LAYOUT — title, dek, landscape image, meta bar
   ================================================================ */
.idm-article-v2 .idm-single-hero {
    /* The image carries more width than the text, as in the reference */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 52px;
    margin: 14px 0 0;
}

.idm-article-v2 .idm-single-title {
    font-family: var(--idm-serif, serif);
    font-size: clamp(2.2rem, 3.6vw, 3.4rem) !important;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 26px;
}
.idm-article-v2 .idm-single-title.idm-title--long {
    font-size: clamp(1.9rem, 3vw, 2.9rem) !important;
}
.idm-article-dek {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1.04rem;
    line-height: 1.6;
    margin: 0;
    max-width: 52ch;
    opacity: var(--idm-dim);
}

/* Landscape image, not the square crop used elsewhere */
.idm-article-v2 .idm-single-featured-image { margin: 0; }
.idm-article-v2.idm-single-article:not(.idm-single-event) .idm-single-featured-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.idm-article-figcaption {
    font-family: var(--idm-sans, sans-serif);
    font-size: .78rem;
    line-height: 1.45;
    opacity: var(--idm-dim);
    margin-top: 10px;
}

/* Meta bar */
.idm-article-metabar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px 56px;
    margin: 40px 0 44px;
    padding: 22px 0;
    border-top: 1px solid var(--idm-line);
}
.idm-article-metabar__col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.idm-article-metabar__col--author { margin-left: auto; }
.idm-article-metabar__label {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: var(--idm-dim-more);
}
.idm-article-metabar__value {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    line-height: 1.3;
}
/* The old standalone reading-time line is folded into the bar */
.idm-article-v2 .idm-reading-time { display: none; }

/* The author, under an article: a byline and a line about them. */
.idm-author-note {
    width: min(60vw, 980px);
    max-width: 60%;
    margin: 56px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--idm-line);
}
.idm-author-note__bio {
    font-family: var(--idm-sans, sans-serif);
    font-size: .96rem;
    line-height: 1.65;
    margin: 16px 0 0;
    opacity: var(--idm-dim);
}
/* Publication byline */
.idm-pub-byline { margin: 0 0 22px; }

@media (max-width: 1100px) {
    .idm-author-note { width: min(72vw, 900px); max-width: 72%; }
}
@media (max-width: 820px) {
    /* This selector outranks the shared one-column rule, so it has to
       collapse the hero itself. */
    .idm-article-v2 .idm-single-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .idm-article-v2 .idm-single-hero__media { order: -1; }
    .idm-article-metabar { gap: 20px 32px; margin: 28px 0 32px; padding: 18px 0; }
    .idm-article-metabar__col--author { margin-left: 0; flex-basis: 100%; }
    .idm-author-note { width: 100%; max-width: 100%; margin-top: 44px; }
}
@media (max-width: 600px) {
    .idm-byline__avatar { width: 48px; height: 48px; }
    .idm-byline__name { font-size: .96rem; }
    .idm-byline__role { font-size: .83rem; }
    .idm-article-dek { font-size: .98rem; }
}

/* ================================================================
   AUTHORS EDITOR
   ================================================================ */
.idm-authors-editor { max-width: 920px; }
.idm-author-row { margin-bottom: 20px; }
.idm-author-row__grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.idm-author-row__photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 0 10px;
    border: 1px solid var(--idm-line);
}
.idm-author-row__nophoto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--idm-fill-strong);
    font-family: var(--idm-sans, sans-serif);
    font-size: .78rem;
    opacity: var(--idm-dim-more);
    margin-bottom: 10px;
}
.idm-author-row__fields p { margin-bottom: 14px; }
.idm-author-row__delete { margin-top: 4px; }
.idm-author-row__preview {
    margin-top: 18px;
    padding-top: 16px;
}
.idm-author-row__preview-label {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: var(--idm-dim-more);
    margin-bottom: 12px;
}
.idm-authors-unlinked { margin-top: 48px; }
.idm-authors-unlinked__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.idm-authors-unlinked__list li {
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    padding: 8px 12px;
    border: 1px solid var(--idm-line);
}
.idm-authors-unlinked__list span { opacity: var(--idm-dim-more); margin-left: 6px; }

@media (max-width: 700px) {
    .idm-author-row__grid { grid-template-columns: 1fr; gap: 16px; }
    .idm-author-row__photo img,
    .idm-author-row__nophoto { width: 92px; height: 92px; }
}

/* ================================================================
   PAGE SURFACE
   ================================================================ */
:root { --idm-page-bg: var(--idm-bg); }

/* ================================================================
   ONE SERIF, ONE SANS
   The bundled stylesheets this theme inherited still reference font
   variables that were never defined here, so they were falling back to
   Arial and Georgia — a third and fourth typeface on the page. Only two
   faces are actually loaded, so every one of those names is aliased to
   them and nothing else can creep in.
   ================================================================ */
:root {
    --wp--preset--font-family--inter: var(--idm-sans);
    --wp--preset--font-family--libre-franklin: var(--idm-sans);
    --wp--preset--font-family--cardo: var(--idm-serif);
    --wp--preset--font-family--monospace: ui-monospace, SFMono-Regular, Menlo, monospace;
    --wp--custom--body--typography--font-family: var(--idm-sans);
    --wp--custom--sans-serif--typography--font-family: var(--idm-sans);
    --wp--custom--serif--typography--font-family: var(--idm-serif);
}

/* Only the body carries it, so the browser canvas inherits from there and
   the dark-mode rules keep working untouched. The footer keeps its
   burgundy — it is not part of the page surface. */
body.idm-theme,
body.idm-theme .site-header-dynamic {
    background-color: var(--idm-page-bg);
}
/* The sticky mobile header sets its own white further up the sheet */
@media (max-width: 900px) {
    body.idm-theme .site-header-dynamic { background: var(--idm-page-bg); }
}

/* ================================================================
   AUTHOR / BOARD PROFILE PAGE
   ================================================================ */
.idm-profile-v2 .idm-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
    margin: 18px 0 8px;
}
.idm-profile-head { margin-bottom: 56px; }
.idm-profile-v2 .idm-profile-name { margin-top: 0; }

.idm-profile-name {
    font-family: var(--idm-serif, serif);
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.02em;
    margin: 0 0 22px;
    padding-bottom: 26px;
}
.idm-profile-role {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1.12rem;
    line-height: 1.45;
    margin: 0;
    max-width: 60ch;
}

/* The bio reads as an article, not as a centred page. */
.idm-profile-v2 .idm-profile-body {
    width: 100%;
    max-width: 100%;
    margin: 0;
}
.idm-profile-v2 .idm-profile-body,
.idm-profile-v2 .idm-profile-body p,
.idm-profile-v2 .idm-profile-body li {
    font-family: var(--idm-sans, sans-serif);
    font-size: 1.06rem;
    line-height: 1.7;
}
.idm-profile-v2 .idm-profile-body p { margin: 0 0 1.1em; }
.idm-profile-v2 .idm-profile-body p:last-child { margin-bottom: 0; }

/* Portrait rail */
.idm-profile-portrait { margin: 0 0 40px; }
.idm-profile-portrait img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}
.idm-profile-rail__title {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 0;
    padding-bottom: 12px;
}
.idm-profile-interests__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.idm-profile-interests__list li {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    line-height: 1.4;
    padding: 15px 0;
    border-bottom: 1px solid var(--idm-line);
}

/* Sections below */
.idm-profile-v2 .idm-author-events,
.idm-profile-v2 .idm-author-publications,
.idm-profile-v2 .idm-author-articles { margin-top: 64px; }

.idm-profile-pub-list { list-style: none; margin: 0; padding: 0; }
.idm-profile-pub-list li {
    font-family: var(--idm-sans, sans-serif);
    padding: 16px 0;
    border-bottom: 1px solid var(--idm-line);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: space-between;
}
.idm-profile-pub-list a { color: inherit; font-weight: 700; text-decoration: none; }
.idm-profile-pub-list a:hover { text-decoration: underline; }
.idm-profile-pub-list span { opacity: var(--idm-dim); font-size: .9rem; }

@media (max-width: 1100px) {
    .idm-profile-v2 .idm-profile-layout { gap: 48px; }
}
@media (max-width: 820px) {
    .idm-profile-v2 .idm-profile-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .idm-profile-rail { order: -1; }
    .idm-profile-portrait { max-width: 320px; margin-bottom: 28px; }
    .idm-profile-head { margin-bottom: 36px; }
    .idm-profile-v2 .idm-author-events,
    .idm-profile-v2 .idm-author-publications,
    .idm-profile-v2 .idm-author-articles { margin-top: 48px; }
}

/* ================================================================
   PUBLICATIONS — world-map region filter
   ================================================================ */
.idm-region-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: center;
    margin: 8px 0 40px;
    padding: 22px 26px;
    border: 1px solid var(--idm-line);
}
/* Capped so the map never dominates the page vertically; the drawing keeps
   its proportions and simply stops growing. */
/* No auto margins here: they would make this a shrink-to-fit box, and an
   inline SVG's intrinsic width is only 300px, which collapsed the map. */
.idm-region-filter__map { min-width: 0; max-width: 660px; }
.idm-map__svg { width: 100%; height: auto; display: block; }
.idm-map__sphere { fill: none; stroke: var(--idm-ink); stroke-width: 1; }
.idm-map__region path {
    fill: #e3e3e1;
    stroke: var(--idm-ink);
    stroke-width: .45;
    stroke-linejoin: round;
    transition: fill .12s ease;
}
.idm-map__region { cursor: pointer; outline: none; }
.idm-map__region:hover path,
.idm-map__region.is-hover path,
.idm-map__region.is-active path { fill: var(--idm-ink); }
.idm-map__region:focus-visible path { fill: var(--idm-ink); }
/* When a region is chosen, the rest recede */
.idm-region-filter.is-filtered .idm-map__region:not(.is-active) path { fill: #ececea; }
.idm-region-filter.is-filtered .idm-map__region:not(.is-active):hover path,
.idm-region-filter.is-filtered .idm-map__region.is-hover path { fill: #9a9a96; }

.idm-region-filter__label {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--idm-ink);
    margin: 0 0 18px;
}
.idm-region-filter__list { list-style: none; margin: 0; padding: 0; }
.idm-region-filter__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-family: var(--idm-serif, serif);
    font-size: 1.22rem;
    line-height: 1.22;
    color: var(--idm-ink);
    text-decoration: none;
    transition: color .12s ease;
}
.idm-region-filter__item:hover,
.idm-region-filter__item.is-hover { color: var(--idm-burgundy, var(--idm-burgundy)); text-decoration: none; }
.idm-region-filter__item.is-active { color: var(--idm-burgundy, var(--idm-burgundy)); font-weight: 700; }
.idm-region-filter__count {
    font-family: var(--idm-sans, sans-serif);
    font-size: .76rem;
    font-weight: 700;
    opacity: var(--idm-dim-more);
    flex: 0 0 auto;
}
.idm-region-filter__item.is-empty { opacity: var(--idm-dim-more); }
.idm-region-filter__clear { margin: 18px 0 0; }
.idm-region-filter__clear a {
    font-family: var(--idm-sans, sans-serif);
    font-size: .84rem;
    font-weight: 700;
    color: var(--idm-burgundy, var(--idm-burgundy));
    text-decoration: none;
}
.idm-region-filter__clear a:hover { text-decoration: underline; }

@media (max-width: 980px) {
    .idm-region-filter { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; }
    .idm-region-filter__item { font-size: 1.08rem; padding: 10px 0; border-bottom: 1px solid var(--idm-line); }
}
@media (max-width: 600px) {
    .idm-region-filter { padding: 16px; margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .idm-map__region path, .idm-region-filter__item { transition: none; }
}

/* ================================================================
   POLLS — one-off polls: a custom link and a yes/no bar in place of
   the working-group chart.
   ================================================================ */
.idm-poll__link {
    margin: 0 0 20px;
    font-family: var(--idm-sans, sans-serif);
}
.idm-poll__link a {
    display: inline-block;
    font-size: .9rem;
    font-weight: 700;
    padding: 11px 18px;
    border: 1.5px solid var(--idm-ink);
    color: var(--idm-ink);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.idm-poll__link a:hover { background: var(--idm-ink); color: var(--idm-bg); text-decoration: none; }

.idm-poll__split {
    display: flex;
    height: 14px;
    background: var(--idm-fill-strong);
    overflow: hidden;
    margin: 6px 0 12px;
}
.idm-poll__split-yes { display: block; background: var(--idm-burgundy, var(--idm-burgundy)); height: 100%; }
.idm-poll__split-key {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin: 0;
    font-family: var(--idm-sans, sans-serif);
    font-size: .88rem;
}
.idm-poll__split-key span { display: inline-flex; align-items: center; gap: 8px; }
.idm-poll__split-key em {
    width: 11px; height: 11px;
    background: var(--idm-burgundy, var(--idm-burgundy));
    display: inline-block;
}
.idm-poll__split-key em.is-no { background: var(--idm-fill-strong); }

.idm-poll-admin-kind {
    font-family: var(--idm-sans, sans-serif);
    font-size: .9rem;
    margin: 0 0 8px;
}
.idm-poll-admin-kind span { opacity: var(--idm-dim); }

/* ================================================================
   POLLS — several can run at once
   ================================================================ */
.idm-poll-list { display: flex; flex-direction: column; gap: 0; }
.idm-poll-list .idm-poll + .idm-poll {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid var(--idm-line);
}
.idm-poll__title {
    font-family: var(--idm-serif, serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 16px;
}
.idm-poll-list__all { margin: 28px 0 0; }
.idm-poll-list__all a {
    font-family: var(--idm-sans, sans-serif);
    font-size: .88rem;
    font-weight: 700;
    color: var(--idm-burgundy, var(--idm-burgundy));
    text-decoration: none;
}
.idm-poll-list__all a:hover { text-decoration: underline; }

/* Admin: one card per open poll */
.idm-poll-admin-current + .idm-poll-admin-current { margin-top: 26px; }
.idm-poll-admin-share { margin: 14px 0 0; }
.idm-poll-admin-share label {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: var(--idm-dim-more);
    margin-bottom: 6px;
}
.idm-poll-admin-share input {
    width: 100%;
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    padding: 9px 11px;
    border: 1px solid var(--idm-line-strong);
    background: var(--idm-fill);
}
.idm-poll-admin-actions { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; }
.idm-poll-admin-actions .idm-signup-button { margin-top: 0; }

.idm-quick-poll-item + .idm-quick-poll-item {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--idm-line);
}

/* The quiet line pointing at any one-off polls open alongside the weekly one */
.idm-poll-list__other {
    margin: 26px 0 0;
    font-family: var(--idm-sans, sans-serif);
    font-size: .88rem;
}
.idm-poll-list__other span {
    font-weight: 700;
    opacity: var(--idm-dim-more);
    margin-right: 6px;
}
.idm-poll-list__other a { color: var(--idm-burgundy, var(--idm-burgundy)); text-decoration: none; font-weight: 600; }
.idm-poll-list__other a:hover { text-decoration: underline; }
.idm-poll-list__other em { font-style: normal; opacity: var(--idm-dim-most); margin: 0 4px; }

/* Working-group chips: the tick is the browser's own checkbox */
.idm-area-chip { position: relative; }
.idm-area-chip:focus-within { border-color: var(--idm-ink); outline: 2px solid var(--idm-ink); outline-offset: 2px; }

/* Contact page: one message to the whole board */
.idm-contact-board-all {
    margin: 28px 0 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.idm-contact-board-all .idm-signup-button { margin-top: 0; }
.idm-contact-board-all__note {
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    opacity: var(--idm-dim);
}

/* ================================================================
   IMPRINT
   ================================================================ */
.idm-imprint { max-width: 760px; }
.idm-imprint__list { margin: 0 0 36px; padding: 0; }
.idm-imprint__row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--idm-line);
}
.idm-imprint__row dt {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: var(--idm-dim-more);
    margin: 0;
}
.idm-imprint__row dd {
    font-family: var(--idm-sans, sans-serif);
    font-size: .98rem;
    line-height: 1.55;
    margin: 0;
}
.idm-imprint__heading {
    font-family: var(--idm-serif, serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 36px 0 12px;
}
.idm-imprint p {
    font-family: var(--idm-sans, sans-serif);
    font-size: .98rem;
    line-height: 1.7;
    margin: 0 0 14px;
    max-width: 68ch;
}
@media (max-width: 640px) {
    .idm-imprint__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ================================================================
   SOCIAL EVENTS
   ================================================================ */
.idm-calendar-group--social {
    border-top: 1px solid var(--idm-line);
    padding-top: 34px;
}
.idm-calendar-group__note {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    opacity: var(--idm-dim);
    margin: -10px 0 22px;
}
.idm-calendar-subheading {
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: var(--idm-dim-more);
    margin: 32px 0 12px;
}
.idm-event-social-tag {
    display: inline-block;
    font-family: var(--idm-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 9px 4px;
    line-height: 1;
    border: 1.5px solid var(--idm-burgundy, var(--idm-burgundy));
    color: var(--idm-burgundy, var(--idm-burgundy));
    margin-bottom: 16px;
}

/* =====================================================================
   FORMS — the builder, the list, the picker, and the public form
   ===================================================================== */

/* ---- The list of forms on the Polls & Forms page ---- */
.idm-forms-list{display:grid;gap:18px;margin-top:18px;}
.idm-forms-list__item{border:1px solid var(--idm-line);padding:20px 22px;background:var(--idm-bg);}
.idm-forms-list__head{margin:0 0 6px;font-family:var(--idm-serif);font-size:1.08rem;}
.idm-forms-list__state{display:inline-block;margin-left:8px;padding:2px 9px;font-family:var(--idm-sans);
  font-size:0.8rem;vertical-align:middle;}
.idm-forms-list__state--open{background:var(--idm-burgundy);color: var(--idm-on-brand);}
.idm-forms-list__state--closed{background:var(--idm-fill-strong);color:var(--idm-ink);}
.idm-forms-list__meta{margin:0 0 12px;font-family:var(--idm-sans);font-size:.84rem;opacity: var(--idm-dim);}
.idm-forms-list__link{margin:0 0 12px;}
.idm-forms-list__link label{display:block;font-family:var(--idm-sans);font-size:0.8rem;opacity: var(--idm-dim);margin-bottom:4px;}
.idm-forms-list__link input{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem;}
.idm-forms-list__actions,.idm-forms-list__form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px;}
.idm-forms-list__form{margin-bottom:0;}
.idm-forms-list__responses{margin-top:14px;}
.idm-forms-list__responses summary{cursor:pointer;font-family:var(--idm-sans);font-size:.84rem;
  letter-spacing:.04em;padding:6px 0;}

/* ---- The field builder ---- */
.idm-form-builder{display:grid;gap:14px;margin:14px 0 18px;}
.idm-form-builder__row{display:grid;gap:10px 16px;padding:16px 18px;border:1px solid var(--idm-line);
  background:var(--idm-fill);
  grid-template-columns:90px minmax(0,2fr) minmax(0,1fr);
  grid-template-areas:"order label type" "options options help" "req req req";}
.idm-form-builder__row>p{margin:0;}
.idm-form-builder__order{grid-area:order;}
.idm-form-builder__label{grid-area:label;}
.idm-form-builder__type{grid-area:type;}
.idm-form-builder__options{grid-area:options;}
.idm-form-builder__help{grid-area:help;}
.idm-form-builder__req{grid-area:req;}
.idm-form-builder__row label{font-family:var(--idm-sans);font-size:0.8rem;opacity: var(--idm-dim);}
.idm-form-builder__req label{text-transform:none;letter-spacing:0;font-size:.9rem;opacity:1;}

/* ---- The picker shown inside the event and article editors ---- */
.idm-form-picker{margin-top:18px;}
.idm-form-picker__modes{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:4px;}
.idm-form-picker__panel{margin-top:12px;padding-top:12px;border-top:1px solid var(--idm-line);}
.idm-form-picker__panel>p:first-child{margin-top:0;}

/* ---- The public form ---- */
.idm-public-form{max-width:640px;margin:0 auto;}
.idm-public-form .idm-form-field{margin-bottom:20px;}
.idm-public-form label{font-family:var(--idm-sans);}
.idm-public-form .idm-form-req{color:var(--idm-accent);margin-left:2px;}
.idm-public-form .idm-form-help{display:block;margin-top:5px;font-size:.82rem;opacity: var(--idm-dim);}
/* A grid rather than a wrapping row: short options pair up, long ones
   take a line of their own, and nothing ends up half on one line. */
.idm-public-form .idm-form-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 22px;margin-top:6px;}
@media (max-width:600px){.idm-public-form .idm-form-choices{grid-template-columns:1fr;}}
.idm-public-form .idm-form-choices .idm-toggle-label{text-transform:none;letter-spacing:0;}
.idm-public-form .idm-form-consent{margin:22px 0;}
.idm-public-form .idm-form-consent .idm-toggle-label{align-items:flex-start;line-height:1.45;}

/* The call to action under an article that carries a form. */
.idm-article-form-cta{margin:36px 0 0;}

@media (max-width:720px){
  .idm-form-builder__row{grid-template-columns:1fr;
    grid-template-areas:"label" "type" "options" "help" "order" "req";}
  .idm-forms-list__item{padding:16px 16px;}
  .idm-form-picker__modes{flex-direction:column;gap:6px;}
}

/* =====================================================================
   NATIVE TICK BOXES AND RADIOS
   The inherited css/style_1.css strips every checkbox and radio
   (-webkit-appearance:none), makes it a 1.5rem circle, and then paints
   the checked state with an ::before pseudo-element. Browsers other than
   Chrome do not render ::before on an <input>, so on Safari the control
   lost its mark entirely — an empty circle that never changed when
   clicked, on the membership form and everywhere else.
   Hand the controls back to the browser. This file is enqueued last, so
   an equal-specificity rule here wins; the scoped rules further down
   repeat the reset so the theme's own controls hold even if that order
   ever changes.
   ===================================================================== */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    min-width: 0;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 0;
    background: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
    position: static;
    outline: revert;
    accent-color: var(--idm-ink);
    cursor: pointer;
}
input[type="checkbox"]::before,
input[type="radio"]::before,
input[type="checkbox"]::after,
input[type="radio"]::after { content: none; display: none; }

/* The same reset, scoped, so these never depend on stylesheet order. */
.idm-area-chip input[type="checkbox"],
.idm-toggle-label input[type="checkbox"],
.idm-checkbox-option input[type="checkbox"],
.idm-public-form input[type="checkbox"],
.idm-public-form input[type="radio"],
.idm-form-picker input[type="radio"],
.idm-form-builder input[type="checkbox"] {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
    position: static;
    accent-color: var(--idm-ink);
    cursor: pointer;
}
.idm-area-chip input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   A tick box and its text are one row.
   style.css carries ".idm-membership-form label{display:block}" and the
   editor block above carries ".idm-editor-form label{display:block}" —
   both (0,2,0), so they outrank .idm-area-chip and .idm-toggle-label and
   flatten every control that pairs a box with its label. Naming the
   element as well as the class wins the match back.
   --------------------------------------------------------------------- */
.idm-membership-form label.idm-area-chip,
.idm-areas-options label.idm-area-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    font-weight: 600;
}
.idm-editor-form label.idm-toggle-label,
.idm-editor-form label.idm-checkbox-option,
.idm-membership-form label.idm-toggle-label,
.idm-public-form label.idm-toggle-label,
.idm-form-picker label.idm-toggle-label,
.idm-form-builder label.idm-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    font-weight: 600;
}
/* A consent sentence wraps, so its box sits with the first line. */
.idm-public-form .idm-form-consent label.idm-toggle-label { align-items: flex-start; }

/* =====================================================================
   TAGS AND CHIPS
   There were seven near-identical variants with different sizes,
   weights, paddings and tracking — plus four more in CSS that no
   template emitted any more. Two components now: a TAG labels
   something, a CHIP is pressable. Both are square, both sit on the
   sans scale, neither shouts in capitals.
   ===================================================================== */
.idm-tag,
.idm-byline__badge,
.idm-event-social-tag,
.idm-forms-list__state {
    display: inline-block;
    padding: 3px 9px;
    font-family: var(--idm-sans, sans-serif);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    border: 1px solid var(--idm-line);
    border-radius: 0;
    background: none;
    color: inherit;
    white-space: nowrap;
    vertical-align: middle;
}
/* Solid is for the one label worth emphasising in a given view. */
.idm-tag--solid,
.idm-byline__badge,
.idm-forms-list__state--open {
    background: var(--idm-burgundy, var(--idm-burgundy));
    border-color: var(--idm-burgundy, var(--idm-burgundy));
    color: var(--idm-on-brand);
}
.idm-forms-list__state--closed { background: none; color: inherit; opacity: var(--idm-dim); }
.idm-event-social-tag { border-color: var(--idm-accent); color: var(--idm-accent); }

.idm-chip,
.idm-filter-chip,
.idm-quick-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-family: var(--idm-sans, sans-serif);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    border: 1px solid var(--idm-line);
    border-radius: 0;
    background: var(--idm-bg);
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.idm-chip:hover, .idm-chip.is-active,
.idm-filter-chip:hover, .idm-filter-chip.is-active,
.idm-quick-chip:hover {
    background: var(--idm-ink);
    border-color: var(--idm-ink);
    color: var(--idm-bg);
    text-decoration: none;
}

/* The theme is square: the one pill-shaped button was the odd one out. */

/* =====================================================================
   MOTION
   Only where it tells the reader something: that a panel came from the
   control they pressed, that a press registered, that a save worked,
   that a list is the result of their filter. Nothing animates on scroll
   and nothing bounces.
   ===================================================================== */
:root {
    --idm-in:        190ms;   /* entrances */
    --idm-out:       150ms;   /* exits, about 20% shorter */
    --idm-press:      90ms;
    --idm-ease-out:  cubic-bezier(.16, .84, .44, 1);  /* things arriving */
    --idm-ease:      cubic-bezier(.4, 0, .2, 1);      /* things already on screen */
    --idm-stagger:    30ms;
}/* ---- A press should register in the hand ---- */
.idm-signup-button,
.idm-chip,
.idm-filter-chip,
.idm-quick-chip,
.idm-rowbtn,
.idm-menu-toggle,
.idm-pub-btn,
.idm-area-chip {
    transition: background var(--idm-out) var(--idm-ease),
                border-color var(--idm-out) var(--idm-ease),
                color var(--idm-out) var(--idm-ease),
                transform var(--idm-press) var(--idm-ease);
}
.idm-signup-button:active,
.idm-chip:active, .idm-filter-chip:active, .idm-quick-chip:active,
.idm-rowbtn:active, .idm-menu-toggle:active, .idm-darkmode-toggle:active,
.idm-pub-btn:active { transform: scale(.97); }
/* The chip is a label for a tick box; it should give, not shrink away. */
.idm-area-chip:active { transform: scale(.99); }

/* ---- Disclosures: open from the summary, not the middle ---- */
details > :not(summary) { transform-origin: top center; }
details[open] > :not(summary) {
    animation: idm-disclose var(--idm-in) var(--idm-ease-out) both;
}
@keyframes idm-disclose {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* ---- The form picker's panel belongs to the radio above it ---- */
.idm-form-picker__panel { transform-origin: top left; }
.idm-form-picker__panel.is-entering {
    animation: idm-panel-in var(--idm-in) var(--idm-ease-out) both;
}
@keyframes idm-panel-in {
    from { opacity: 0; transform: scale(.98) translateY(-5px); }
    to   { opacity: 1; transform: none; }
}

/* ---- The mobile menu comes out of its button, top right ---- */
@media (max-width: 900px) {
    .idm-primary-nav { transform-origin: top right; }
    .idm-primary-nav.is-open  { animation: idm-pop-in  var(--idm-in)  var(--idm-ease-out) both; }
    .idm-primary-nav.is-closing {
        display: block;
        animation: idm-pop-out var(--idm-out) var(--idm-ease) both;
        pointer-events: none;
    }
}
@keyframes idm-pop-in {
    from { opacity: 0; transform: scale(.95) translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
@keyframes idm-pop-out {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: scale(.96) translateY(-4px); }
}

/* ---- Confirming that something worked ---- */
.idm-form-success,
.idm-pulse { animation: idm-pulse 460ms var(--idm-ease) both; }
@keyframes idm-pulse {
    0%   { opacity: 0; transform: scale(.985); }
    45%  { opacity: 1; transform: scale(1.012); }
    100% { opacity: 1; transform: none; }
}

/* ---- Poll results arrive as a reveal, not a growing box ---- */
.idm-poll__bar-fill {
    transition: width 420ms var(--idm-ease);
    animation: idm-bar-reveal 520ms var(--idm-ease) both;
}
@keyframes idm-bar-reveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

/* ---- A results list settles row by row ---- */
.idm-calendar-list .idm-calendar-item,
.idm-post-grid > li,
.idm-pubcard-grid > * {
    animation: idm-row-in var(--idm-in) var(--idm-ease-out) both;
}
@keyframes idm-row-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: none; }
}
.idm-calendar-list .idm-calendar-item:nth-child(1),.idm-post-grid > li:nth-child(1),.idm-pubcard-grid > :nth-child(1){animation-delay:0ms;}
.idm-calendar-list .idm-calendar-item:nth-child(2),.idm-post-grid > li:nth-child(2),.idm-pubcard-grid > :nth-child(2){animation-delay:30ms;}
.idm-calendar-list .idm-calendar-item:nth-child(3),.idm-post-grid > li:nth-child(3),.idm-pubcard-grid > :nth-child(3){animation-delay:60ms;}
.idm-calendar-list .idm-calendar-item:nth-child(4),.idm-post-grid > li:nth-child(4),.idm-pubcard-grid > :nth-child(4){animation-delay:90ms;}
.idm-calendar-list .idm-calendar-item:nth-child(5),.idm-post-grid > li:nth-child(5),.idm-pubcard-grid > :nth-child(5){animation-delay:120ms;}
.idm-calendar-list .idm-calendar-item:nth-child(6),.idm-post-grid > li:nth-child(6),.idm-pubcard-grid > :nth-child(6){animation-delay:150ms;}
.idm-calendar-list .idm-calendar-item:nth-child(7),.idm-post-grid > li:nth-child(7),.idm-pubcard-grid > :nth-child(7){animation-delay:180ms;}
.idm-calendar-list .idm-calendar-item:nth-child(8),.idm-post-grid > li:nth-child(8),.idm-pubcard-grid > :nth-child(8){animation-delay:210ms;}
/* Past the eighth row the stagger stops being information. */
.idm-calendar-list .idm-calendar-item:nth-child(n+9),.idm-post-grid > li:nth-child(n+9),.idm-pubcard-grid > :nth-child(n+9){animation-delay:240ms;}.idm-mobile-darkmode .idm-dm-sun,
.idm-mobile-darkmode .idm-dm-moon {
    display: block !important;
    grid-area: 1 / 1;
    transition: opacity var(--idm-in) var(--idm-ease-out),
                transform var(--idm-in) var(--idm-ease-out),
                filter var(--idm-in) var(--idm-ease-out);
}
.idm-darkmode-toggle .idm-dm-moon,
html.idm-dark .idm-darkmode-toggle .idm-dm-sun {
    opacity: 0; transform: scale(.8); filter: blur(2px);
}
.idm-darkmode-toggle .idm-dm-sun,
html.idm-dark .idm-darkmode-toggle .idm-dm-moon {
    opacity: 1; transform: none; filter: none;
}

/* ---- Honour the system setting ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
    .idm-signup-button:active, .idm-chip:active, .idm-filter-chip:active,
    .idm-quick-chip:active, .idm-rowbtn:active, .idm-pub-btn:active { transform: none; }
}

/* =====================================================================
   OVERVIEW TABLES
   One line per person. A long answer shows its opening words and opens
   underneath on a click, so one verbose reply cannot make every row
   tall and the table stays scannable.
   ===================================================================== */
/* style_1.css sizes every <table> with !important, so this needs it too. */
.idm-forms-table { font-size: .86rem !important; }
.idm-forms-table th { font-size: .78rem !important; }
.idm-forms-table .idm-row-actions .idm-rowbtn { font-size: .74rem !important; }
.idm-forms-table tbody tr.idm-row-main:hover td { background: var(--idm-fill); }

.idm-cell--long { max-width: 22rem; }
.idm-cell-open {
    display: block;
    width: 100%;
    max-width: 22rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-bottom: 1px dotted var(--idm-line-strong);
}
.idm-cell-open:hover { color: var(--idm-burgundy, var(--idm-burgundy)); border-bottom-color: currentColor; }
.idm-cell-open[aria-expanded="true"] { color: var(--idm-burgundy, var(--idm-burgundy)); }

.idm-row-detail > td {
    white-space: normal;
    background: var(--idm-fill);
    padding: 14px 16px 18px;
}
.idm-row-detail__body { max-width: 62ch; }
.idm-row-detail__label {
    margin: 12px 0 2px;
    font-family: var(--idm-sans, sans-serif);
    font-size: .76rem;
    font-weight: 700;
    opacity: var(--idm-dim);
}
.idm-row-detail__body > .idm-row-detail__label:first-child { margin-top: 0; }
.idm-row-detail__text { margin: 0; line-height: 1.55; white-space: normal; }

/* The actions column should not stretch the row. display:flex on a <td>
   made the buttons stack, which set the height of every row. */
/* .idm-row-actions is display:flex further up, which makes the cell a
   flex container and blockifies the buttons, stacking them and setting
   the height of every row. Inside a table it stays a plain cell. */
.idm-forms-table td.idm-row-actions {
    display: table-cell;
    white-space: nowrap;
    text-align: right;
    width: 1%;
}
.idm-forms-table .idm-row-actions .idm-rowbtn {
    display: inline-block;
    padding: 2px 7px;
    margin: 0 0 0 4px;
    font-size: .74rem;
    line-height: 1.5;
}
.idm-forms-table .idm-row-actions .idm-rowbtn:first-child { margin-left: 0; }
.idm-check-col { width: 1%; }

/* =====================================================================
   COLLAPSED SECTIONS
   Everything long in the editor folds away, so the page opens as an
   index rather than a wall of tables.
   ===================================================================== */
.idm-collapse { border-bottom: 1px solid var(--idm-line); }
.idm-collapse__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 2px;
    cursor: pointer;
    list-style: none;
    font-family: var(--idm-serif, serif);
    font-size: 1.15rem;
}
.idm-collapse__summary::-webkit-details-marker { display: none; }
.idm-collapse__summary::before {
    content: "";
    flex: 0 0 auto;
    width: 7px; height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform var(--idm-in, 190ms) var(--idm-ease, ease);
}
.idm-collapse[open] > .idm-collapse__summary::before { transform: rotate(45deg); }
.idm-collapse__summary:hover { color: var(--idm-burgundy, var(--idm-burgundy)); }
.idm-collapse__title { flex: 1 1 auto; }
.idm-collapse__body { padding: 4px 0 28px; }

/* ---- The bar of actions above a selectable table ---- */
.idm-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}
.idm-bulk-bar__label {
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    opacity: var(--idm-dim);
    margin-right: 2px;
}

/* ---- Who to write to ---- */
.idm-audience-rows { display: grid; gap: 10px; }
.idm-audience-note { font-weight: 400; opacity: var(--idm-dim); }
.idm-alumni-note { margin-top: -6px; }

@media (max-width: 720px) {
    .idm-cell--long, .idm-cell-open { max-width: 12rem; }
    .idm-collapse__summary { font-size: 1.02rem; padding: 14px 2px; }
}

/* =====================================================================
   CALENDAR ENTRIES
   Bigger titles, and the whole entry is the link: a stretched anchor
   over the article, so the title stays the real, keyboard-reachable
   link and nothing needs JavaScript.
   ===================================================================== */
.idm-calendar-item { position: relative; }
.idm-calendar-item__title { font-size: clamp(1.9rem, 2.6vw, 2.75rem) !important; line-height: 1.04; }
.idm-calendar-item__title.idm-title--long { font-size: clamp(1.45rem, 1.9vw, 2.05rem) !important; line-height: 1.12; }
.idm-calendar-item__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.idm-calendar-item__title a:hover { text-decoration: none; }
.idm-calendar-item:hover .idm-calendar-item__title,
.idm-calendar-item:focus-within .idm-calendar-item__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
/* Anything genuinely clickable inside the row has to sit above the sheet. */
.idm-calendar-item a:not(.idm-calendar-item__title a),
.idm-calendar-item button,
.idm-calendar-item .idm-event-social-tag { position: relative; z-index: 2; }

@media (max-width: 720px) {
    .idm-calendar-item__title { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
}

/* =====================================================================
   LANDING PAGE SPACING
   Publications and Past Speakers sat a full section apart twice over —
   the publications block's bottom margin plus the speakers' top
   padding. One gap is enough.
   ===================================================================== */
.idm-home-publications { margin-bottom: 24px; padding-bottom: 0; }
.idm-home-publications + .idm-speakers-section,
.idm-speakers-section { padding-top: 24px; }

/* =====================================================================
   NO HORIZONTAL OVERFLOW
   A wide table used to push the whole page sideways. The page itself
   never scrolls across now; the table scrolls inside its own frame.
   ===================================================================== */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }

.idm-forms-table-wrap,
.idm-forms-table-wrap > div,
.idm-collapse__body { max-width: 100%; }

.idm-forms-table-wrap > div[style*="overflow-x"],
.idm-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* A hint at the edges that there is more table to the side. The
       first two fade with the content, the last two stay put, so a
       shadow shows only on the side there is still table to reach. */
    background:
        linear-gradient(to right, var(--idm-bg, var(--idm-bg)) 30%, rgba(255,255,255,0)) left center / 28px 100% no-repeat,
        linear-gradient(to left,  var(--idm-bg, var(--idm-bg)) 30%, rgba(255,255,255,0)) right center / 28px 100% no-repeat,
        linear-gradient(to right, var(--idm-line), rgba(0,0,0,0)) left center / 10px 100% no-repeat,
        linear-gradient(to left,  var(--idm-line), rgba(0,0,0,0)) right center / 10px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
    /* A thumb worth grabbing on a trackpad or a touch screen. */
    scrollbar-color: var(--idm-line) transparent;
}
.idm-table-scroll::-webkit-scrollbar { height: 10px; }
.idm-table-scroll::-webkit-scrollbar-thumb {
    background: var(--idm-line);
    border-radius: 6px;
}
.idm-table-scroll::-webkit-scrollbar-thumb:hover { background: var(--idm-fill-strong, #b9b3aa); }

/* Wide enough that the columns stay readable, narrow enough that the
   whole table is two swipes on a phone rather than twenty. Cells wrap:
   max-content made one long answer stretch the table past 7000px. */
.idm-forms-table { min-width: 680px; }
.idm-forms-table td, .idm-forms-table th { overflow-wrap: anywhere; }
.idm-forms-table td.idm-row-actions, .idm-forms-table th:last-child { white-space: nowrap; }

/* Said once, under the first table a page shows. */
.idm-table-hint {
    display: none;
    font-family: var(--idm-sans, sans-serif);
    font-size: .78rem;
    opacity: var(--idm-dim);
    margin: 6px 0 0;
}
.idm-table-scroll.is-scrollable + .idm-table-hint { display: block; }

/* Anything else wide enough to push the page sideways stays in its lane. */
.idm-row-detail__body, .entry-content pre, .entry-content table { max-width: 100%; }
.entry-content pre { overflow-x: auto; }
.entry-content img, .idm-single-content img { max-width: 100%; height: auto; }

/* =====================================================================
   VIDEO BANNER
   A silent loop with a headline over it. The still frame holds the
   space, so nothing shifts when the video arrives — and if it never
   arrives, the banner still reads correctly.
   ===================================================================== */
.idm-video-banner {
    position: relative;
    display: grid;
    align-items: end;
    margin: var(--idm-section-space, 72px) 0;
    overflow: hidden;
    background: var(--idm-ink);
    isolation: isolate;
}
.idm-video-banner__media,
.idm-video-banner__copy { grid-area: 1 / 1; }

/* The frame is 16:9. The aspect ratio lives on the media, so a long
   headline on a narrow screen makes the section grow rather than
   squashing the picture out of shape. */
.idm-video-banner__media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 100%;
    min-height: 100%;
}
.idm-video-banner__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* The still frame is the poster until the loop starts. */
    background-size: cover;
    background-position: center;
}
/* Two gradients, because the copy sits bottom-left: one up from the
   foot, one in from the left. Keeps the headline readable whatever is
   happening in the footage. */
.idm-video-banner__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,   rgba(0,0,0,.78) 0%, rgba(0,0,0,.30) 48%, rgba(0,0,0,.06) 100%),
        linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 46%, rgba(0,0,0,0) 72%);
}

.idm-video-banner__copy {
    position: relative;
    z-index: 1;
    align-self: end;
    max-width: 44ch;
    padding: clamp(24px, 4vw, 56px);
    color: var(--idm-on-brand);
}
.idm-video-banner__title {
    margin: 0;
    font-family: var(--idm-serif, serif);
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.06;
    color: var(--idm-on-brand);
}
.idm-video-banner__text {
    margin: 14px 0 0;
    font-family: var(--idm-sans, sans-serif);
    font-size: clamp(.98rem, 1.4vw, 1.12rem);
    line-height: 1.5;
    color: var(--idm-on-brand);
}
.idm-video-banner__cta { margin: 22px 0 0; }
.idm-video-banner__cta .idm-signup-button {
    background: var(--idm-bg);
    border-color: var(--idm-bg);
    color: var(--idm-ink);
}
.idm-video-banner__cta .idm-signup-button:hover {
    background: transparent;
    color: var(--idm-bg);
    border-color: var(--idm-bg);
}

/* In the editor it sits inside the page, not across it. */
.idm-video-banner-preview .idm-video-banner { margin-top: 12px; min-height: 240px; }

/* Below about 700px a 16:9 frame is only ~220px tall, which is not
   enough room for a headline, a line of text and a button on top of
   it. The picture keeps its shape and the words move underneath. */
@media (max-width: 700px) {
    .idm-video-banner {
        display: block;
        margin: 40px 0;
        /* Only the picture is dark; the words sit on the page itself
           rather than in a black panel under it. */
        background: none;
        overflow: visible;
    }
    .idm-video-banner__media { aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; background: var(--idm-ink); }
    /* Nothing is written over the picture here, so it needs no scrim. */
    .idm-video-banner__scrim { display: none; }
    .idm-video-banner__copy {
        max-width: none;
        padding: 18px 16px 0;
        color: var(--idm-ink);
    }
    .idm-video-banner__title { font-size: clamp(1.5rem, 7vw, 2.1rem); color: var(--idm-ink); margin-bottom: 8px; }
    .idm-video-banner__text  { color: var(--idm-ink); margin-bottom: 0; }
    /* The button belongs to the sentence above it, not to the next
       section, so it sits close to it. */
    .idm-video-banner__cta   { margin-top: 10px; }
    .idm-video-banner__cta .idm-signup-button {
        background: var(--idm-bg);
        border-color: var(--idm-ink);
        color: var(--idm-ink);
    }
    .idm-video-banner__cta .idm-signup-button:hover { background: var(--idm-ink); color: var(--idm-bg); }
}

/* ---- A YouTube banner: a picture with a play button until pressed ---- */
.idm-video-banner__still {
    position: absolute;
    inset: 0;
    background-color: var(--idm-ink);
    background-size: cover;
    background-position: center;
}
/* display:grid below would otherwise beat the hidden attribute, which
   is how the button stayed on screen over a video that was playing. */
.idm-video-banner__play[hidden] { display: none; }
.idm-video-banner__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.idm-video-banner__play-icon {
    width: clamp(56px, 7vw, 84px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: grid;
    place-items: center;
    transition: transform var(--idm-in, 190ms) var(--idm-ease-out, ease),
                background var(--idm-in, 190ms) var(--idm-ease, ease);
}
.idm-video-banner__play-icon::after {
    content: "";
    width: 0; height: 0;
    margin-left: 18%;
    border-left: clamp(16px, 2vw, 24px) solid var(--idm-ink);
    border-top: clamp(10px, 1.3vw, 15px) solid transparent;
    border-bottom: clamp(10px, 1.3vw, 15px) solid transparent;
}
.idm-video-banner__play:hover .idm-video-banner__play-icon { background: var(--idm-bg); transform: scale(1.06); }
.idm-video-banner__play:active .idm-video-banner__play-icon { transform: scale(.97); }
.idm-video-banner__play:focus-visible .idm-video-banner__play-icon { outline: 3px solid var(--idm-bg); outline-offset: 4px; }

.idm-video-banner__frame {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    border: 0;
}
/* A video someone pressed play on gets the whole frame: the headline
   would otherwise sit over its controls. A background loop keeps them,
   since it has no controls and is not meant to be watched. */
.idm-video-banner__media.is-playing ~ .idm-video-banner__copy,
.idm-video-banner__media.is-playing .idm-video-banner__scrim { display: none; }

/* The looping player is scenery: it must not swallow clicks meant for
   the button in the copy, and it is cropped to fill like a video would. */
.idm-video-banner__media.is-looping .idm-video-banner__frame {
    pointer-events: none;
    z-index: 1;
    /* An embed letterboxes itself in a frame that is not exactly 16:9;
       overscanning keeps the picture edge to edge. */
    width: 100.5%;
    height: 100.5%;
    left: -0.25%;
    top: -0.25%;
}

/* A banner that is pressed rather than watched passively keeps its copy
   clear of the middle, where the play button sits. */
.idm-video-banner--play .idm-video-banner__copy { pointer-events: none; }
.idm-video-banner--play .idm-video-banner__copy a { pointer-events: auto; }

/* =====================================================================
   EVENT NOTIFICATIONS (the sign-up band above the footer)
   Three separate rules were stacking padding and margin on top of this
   band, so it sat a long way below whatever came before it.
   ===================================================================== */
.idm-newsletter-section {
    margin-top: 0;
    padding-top: .6rem;
}
.idm-newsletter-membersnote {
    margin: 10px 0 0;
    font-family: var(--idm-sans, sans-serif);
    font-size: .88rem;
    line-height: 1.5;
}
@media (max-width: 700px) {
    .idm-newsletter-section { padding-top: .4rem; }
}

/* =====================================================================
   SITE STATISTICS
   Charts drawn as inline SVG: nothing to download, and they print.
   ===================================================================== */
.idm-stat-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--idm-fill-strong);
    border: 1px solid var(--idm-line);
    margin: 18px 0 32px;
}
@media (max-width: 620px) { .idm-stat-tiles { grid-template-columns: 1fr; } }
.idm-stat-tile {
    background: var(--idm-bg);
    padding: 18px 18px 16px;
}
.idm-stat-tile__label {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 8px;
}
.idm-stat-tile__n {
    display: block;
    font-family: var(--idm-serif, serif);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}
.idm-stat-tile__sub,
.idm-stat-tile__cmp {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-size: .8rem;
    margin-top: 6px;
}
.idm-stat-tile__cmp { opacity: var(--idm-dim); }

/* ---- The chart itself ---- */
.idm-chart-block { margin: 0 0 32px; }
.idm-chart-title {
    font-family: var(--idm-sans, sans-serif);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0 0 10px;
}
.idm-chart { margin: 0; }
.idm-chart__plot {
    position: relative;
    border: 1px solid var(--idm-line);
    border-radius: 2px;
    padding: 14px 14px 10px;
    background: var(--idm-bg);
}
.idm-chart__svg {
    display: block;
    width: 100%;
    height: 150px;
    overflow: visible;
}
.idm-chart__bar {
    fill: var(--idm-burgundy, #781717);
    transition: fill var(--idm-in, 190ms) var(--idm-ease-out, ease);
}
.idm-chart__bar:hover { fill: var(--idm-ink); }
.idm-chart__grid {
    stroke: var(--idm-line);
    stroke-width: .25;
    vector-effect: non-scaling-stroke;
}
.idm-chart__max {
    position: absolute;
    top: 6px;
    right: 10px;
    font-family: var(--idm-sans, sans-serif);
    font-size: .7rem;
    opacity: var(--idm-dim);
}
.idm-chart__axis {
    display: flex;
    justify-content: space-between;
    font-family: var(--idm-sans, sans-serif);
    font-size: .74rem;
    opacity: var(--idm-dim);
    margin-top: 6px;
}
.idm-chart-note {
    font-family: var(--idm-sans, sans-serif);
    font-size: .84rem;
    margin: 10px 0 0;
}

/* ---- Years ---- */
.idm-stat-years { display: flex; flex-wrap: wrap; gap: 12px; }
.idm-stat-year {
    border: 1px solid var(--idm-line);
    padding: 14px 18px;
    min-width: 128px;
}
.idm-stat-year__y {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-size: .76rem;
    font-weight: 700;
}
.idm-stat-year__n {
    display: block;
    font-family: var(--idm-serif, serif);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
}
.idm-stat-year__l,
.idm-stat-year__w {
    display: block;
    font-family: var(--idm-sans, sans-serif);
    font-size: .76rem;
    opacity: var(--idm-dim);
}

/* ---- Most read ---- */
.idm-stat-pages { list-style: none; margin: 0; padding: 0; }
.idm-stat-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px auto;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--idm-line-soft);
}
.idm-stat-page:last-child { border-bottom: 0; }
.idm-stat-page__name {
    font-family: var(--idm-sans, sans-serif);
    font-size: .92rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.idm-stat-page__name:hover { text-decoration: underline; }
.idm-stat-page__bar {
    display: block;
    height: 7px;
    background: var(--idm-fill);
    border-radius: 4px;
    overflow: hidden;
}
.idm-stat-page__bar > span {
    display: block;
    height: 100%;
    background: var(--idm-burgundy, #781717);
    border-radius: 4px;
    /* Grows in when the section is opened. */
    animation: idm-bar-grow var(--idm-in, 190ms) var(--idm-ease-out, ease) both;
}
@keyframes idm-bar-grow { from { transform: scaleX(0); transform-origin: left; } to { transform: none; } }
.idm-stat-page__n {
    font-family: var(--idm-sans, sans-serif);
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
@media (max-width: 560px) {
    .idm-stat-page { grid-template-columns: minmax(0, 1fr) auto; }
    .idm-stat-page__bar { grid-column: 1 / -1; order: 3; }
}

.idm-stats-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--idm-line);
}
.idm-stats-switch .idm-signup-button { margin-top: 0; padding: 8px 14px; font-size: .82rem; }

/* ---- The hub's sub-heading inside Technical ---- */
.idm-hub__sub {
    font-family: var(--idm-sans, sans-serif);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 26px 0 12px;
}

/* =====================================================================
   SMALL INTERACTIONS
   Hover states, a link that acknowledges a tap, and the greeting that
   changes language. Everything here is a transform or an opacity, so
   none of it costs a layout.
   ===================================================================== */

/* A link knows it has been clicked while the next page loads. */
a.idm-is-going { opacity: .62; transition: opacity 90ms linear; }

/* The greeting, swapping language. */
.idm-greet-swap { animation: idm-greet 320ms var(--idm-ease-out, cubic-bezier(.16,.84,.44,1)) both; }
@keyframes idm-greet {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: none; }
}

/* Cards and rows lift very slightly rather than jumping. */
.idm-hub-card,
.idm-pubcard,
.idm-post-card,
.idm-calendar-item {
    transition: transform var(--idm-in, 190ms) var(--idm-ease-out, ease),
                border-color var(--idm-in, 190ms) var(--idm-ease-out, ease);
}
.idm-hub-card:hover { transform: translateY(-2px); border-color: var(--idm-line-strong); }

/* The map: a region you are pointing at should answer. */
.idm-map__region { transition: fill 140ms var(--idm-ease-out, ease), opacity 140ms var(--idm-ease-out, ease); }
.idm-map__region:hover { opacity: .82; }

/* Anything with a drawn underline grows it from the side it starts on. */
.idm-stat-page__name,
.idm-footer__link {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size var(--idm-in, 190ms) var(--idm-ease-out, ease);
    text-decoration: none;
}
.idm-stat-page__name:hover,
.idm-stat-page__name:focus-visible,
.idm-footer__link:hover,
.idm-footer__link:focus-visible { background-size: 100% 1px; text-decoration: none; }

/* Somebody who has asked for less movement gets less movement. */
@media (prefers-reduced-motion: reduce) {
    .idm-greet-swap { animation: none; }
    .idm-hub-card:hover { transform: none; }
    a.idm-is-going { opacity: 1; }
}

/* =====================================================================
   RESTORING SETTINGS
   Shown when the theme has been reinstalled into a differently named
   folder and WordPress is reading an empty set of settings.
   ===================================================================== */
.idm-restore-notice {
    border: 1px solid var(--idm-burgundy);
    border-left-width: 4px;
    padding: 18px 20px;
    margin: 0 0 32px;
    background: var(--idm-bad-bg);
}
.idm-restore-notice p {
    font-family: var(--idm-sans, sans-serif);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 0 8px;
}
.idm-restore-notice p:last-child { margin-bottom: 0; }
.idm-restore-table code {
    font-size: .82rem;
    background: var(--idm-fill);
    padding: 2px 6px;
}
.idm-restore-table .is-live > td { background: var(--idm-fill); }
.idm-restore-undo { margin-top: 16px; }
.idm-restore-undo .idm-signup-button { margin-top: 0; padding: 8px 14px; font-size: .82rem; }

/* On a phone the gutter is tighter. */
@media (max-width: 700px) {
    :root { --idm-shell-padding: 16px; }
}

/* =====================================================================
   HEADER BANNER IN THE VIDEO BANNER'S FORMAT
   The carousel was 16:7 with the caption in a strip across the whole
   width; the video banner below it is 16:9 with the words set into the
   lower-left over a soft scrim. Two banners on one page should be the
   same shape. Desktop only — on a phone the existing 4:3 strip reads
   better than an overlay on a small picture.
   ===================================================================== */
@media (min-width: 701px) {
    /* 16:9 made the banner taller than the screen on a laptop. This is
       a band again — the video banner's layout at a shorter height, not
       its shape. The caption keeps the larger size. */
    .idm-carousel {
        aspect-ratio: 21 / 9;
        max-height: 68vh;
        isolation: isolate;
    }
    /* The scrim is its own layer so the caption does not sit on a band
       that stretches the full width of the picture. */
    .idm-carousel__slide.is-active::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            linear-gradient(to top, rgba(0,0,0,.64) 0%, rgba(0,0,0,.28) 34%, rgba(0,0,0,0) 62%),
            linear-gradient(to right, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 52%);
        z-index: 1;
    }
    .idm-carousel__caption {
        right: auto;
        bottom: 0;
        left: 0;
        z-index: 2;
        /* 44ch at this type size is wider than the banner itself, so the
           measure has to be bounded by the picture as well. */
        max-width: min(46ch, 62%);
        padding: clamp(20px, 3.2vw, 44px);
        background: none;
        font-size: clamp(1.5rem, 2.9vw, 2.6rem);
        line-height: 1.08;
        text-wrap: balance;
    }
    /* The dots belong at the opposite corner from the words. */
    .idm-carousel__controls {
        left: auto;
        right: clamp(24px, 4vw, 56px);
        bottom: clamp(22px, 3.4vw, 44px);
        z-index: 3;
    }
}

/* =====================================================================
   EXPORT & COPY MENU
   One button where a row of five used to sit. Built on <details>, so it
   opens with no JavaScript at all and is reachable by keyboard.
   ===================================================================== */
.idm-actions {
    position: relative;
    display: inline-block;
}
.idm-actions__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid var(--idm-ink);
    background: var(--idm-bg);
    color: var(--idm-ink);
    font-family: var(--idm-sans, sans-serif);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--idm-in, 190ms) var(--idm-ease-out, ease),
                color var(--idm-in, 190ms) var(--idm-ease-out, ease);
}
.idm-actions__button::-webkit-details-marker { display: none; }
.idm-actions__button:hover { background: var(--idm-ink); color: var(--idm-bg); }
.idm-actions__button:focus-visible { outline: 2px solid var(--idm-ink); outline-offset: 2px; }
.idm-actions__chev {
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--idm-in, 190ms) var(--idm-ease-out, ease);
}
.idm-actions[open] .idm-actions__chev { transform: rotate(180deg); }

.idm-actions__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    max-width: min(360px, 90vw);
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--idm-line-strong);
    background: var(--idm-bg);
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    /* Opens from the button, not from its own middle. */
    transform-origin: top left;
    animation: idm-menu-in var(--idm-in, 190ms) var(--idm-ease-out, ease) both;
}
.idm-actions--wide .idm-actions__panel { min-width: 300px; }
@keyframes idm-menu-in {
    from { opacity: 0; transform: scale(.96) translateY(-4px); }
    to   { opacity: 1; transform: none; }
}
.idm-actions__heading {
    font-family: var(--idm-sans, sans-serif);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: var(--idm-dim);
    margin: 10px 8px 4px;
}
.idm-actions__heading:first-child { margin-top: 4px; }
.idm-actions__item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 2px 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    background: none;
    color: inherit;
    font-family: var(--idm-sans, sans-serif);
    font-size: .9rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--idm-in, 190ms) var(--idm-ease-out, ease);
}
.idm-actions__item:hover,
.idm-actions__item:focus-visible { background: var(--idm-fill); outline: none; }
.idm-actions__label { font-weight: 600; }
.idm-actions__count {
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    opacity: var(--idm-dim);
}
.idm-actions__note {
    grid-column: 1 / -1;
    font-size: .78rem;
    opacity: var(--idm-dim);
}
.idm-actions__item--danger .idm-actions__label { color: var(--idm-accent); }

/* On a phone the panel is full width under the button. */
@media (max-width: 560px) {
    .idm-actions { display: block; }
    .idm-actions__button { width: 100%; justify-content: space-between; }
    .idm-actions__panel { left: 0; right: 0; min-width: 0; max-width: none; }
}

.idm-copy-row--menu { align-items: flex-start; gap: 12px; }
.idm-copy-row__hint {
    font-family: var(--idm-sans, sans-serif);
    font-size: .8rem;
    opacity: var(--idm-dim);
    align-self: center;
}
@media (prefers-reduced-motion: reduce) {
    .idm-actions__panel { animation: none; }
    .idm-actions__chev { transition: none; }
}

/* =====================================================================
   A PERSON'S NAME IS SET IN ONE FACE
   The author's own page had their name in the serif; the board cards on
   the About page and the byline under an article had it in the sans, so
   the same name looked like two different people depending on where you
   read it. Names follow the serif, as titles do.
   ===================================================================== */
.idm-author-card h3,
.idm-author-card h3 a,
.idm-byline__name,
.idm-byline__name a,
.idm-speaker-name {
    font-family: var(--idm-serif, Georgia, serif) !important;
    letter-spacing: -0.01em;
}
/* The serif reads smaller at the same size, so the weight comes down a
   step and the size up a little to match what was there before. */
.idm-author-card h3 { font-weight: 600; }
.idm-byline__name { font-weight: 600; font-size: 1.08rem; }
.idm-byline--small .idm-byline__name { font-size: .98rem; }
.idm-speaker-name { font-weight: 600; }

/* The role and everything around a name stays in the sans, which is
   what keeps the name itself looking like the name. */
.idm-author-card__role,
.idm-byline__role,
.idm-speaker-title { font-family: var(--idm-sans, sans-serif); }

/* =====================================================================
   THE AUTHOR, UNDER AN ARTICLE
   A heading, a full biography and a link to the author's page made a
   second article at the foot of the first. It is a byline and a line
   about the person now; their name links to the rest.
   ===================================================================== */
.idm-author-note__bio {
    font-size: .9rem;
    line-height: 1.6;
    margin: 8px 0 0;
}

/* =====================================================================
   WHAT GOES IN THE PDF
   A dialog before the download: which columns, and how big the type.
   Uses the browser's own <dialog>, which brings focus handling and
   Escape with it.
   ===================================================================== */
.idm-pdf-dialog {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    padding: 0;
    border: 1px solid var(--idm-line-strong);
    background: var(--idm-bg);
    color: var(--idm-ink);
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.idm-pdf-dialog::backdrop { background: rgba(0,0,0,.42); }
.idm-pdf-dialog__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px 20px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    font-family: var(--idm-sans, sans-serif);
}
.idm-pdf-dialog__title {
    font-family: var(--idm-serif, serif);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}
.idm-pdf-dialog__note {
    font-size: .82rem;
    opacity: var(--idm-dim);
    margin: 0;
}
.idm-pdf-dialog__group {
    border: 1px solid var(--idm-line);
    padding: 12px 14px 14px;
    margin: 0;
}
.idm-pdf-dialog__group legend {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 0 6px;
}
.idm-pdf-dialog__all { display: flex; gap: 8px; margin: 0 0 10px; }
.idm-pdf-dialog__all button {
    padding: 3px 10px;
    border: 1px solid var(--idm-line-strong);
    background: var(--idm-bg);
    color: var(--idm-ink);
    font-family: inherit;
    font-size: .76rem;
    cursor: pointer;
}
.idm-pdf-dialog__all button:hover { background: var(--idm-ink); color: var(--idm-bg); }
.idm-pdf-dialog__cols {
    display: grid;
    gap: 7px;
    max-height: 34vh;
    overflow-y: auto;
}
.idm-pdf-dialog__col {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .92rem;
    line-height: 1.35;
    cursor: pointer;
}
.idm-pdf-dialog__col input { margin-top: 1px; flex: 0 0 auto; }
.idm-pdf-size {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--idm-line-strong);
    background: var(--idm-bg);
    color: var(--idm-ink);
    font-family: inherit;
    font-size: .92rem;
    margin-bottom: 8px;
}
.idm-pdf-dialog__error {
    margin: 0;
    padding: 9px 12px;
    background: var(--idm-bad-bg);
    font-size: .86rem;
}
.idm-pdf-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.idm-pdf-dialog__actions button {
    padding: 9px 18px;
    border: 1.5px solid var(--idm-ink);
    background: var(--idm-bg);
    color: var(--idm-ink);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
}
.idm-pdf-dialog__actions .idm-pdf-go { background: var(--idm-ink); color: var(--idm-bg); }
.idm-pdf-dialog__actions button:hover { background: var(--idm-accent); border-color: var(--idm-accent); color: var(--idm-on-brand); }
@media (max-width: 480px) {
    .idm-pdf-dialog__actions { flex-direction: column-reverse; }
    .idm-pdf-dialog__actions button { width: 100%; }
}
