/*
Theme Name: XII ECE 2027
Template: campsite-2017
Version: 0.2.5
Description: An editorial conference design for XII ECE, based on CampSite 2017.
License: GNU General Public License v2 or later
Text Domain: xiiece-campsite
*/

body.ece-site {
	--ink: var(--wp--preset--color--ece-text, #192e43);
	--muted: var(--wp--preset--color--ece-muted, #53615c);
	--paper: var(--wp--preset--color--ece-surface, #f9f4e8);
	--line: var(--wp--preset--color--ece-border, #d4cbbb);
	--gold: var(--wp--preset--color--ece-accent, #f3ca78);
	--deep: var(--wp--preset--color--ece-contrast, #142d4d);
	--display: Georgia, 'Times New Roman', serif;
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 16px/1.55 system-ui, sans-serif;
}
.ece-shell *, .ece-shell *::before, .ece-shell *::after { box-sizing: border-box; }
.ece-shell :is(h1,h2,h3,p,figure,dl,dd):not(:where(.ece-article-content *, .entry-content *)) { margin: 0; }
/* Let block layout and individual margin controls take precedence within editor content. */
:where(.ece-shell :is(.ece-article-content, .entry-content)) :is(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
.ece-shell a { color: inherit; text-decoration: none; }
.ece-shell a:hover { text-decoration: underline; text-underline-offset: .23em; }
.ece-shell a:focus-visible { outline: 3px solid #ad641a; outline-offset: 5px; }
.ece-wrap { width: min(100% - 96px, 1280px); margin-inline: auto; }
.ece-header { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.ece-header-inner, .ece-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ece-header-inner { min-height: 83px; }
.ece-brand { display: inline-flex; align-items: center; flex: none; gap: 12px; font: 700 24px/1 var(--display); }
.ece-brand img { display: block; width: 35px; height: 43px; object-fit: contain; mix-blend-mode: multiply; }
.ece-brand small { display: block; margin-top: 7px; color: var(--muted); font: 700 10px/1 system-ui,sans-serif; letter-spacing: .17em; }
.ece-nav, .ece-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; font-size: 14px; font-weight: 650; }
.ece-nav .ece-nav-cta { padding: 10px 15px; border: 1px solid var(--ink); }
.ece-nav-cta span, .ece-button span, .ece-text-link span { margin-left: .5em; }

.ece-hero { background: var(--deep); color: var(--paper); }
.ece-mosaic {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: repeat(3, minmax(86px, min(8.7vw, 145px)));
	overflow: hidden;
	--lapis: #17365d;
	--blue: #275684;
	--turquoise: #247b73;
	--glaze: #79b7a1;
	--sand: #efd8a4;
	--ochre: #cf9340;
	--clay: #b95139;
	--dark: #122b47;
	background: var(--lapis);
}
.tile { position: relative; overflow: hidden; }
.tile::before, .tile::after { content: ''; position: absolute; }
.tile-emblem { grid-area: 1 / 1 / 3 / 3; display: grid; place-items: center; background: var(--ochre); }
.tile-emblem::before { inset: 11% 15%; background: var(--sand); border-radius: 48% 48% 2px 2px; }
.tile-emblem img { position: relative; width: 45%; height: 63%; object-fit: contain; mix-blend-mode: multiply; }
.tile-sun { grid-area: 3 / 1 / 4 / 3; background: var(--clay); }
.tile-sun::before { width: 64%; aspect-ratio: 1; background: var(--sand); border-radius: 50%; bottom: -55%; left: 18%; }
.tile-reeds { grid-area: 1 / 3 / 2 / 5; background: var(--turquoise); }
.tile-reeds::before { inset: 18% 8% 0; background: repeating-linear-gradient(72deg, transparent 0 13%, var(--glaze) 13.5% 18%, transparent 18.5% 27%); border-bottom: 10px solid var(--glaze); }
.tile-photo { grid-area: 2 / 3 / 4 / 5; background: var(--sand); }
.tile-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 44% 52%; filter: saturate(.72) sepia(.17); }
.tile-arches { grid-area: 1 / 5 / 2 / 7; background: var(--dark); }
.tile-arches::before { inset: 14% 54% 0 11%; border: 10px solid var(--glaze); border-bottom: 0; border-radius: 80px 80px 0 0; }
.tile-arches::after { inset: 14% 11% 0 54%; border: 10px solid var(--glaze); border-bottom: 0; border-radius: 80px 80px 0 0; }
.tile-disc { grid-area: 1 / 7 / 2 / 9; background: var(--clay); }
.tile-disc::before { width: 37%; aspect-ratio: 1; background: var(--sand); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tile-steps { grid-area: 2 / 9 / 4 / 11; background: var(--ochre); }
.tile-steps::before { inset: 10% 9% 0; background: var(--deep); clip-path: polygon(45% 5%,55% 5%,55% 26%,65% 26%,65% 45%,77% 45%,77% 63%,87% 63%,87% 81%,100% 81%,100% 100%,0 100%,0 81%,13% 81%,13% 63%,23% 63%,23% 45%,35% 45%,35% 26%,45% 26%); }
.tile-mark { grid-area: 2 / 5 / 4 / 9; display: grid; place-content: center; text-align: center; padding: 10px; background: var(--blue); color: #fff5db; }
.tile-mark strong { font: 800 clamp(43px, 7.55vw, 126px)/.87 Georgia, serif; letter-spacing: -.075em; white-space: nowrap; }
.tile-mark span { margin-top: 15px; color: #f1d38e; font-size: clamp(10px,1.25vw,17px); font-weight: 750; letter-spacing: .28em; }
.tile-water { grid-area: 1 / 9 / 2 / 11; background: var(--glaze); }
.tile-water::before { inset: 0; background: repeating-linear-gradient(0deg, var(--turquoise) 0 9px, transparent 9px 18px); transform: skewY(-14deg) scale(1.25); }
.tile-seal { grid-area: 1 / 11 / 2 / 13; background: var(--sand); }
.tile-seal::before { inset: 17% 16%; background: repeating-linear-gradient(90deg, var(--blue) 0 8%, transparent 8% 15%); }
.tile-fan { grid-area: 2 / 11 / 3 / 13; background: var(--turquoise); }
.tile-fan::before { width: 85%; aspect-ratio: 1; border-radius: 50%; left: 7.5%; bottom: -87%; background: repeating-conic-gradient(from -90deg, var(--sand) 0deg 10deg, var(--ochre) 10deg 20deg); }
.tile-sunrise { grid-area: 3 / 11 / 4 / 12; background: var(--dark); }
.tile-sunrise::before { width: 100%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 100% 0 0 0; background: var(--glaze); }
.tile-chevron { grid-area: 3 / 12 / 4 / 13; background: var(--clay); }
.tile-chevron::before { inset: 0; background: var(--sand); clip-path: polygon(0 27%,50% 59%,100% 27%,100% 45%,50% 77%,0 45%); }
.ece-hero-copy { text-align: center; padding-block: 37px 41px; }
.ece-hero h1 { color: inherit; font: 700 clamp(26px, 3.4vw, 48px)/1.08 var(--display); letter-spacing: -.036em; }
.ece-event-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px !important; color: #f3d78f; font-size: clamp(16px,2.1vw,24px); }
.ece-theme { margin-top: 8px !important; color: #e7e7e2; font-size: clamp(14px,1.5vw,18px); }
.ece-theme em { display: inline-block; margin-inline-start: 7px; color: #fff5db; }
.ece-eyebrow { display: flex; align-items: center; gap: 11px; color: #705022; font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.ece-eyebrow > span { width: 25px; height: 1px; background: currentColor; flex: none; }
.ece-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin-top: 23px; }
.ece-button { display: inline-flex; align-items: center; padding: 11px 16px; background: var(--gold); color: #172526 !important; font-size: 14px; font-weight: 750; }
.ece-text-link { display: inline-flex; align-items: baseline; font-size: 14px; font-weight: 750; border-bottom: 1px solid currentColor; }
.ece-call, .ece-venue { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px 70px; padding-block: 64px; }
.ece-home h2 { margin-top: 10px; color: inherit; font: 700 clamp(34px,4.8vw,57px)/1.03 var(--display); letter-spacing: -.042em; }
.ece-call div + div > p, .ece-venue div > p:not(.ece-eyebrow) { max-width: 53ch; margin-bottom: 17px; color: var(--muted); font-size: 17px; }
.ece-call .ece-text-link, .ece-venue .ece-text-link { color: #674820; }
.ece-resources { border-block: 1px solid var(--line); background: var(--wp--preset--color--ece-surface-alt, #fcfaf4); padding-block: 52px 62px; }
.ece-resources h2 { text-align: center; margin: 0 0 24px; }
.ece-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.ece-resource-grid a { display: block; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ece-resource-grid h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 15px 0 3px; font: 700 clamp(19px,2.7vw,29px)/1.16 var(--display); }
.ece-resource-grid h3 span { font: 700 16px/1 system-ui,sans-serif; }
.ece-resource-grid p { color: var(--muted); font-size: 14px; }
.ece-card-art { display: block; aspect-ratio: 2.05; overflow: hidden; }
.ece-card-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ece-card-program { background: repeating-linear-gradient(135deg, #1c436d 0 21px, #285d87 21px 42px, #377a98 42px 63px, #ecc36c 63px 69px); }
.ece-card-keynotes { background: radial-gradient(ellipse 34% 125% at 58% 104%, #e9d4a3 0 85%, transparent 86%), radial-gradient(ellipse 37% 126% at 25% 105%, #cc943f 0 85%, transparent 86%), #246e67; }
.ece-venue > img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.ece-venue h2 { margin-bottom: 17px; }
.ece-footer { background: var(--deep); color: var(--paper); }
.ece-footer-inner { padding-block: 35px; }
.ece-footer-partners { background: #fff; border-top: 1px solid var(--line); color: var(--ink); }
.ece-logo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 24px; margin-block: 0; padding: 21px 0; list-style: none; }
.ece-logo-row li { display: grid; min-height: 76px; place-items: center; margin: 0; }
.ece-logo-row img { display: block; width: auto; height: 64px; max-width: 100%; object-fit: contain; }
.ece-logo-row img.ece-logo-emblem { height: 60px; }
.ece-banner-logo { display: block; background: url(assets/conference-banner.jpg) no-repeat; background-size: 512px 278px; }
.ece-logo-nbu { width: 66px; height: 69px; background-position: -48px -25px; }
.ece-logo-bie { width: 105px; height: 55px; background-position: -184px -33px; }
.ece-logo-pan { width: 100px; height: 48px; background-position: -368px -39px; }
.ece-footer strong { font: 700 24px/1.2 var(--display); }
.ece-footer p { margin-top: 5px; color: #e4e8ea; font-size: 14px; }
.ece-content > .content-area { width: min(100% - 96px, 915px); margin: 0 auto; float: none; padding: 55px 0 80px; }
.ece-content > .content-area .entry-title { font: 700 clamp(38px,5vw,60px)/1.04 var(--display); letter-spacing: -.04em; text-transform: none; }
:where(.ece-content > .content-area .entry-content) p { margin-block: 1em; }
.ece-content > .widget-area { width: min(100% - 96px, 915px); float: none; margin: 0 auto; }

@media (max-width: 1000px) {
	.ece-wrap { width: calc(100% - 56px); }
	.ece-nav { gap: 14px; }
}
@media (max-width: 760px) {
	.ece-wrap { width: calc(100% - 36px); }
	.ece-header-inner { align-items: flex-start; flex-direction: column; gap: 13px; padding-block: 13px; }
	.ece-nav { column-gap: 16px; row-gap: 7px; font-size: 13px; }
	.ece-nav .ece-nav-cta { border: 0; text-decoration: underline; padding: 0; }
	.ece-mosaic { grid-template-columns: repeat(8,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(64px,15vw)); }
	.tile-emblem { grid-area: 1 / 1 / 2 / 3; }
	.tile-photo { grid-area: 2 / 1 / 3 / 3; }
	.tile-mark { grid-area: 1 / 3 / 3 / 7; }
	.tile-steps { grid-area: 1 / 7 / 2 / 9; }
	.tile-water { grid-area: 2 / 7 / 3 / 9; }
	.tile-sun,.tile-reeds,.tile-arches,.tile-disc,.tile-seal,.tile-fan,.tile-sunrise,.tile-chevron { display: none; }
	.tile-mark strong { font-size: clamp(39px,10vw,72px); }
	.tile-mark span { margin-top: 8px; }
	.ece-hero-copy { padding-block: 27px 30px; }
	.ece-hero h1 { max-width: 24ch; margin-inline: auto; }
	.ece-call, .ece-venue { grid-template-columns: 1fr; padding-block: 42px; gap: 20px; }
	.ece-resource-grid { grid-template-columns: 1fr; }
	.ece-resource-grid a { padding-bottom: 12px; }
	.ece-logo-row { grid-template-columns: repeat(3, 1fr); gap: 10px; padding-block: 16px; }
	.ece-footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
	.ece-content > .content-area, .ece-content > .widget-area { width: calc(100% - 36px); }
}

.ece-page-header {
	background: linear-gradient(100deg, #142d4dfc 23%, #142d4de6 59%, #142d4d7d),
		url(assets/giza.jpg) center 43% / cover;
	color: var(--paper);
	padding-block: clamp(49px, 8vw, 108px);
	border-bottom: 5px solid #c9903e;
}
.ece-page-header h1 { color: inherit; font: 700 clamp(38px, 6vw, 78px)/1.03 var(--display); letter-spacing: -.045em; }
.ece-page-header .ece-eyebrow { margin-bottom: 13px; color: var(--gold); }
.ece-page-header .ece-event-details { justify-content: flex-start; }
.ece-article-content { max-width: 940px; min-height: 220px; padding-block: clamp(35px, 6vw, 76px); }
/* Classic content wrappers need a default rhythm for top-level blocks.
   Nested groups and columns use their own WordPress layout and spacing. */
:is(.ece-article-content, .entry-content) > :where(:not(:first-child)) {
	margin-block-start: var(--wp--style--block-gap, 1.15rem);
}
:is(.ece-article-content, .entry-content) > :where(h2, h3, h4, h5, h6):where(:not(:first-child)) {
	margin-block-start: var(--wp--preset--spacing--ece-lg, 1.5rem);
}
:is(.ece-article-content, .entry-content) > :where(ul, ol, figure, blockquote, hr) {
	margin-block-end: 0;
}
.ece-article-content p, .ece-article-content li { max-width: 74ch; }
.ece-article-content :is(h2,h3,h4,h5,.ece-program-notice) { font: 700 clamp(24px, 3.2vw, 35px)/1.14 var(--display); letter-spacing: -.025em; }
.ece-article-content .ece-cfp-lead { max-width: 55ch; font: 400 clamp(22px, 3vw, 32px)/1.33 var(--display); }
.ece-fill-in { padding: 13px 16px; background: #efe6d2; border-left: 3px solid #be8b3f; color: #564629; }
.ece-preview-empty { color: var(--muted); font-style: italic; }

/* Native menus retain the flat layout and support WordPress submenu items. */
.ece-menu, .ece-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.ece-menu { min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: inherit; }
.ece-menu .sub-menu { padding-inline-start: 12px; margin-block-start: 4px; }
.ece-menu > li { display: flex; flex-direction: column; align-items: flex-start; }
.ece-nav a, .ece-footer nav a { display: inline-flex; align-items: center; }
.ece-nav a[aria-current="page"], .ece-footer nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .23em; }
@media (max-width: 760px) {
	.ece-nav a, .ece-footer nav a { min-block-size: 24px; }
}

/* Pattern-specific styling uses core blocks for the editable content. */
.ece-eyebrow:not(:has(> span))::before { content: ""; width: 25px; height: 1px; background: currentColor; flex: none; }
.ece-pattern .ece-actions { margin-top: 23px; gap: var(--wp--preset--spacing--ece-2xs, 4px) var(--wp--preset--spacing--ece-lg, 24px); row-gap: 16px; }
.ece-actions .ece-pattern-button .wp-block-button__link {
	border-radius: 0; padding: 11px 16px; background: var(--gold); color: #172526;
	font-size: 14px; font-weight: 750;
}
.ece-actions .ece-pattern-link .wp-block-button__link {
	border-radius: 0; padding: 0; background: transparent; color: inherit;
	font-size: 14px; font-weight: 750; border-bottom: 1px solid currentColor;
}
.ece-pattern .ece-pattern-text-link { margin-block-end: 0; }
.ece-pattern .ece-actions .wp-block-button__link span, .ece-pattern-text-link a span { margin-inline-start: .5em; }
.ece-resource-card { position: relative; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ece-resource-card h3 a { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; padding: 0; }
.ece-resource-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ece-resource-card:focus-within { outline: 3px solid #ad641a; outline-offset: 5px; }
@media (max-width: 760px) { .ece-resource-card { padding-bottom: 12px; } }
.ece-venue > .wp-block-image { margin: 0; }
.ece-venue > .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }

/* Content links and rich post blocks remain legible in the conference layout. */
.ece-shell :is(.ece-article-content, .entry-content) :is(p, li) a:not(:where(.ece-text-link, .ece-text-link a, .wp-block-button__link, .wp-block-post-title a)) {
	text-decoration: underline; text-underline-offset: .2em;
}
.ece-page-header .ece-post-date { margin-block-start: var(--wp--preset--spacing--ece-md); color: var(--gold); }
.ece-post-featured img { display: block; max-width: 100%; height: auto; }
.ece-post .ece-article-content :where(h3, h4, h5, h6) { font-size: var(--wp--preset--font-size--ece-subheading); }
.ece-post .ece-article-content :where(.wp-block-quote, blockquote) {
	border-inline-start: 3px solid var(--gold); margin-inline: 0;
	padding-inline-start: var(--wp--preset--spacing--ece-md);
}
.ece-post :where(figcaption, .wp-caption-text) {
	color: var(--muted); font-size: var(--wp--preset--font-size--ece-label);
}
.ece-post .wp-block-table { overflow-x: auto; }
.ece-post .wp-block-table :where(th, td) {
	border: 1px solid var(--line); padding: var(--wp--preset--spacing--ece-xs);
}
.ece-post-comments { max-width: 940px; padding-bottom: var(--wp--preset--spacing--ece-2xl); }
