/* EW-GDS. Every value comes from SPEC.md (measured off the live site, 4 Dec 2026).
   Font: live never loads its Helvetica Neue files, visitors see Helvetica (Apple) or Arial (Windows); we keep that. */

:root {
	--ew-red: #f7141b;
	--ew-red-band: #fc121d;
	--ew-purple: #7c5ad3;
	--ew-blue: #4054b2;
	--ew-grey: #54595f;
	--ew-light: #f6f6f6;
	--ew-footer: #3a3a3a;
	--ew-light-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--ew-reg-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--ew-med-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--ew-content: 1120px;
	--ew-wide: 1140px;
	--ew-gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #000; font-family: var(--ew-light-font); font-size: 20px; line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--ew-red); }
a:hover, a:focus { color: var(--ew-red); }
p { margin: 0 0 20px; }
.skip-link { position: absolute; left: 10px; top: -100px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; }
.skip-link:focus { top: 10px; }

/* ---------- header ---------- */
.site-header { background: #fff; position: relative; z-index: 20; }
.site-header__inner { display: flex; flex-direction: column; align-items: center; padding: 15px var(--ew-gutter) 0; min-height: 178px; }
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.brand .site-logo { width: 100px; height: auto; display: block; }
.brand-name { font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 25px; line-height: 1.2; color: #4b4f58; }
.nav-toggle, .nav-toggle__button { display: none; }
.site-nav { margin-top: 16px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.site-nav .menu > li { position: relative; }
.site-nav a { display: block; padding: 0 18px; font-family: var(--ew-reg-font); font-size: 18px; line-height: 45px; color: #000; text-decoration: none; text-transform: capitalize; }
.site-nav a:hover, .site-nav a:focus, .site-nav .is-current > a { color: var(--ew-red); }
.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 4px 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; border-top: 2px solid var(--ew-red); box-shadow: 0 4px 10px rgba(0, 0, 0, .1); visibility: hidden; opacity: 0; transition: opacity .15s; z-index: 30; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.site-nav .sub-menu a { padding: 0 20px; line-height: 45px; font-size: 16px; border-bottom: 1px solid #eaeaea; }

@media (max-width: 921px) {
	.site-header__inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; min-height: 0; padding: 14px 20px; }
	.site-header__inner { flex-wrap: wrap; }
	.brand { gap: 10px; min-width: 0; }
	.brand-name { font-size: 20px; white-space: nowrap; }
	.nav-toggle__button { margin-left: auto; }
	.nav-toggle__button { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ew-red); font-size: 18px; line-height: 44px; padding: 0 10px; min-height: 44px; user-select: none; }
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; -webkit-appearance: none; appearance: none; margin: 0; }
	.site-nav { display: none; flex-basis: 100%; margin: 10px -20px -14px; border-top: 1px solid #eaeaea; }
	.nav-toggle:checked ~ .site-nav { display: block; }
	.site-nav .menu { display: block; }
	.site-nav a { padding: 0 20px; font-size: 16.4px; line-height: 49px; border-bottom: 1px solid #eaeaea; }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.site-nav .sub-menu { position: static; visibility: visible; opacity: 1; box-shadow: none; border-top: 0; min-width: 0; }
	.site-nav .sub-menu a { padding-left: 40px; }
}

/* ---------- banner (core/cover) ---------- */
.wp-block-cover.ew-banner { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 30px var(--ew-gutter); color: #fff; border-bottom: 1px solid var(--ew-red-band); margin: 0; }
.wp-block-cover.ew-banner .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; }
.wp-block-cover.ew-banner .wp-block-cover__background { position: absolute; inset: 0; opacity: 0; background: #000; }
.entry .wp-block-cover.ew-banner .wp-block-cover__background.has-background-dim { background-color: #000; }
.entry .wp-block-cover.ew-banner.ew-dim .wp-block-cover__background.has-background-dim { opacity: .57; }
.entry .wp-block-cover.ew-banner-home.ew-dim .wp-block-cover__background.has-background-dim { opacity: .37; }
.wp-block-cover.ew-banner .wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; max-width: 940px; margin: 0 auto; }
.wp-block-cover.ew-banner .wp-block-cover__inner-container > * + * { margin-top: 10px; }
.ew-banner .ew-banner-title { font-family: var(--ew-light-font); font-weight: 400; font-size: 49px; line-height: 59px; color: #fff; margin: 0; text-align: center; }
.ew-banner .ew-banner-sub { font-family: var(--ew-reg-font); font-size: 25px; line-height: 45px; color: #fff; margin: 30px 0 0; text-align: center; }
.ew-banner-home .ew-banner-title { font-family: var(--ew-med-font); font-size: 30px; line-height: 45px; }
.ew-banner-home .ew-banner-sub { font-family: var(--ew-med-font); font-size: 20px; line-height: 28px; font-weight: 700; margin-top: 20px; }
.ew-banner .wp-block-buttons { margin-top: 20px; }
@media (max-width: 767px) {
	.wp-block-cover.ew-banner { min-height: 300px !important; }
	.ew-banner .ew-banner-title { font-size: 30px; line-height: 38px; }
	.ew-banner .ew-banner-sub { font-size: 18px; line-height: 28px; margin-top: 15px; }
	.ew-banner-home .ew-banner-title { font-size: 17px; line-height: 34px; }
	.ew-banner-home .ew-banner-sub { font-size: 12px; line-height: 16.8px; }
}

/* page title for the two pages that have no banner */
.entry > .entry-title { font-family: var(--ew-light-font); font-weight: 400; font-size: 49px; line-height: 59px; text-align: center; margin: 40px auto 0; padding: 0 var(--ew-gutter); max-width: var(--ew-wide); }

/* ---------- bands (core/group full width) ---------- */
.entry > .wp-block-group.ew-band, .entry > .ew-band { padding: 41px var(--ew-gutter) 30px; margin: 0; }
.ew-band > * { max-width: var(--ew-content); margin-left: auto; margin-right: auto; }
.ew-band > .wp-block-columns, .ew-band > .ew-logos { max-width: var(--ew-wide); }
.ew-band.has-background { padding-top: 67px; padding-bottom: 67px; }
.ew-band.has-purple-background-color, .ew-band.has-purple-background-color a { color: #fff; }
.ew-band > :last-child { margin-bottom: 0; }

/* ---------- text ---------- */
.entry p, .entry li { font-size: 20px; line-height: 35px; }
/* spacing between blocks comes from each block's own bottom margin, as on the old site (paragraph gap = 1.6 x its text size) */
.entry .is-layout-flow > *, .entry .is-layout-constrained > *, .entry.is-layout-flow > *, .entry.is-layout-constrained > * { margin-block-start: 0; }
.entry p { margin: 0 0 1.6em; }
/* long web addresses written out in the text wrap instead of pushing the page sideways on phones */
.entry p, .entry li, .entry td, .entry a { overflow-wrap: anywhere; }
.entry ul, .entry ol { margin: 0 0 20px; padding-left: 1.4em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--ew-light-font); font-weight: 600; line-height: 1.3; margin: 0 0 20px; }
.entry h2 { font-size: 28px; }
.entry h3 { font-size: 24px; }
.wp-block-image { margin: 0 0 20px; }
/* the old builder left about 45px clear above and below a photo in the text column */
.entry .ew-band > .wp-block-image, .entry > .wp-block-image { margin-top: 45px; margin-bottom: 45px; }
.wp-block-image img { display: block; height: auto; }
.wp-block-image.aligncenter img, .wp-block-image.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-block-image.aligncenter img { display: inline-block; }
.wp-block-table { margin: 0 0 20px; overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th { border: 1px solid #ddd; padding: 8px 10px; vertical-align: top; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-red-color { color: var(--ew-red); } .has-grey-color { color: var(--ew-grey); } .has-white-color { color: #fff; } .has-black-color { color: #000; } .has-purple-color { color: var(--ew-purple); } .has-blue-color { color: var(--ew-blue); } .has-red-band-color { color: var(--ew-red-band); }
.has-purple-background-color { background-color: var(--ew-purple); } .has-light-background-color { background-color: var(--ew-light); } .has-white-background-color { background-color: #fff; } .has-red-band-background-color { background-color: var(--ew-red-band); } .has-red-background-color { background-color: var(--ew-red); } .has-blue-background-color { background-color: var(--ew-blue); } .has-grey-background-color { background-color: var(--ew-grey); } .has-black-background-color { background-color: #000; }

/* ---------- buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-buttons.is-content-justification-right { justify-content: flex-end; }
.wp-block-buttons.is-full .wp-block-button { flex: 1 1 100%; }
.wp-block-buttons.is-full .wp-block-button__link { display: block; width: 100%; }
.wp-block-button__link, .entry .wp-block-button__link { display: inline-block; font-family: var(--ew-light-font); font-size: 16px; line-height: 16px; font-weight: 700; color: #fff; background: var(--ew-red-band); padding: 15px 30px; border-radius: 1px; text-decoration: none; text-align: center; border: 0; cursor: pointer; }
.wp-block-button__link:hover, .wp-block-button__link:focus { color: #fff; filter: brightness(.92); }
.is-style-red .wp-block-button__link { background: var(--ew-red-band); text-transform: capitalize; }
.is-style-purple .wp-block-button__link { background: var(--ew-purple); font-family: var(--ew-reg-font); font-weight: 500; border-radius: 4px; }
.is-style-blue .wp-block-button__link { background: var(--ew-blue); font-family: var(--ew-reg-font); font-size: 15px; line-height: 15px; font-weight: 500; padding: 12px 24px; border-radius: 3px; }
.is-style-grey .wp-block-button__link { background: #e5e5e5; color: #000; font-family: var(--ew-reg-font); font-weight: 400; font-size: 15px; padding: 12px 20px; }
.is-style-grey .wp-block-button__link:hover { color: #000; }

/* ---------- lines ---------- */
.wp-block-separator { border: 0; margin: 0 0 20px; }
.wp-block-separator.is-style-short { width: 12px; height: 5px; background: var(--ew-grey); margin: 15px auto 25px; }
.wp-block-separator.is-style-wide { height: 1px; background: #ddd; width: 100%; }

/* ---------- columns and cards ---------- */
.entry .wp-block-columns { display: grid; grid-template-columns: repeat(var(--ew-cols, 2), minmax(0, 1fr)); gap: 20px; margin: 0 auto 20px; flex-wrap: initial; }
.entry .wp-block-columns > .wp-block-column { flex-basis: auto !important; width: auto; margin: 0; }
.wp-block-column { min-width: 0; }
.ew-cards { margin-bottom: 50px; }
@media (min-width: 1025px) {
	.entry .wp-block-columns:has(> .wp-block-column:nth-child(3)) { --ew-cols: 3; }
	.entry .wp-block-columns:has(> .wp-block-column:nth-child(4)) { --ew-cols: 4; }
	.entry .wp-block-columns:has(> .wp-block-column:nth-child(5)) { --ew-cols: 5; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.entry .wp-block-columns.ew-logos:has(> .wp-block-column:nth-child(3)) { --ew-cols: 3; }
}
/* picture widths carried from the old page builder (percent of the text column), centred */
.wp-block-image[class*="ew-w-"] { text-align: center; }
.wp-block-image[class*="ew-w-"] img { display: inline-block; }
.ew-w-30 img { width: 30%; } .ew-w-41 img { width: 41%; } .ew-w-50 img { width: 50%; } .ew-w-60 img { width: 60%; } .ew-w-68 img { width: 68%; } .ew-w-80 img { width: 80%; }
.ew-logos .wp-block-image[class*="ew-w-"] img { width: auto; }
.ew-card { display: flex; flex-direction: column; background: var(--ew-light); padding: 10px 20px 10px; color: var(--ew-grey); }
.ew-card > * { margin-left: 0; margin-right: 0; }
.ew-card .ew-label { font-family: var(--ew-reg-font); font-weight: 700; font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--ew-grey); margin: 0 0 20px; text-align: left; }
.ew-card .ew-card-title { font-family: var(--ew-light-font); font-weight: 400; font-size: 25px; line-height: 1.15; color: var(--ew-grey); text-align: center; margin: 0; }
.ew-card p:not(.ew-label) { font-size: 15px; line-height: 30px; color: var(--ew-grey); text-align: center; margin-bottom: 1.6em; }
.ew-card .ew-card-sub { font-family: var(--ew-light-font); line-height: 1.3; }
.ew-card .wp-block-buttons { margin-top: auto; padding-top: 20px; justify-content: center; }
.ew-card.has-white-background-color { background: #fff; }
/* rows line up: each card's title, text and button sit on shared rows across the whole row of cards (subgrid) */
@media (min-width: 768px) {
	.entry .wp-block-columns.ew-cards > .ew-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-content: start; }
	.entry .wp-block-columns.ew-cards > .ew-card > .wp-block-buttons { grid-row: -2 / -1; align-self: end; }
}

/* sponsor logos: one even grid, logos centred in equal cells */
.ew-logos { align-items: center; }
.ew-logos .wp-block-column { display: flex; align-items: center; justify-content: center; min-height: 120px; }
.ew-logos .wp-block-image { margin: 0; }
.ew-logos img { max-height: 110px; width: auto; }

@media (max-width: 1024px) {
	.entry .wp-block-columns.ew-cards { --ew-cols: 2; }
}
@media (max-width: 767px) {
	.entry p, .entry li { line-height: 30px; }
	.entry .wp-block-columns, .entry .wp-block-columns.ew-cards { --ew-cols: 1; }
	.entry .wp-block-columns.ew-logos { --ew-cols: 3; gap: 10px; margin-bottom: 10px; }
	.ew-logos .wp-block-column { min-height: 60px; }
	.ew-logos img { max-height: 50px; }
	.entry > .wp-block-group.ew-band, .entry > .ew-band { padding: 30px 20px 20px; }
	.ew-band.has-background { padding-top: 40px; padding-bottom: 40px; }
	.entry > .entry-title { font-size: 30px; line-height: 38px; }
}

/* ---------- form (Registration) ---------- */
.ew-form { max-width: var(--ew-content); margin: 0 auto 20px; }
.ew-field { margin: 0 0 16px; }
.ew-field label { display: block; font-size: 16px; line-height: 1.4; margin-bottom: 6px; color: #000; }
.ew-field input, .ew-field textarea, .ew-field select { width: 100%; font: 16px/1.4 var(--ew-reg-font); color: #000; background: #fff; border: 1px solid #818a91; border-radius: 3px; padding: 10px 12px; min-height: 44px; -webkit-appearance: none; appearance: none; }
.ew-select { position: relative; display: block; }
.ew-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ew-red); border-bottom: 2px solid var(--ew-red); transform: rotate(45deg); pointer-events: none; }
.ew-select select { padding-right: 40px; }
.ew-field input:focus, .ew-field textarea:focus, .ew-field select:focus { outline: 2px solid var(--ew-red); outline-offset: 1px; }
.req { color: var(--ew-red); }
.ew-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ew-hp input { font-size: 16px; }
.ew-form-msg { padding: 14px 18px; border-left: 4px solid var(--ew-red); background: var(--ew-light); }
.ew-form-msg.is-ok { border-color: #2e7d32; }
.ew-old-links { color: var(--ew-grey); font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ew-footer); color: #fff; text-align: center; padding: 40px var(--ew-gutter) 41px; }
.site-footer p { margin: 0; font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 28px; }
@media (max-width: 767px) { .site-footer { padding: 28px 20px; } }

/* a large bold headline line inside the text (e.g. "Announcing the 8th IGDSS 2028") */
.entry h2.ew-big { font-size: 40px; line-height: 50px; font-weight: 700; margin: 0 0 40px; }
@media (max-width: 767px) { .entry h2.ew-big { font-size: 20px; line-height: 30px; } }
/* pictures floated beside the text, at their own size, as on the old pages */
.entry .wp-block-image.alignleft { float: left; margin: 6px 20px 15px 0; max-width: 50%; }
.entry .wp-block-image.alignright { float: right; margin: 6px 0 15px 20px; max-width: 50%; }
.entry .wp-block-image.alignleft img, .entry .wp-block-image.alignright img { max-width: 100%; height: auto; }
.entry .ew-band::after { content: ""; display: table; clear: both; }
.entry p img { display: inline-block; vertical-align: middle; max-width: 100%; height: auto; }
@media (max-width: 480px) { .entry .wp-block-image.alignleft, .entry .wp-block-image.alignright { float: none; max-width: 100%; margin: 0 0 20px; text-align: center; } }
/* keep floated pictures inside the text column (the band itself runs edge to edge) */
.entry .is-layout-constrained > .wp-block-image.alignleft { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1120px)) / 2)) !important; }
.entry .is-layout-constrained > .wp-block-image.alignright { margin-right: max(0px, calc((100% - var(--wp--style--global--content-size, 1120px)) / 2)) !important; }
.entry .wp-block-buttons:has(.is-style-grey) { margin-bottom: 40px; }
/* space above and below each band, carried from the old page builder's section padding */
.entry > .ew-band.ew-pt-10 { padding-top: 10px; } .entry > .ew-band.ew-pt-40 { padding-top: 40px; } .entry > .ew-band.ew-pt-60 { padding-top: 60px; } .entry > .ew-band.ew-pt-110 { padding-top: 110px; } .entry > .ew-band.ew-pt-210 { padding-top: 210px; }
.entry > .ew-band.ew-pb-10 { padding-bottom: 10px; } .entry > .ew-band.ew-pb-40 { padding-bottom: 40px; } .entry > .ew-band.ew-pb-60 { padding-bottom: 60px; } .entry > .ew-band.ew-pb-110 { padding-bottom: 110px; } .entry > .ew-band.ew-pb-210 { padding-bottom: 210px; }
@media (max-width: 767px) { .entry > .ew-band.ew-pt-110, .entry > .ew-band.ew-pt-210 { padding-top: 60px; } .entry > .ew-band.ew-pb-110, .entry > .ew-band.ew-pb-210 { padding-bottom: 60px; } }
.entry .wp-block-separator.ew-rule { height: 2px; background: #000; }
/* phones: a portrait photo never stands taller than the screen is wide (house phone check), shown whole, centred */
@media (max-width: 767px) { .entry .wp-block-image img { max-height: calc(100vw - 40px); width: auto; max-width: 100%; } .entry .wp-block-image:not(.ew-logo) img[style*="width"] { width: auto !important; } .entry .wp-block-image { text-align: center; } }

/* sponsor logos, one even grid (4 Dec 2026, Jag: "logo sizing is off"). Each logo's width is set on the image from its shape
   so every logo carries the same visual weight; the grid only places them. 4 a row desktop, 3 tablet, 2 phone, last row centred. */
.entry .wp-block-columns.ew-logos { display: flex; flex-wrap: wrap !important; justify-content: center; align-items: center; gap: 40px 20px; margin-bottom: 20px; }
.entry .wp-block-columns.ew-logos > .wp-block-column { flex: 0 0 calc((100% - 60px) / 4) !important; min-width: 0; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.ew-logos .ew-logo { margin: 0; text-align: center; }
.ew-logos .ew-logo img { max-width: 100%; height: auto; max-height: none; object-fit: contain; }
@media (max-width: 1024px) { .entry .wp-block-columns.ew-logos > .wp-block-column { flex-basis: calc((100% - 40px) / 3) !important; } }
@media (max-width: 767px) {
	.entry .wp-block-columns.ew-logos { gap: 24px 20px; }
	.entry .wp-block-columns.ew-logos > .wp-block-column { flex-basis: calc((100% - 20px) / 2) !important; min-height: 70px; }
	.ew-logos .ew-logo img { max-height: none; }
}

/* ---- 4 Dec 2026, from the page-by-page look Jag asked for ---- */
/* Footer sits at the bottom on short pages (no white strip under it on a tall screen). */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .site-main { flex: 1 0 auto; }
/* Sized photos: the % is of the text column, not of the photo's own box (Edward Steers photo showed 58px wide). */
.entry .wp-block-image.aligncenter[class*="ew-w-"] { display: block; }
/* Text never starts right under a banner (Registration had 10px). */
.entry > .wp-block-cover + .ew-band.ew-pt-10 { padding-top: 40px; }
/* Card rows that follow each other sit one card-gap apart, like one grid (History of Meetings had 70px). */
.entry > .ew-band:has(> .ew-cards):has(+ .ew-band > .ew-cards) { padding-bottom: 0; }
.entry > .ew-band:has(> .ew-cards) + .ew-band:has(> .ew-cards) { padding-top: 0; }
.entry > .ew-band:has(> .ew-cards):has(+ .ew-band > .ew-cards) > .ew-cards { margin-bottom: 20px; }
/* A short card row under a row of 4 keeps the same card width, centred. */
@media (min-width: 1025px) {
	.entry > .ew-band:has(> .ew-cards > :nth-child(4)) + .ew-band > .ew-cards:not(:has(> :nth-child(4))) {
		grid-template-columns: repeat(var(--ew-cols), calc((100% - 60px) / 4)); justify-content: center;
	}
}
