/*
 * EduDrift Core 2.2.0 — rulebooks and guidelines (Documents).
 * Design: canvas "Rulebooks and guidelines". Breakpoints: tablet ≤1024px, phone ≤640px.
 * Print: the "Save as PDF" button opens the browser's print window; @media print below.
 */

.edd { font-family: Jost, system-ui, sans-serif; color: #30363A; -webkit-font-smoothing: antialiased; }
.edd *, .edd *::before, .edd *::after { box-sizing: border-box; }
.edd h1, .edd h2, .edd p, .edd ul, .edd ol, .edd figure { margin: 0; }
.edd ul, .edd ol { padding: 0; list-style: none; }
.edd a { color: #0068CC; }
.edd a:hover { color: #0053A3; }
.edd a:focus-visible, .edd button:focus-visible, .edd summary:focus-visible { outline: 2px solid #0068CC; outline-offset: 2px; }
/* 2.2.1: the theme's heading style (Blocksy) mustn't make our headings italic; only *asterisk* words are. */
.edd :is(h1, h2, h3, h4), .edd .edd-title, .edd .edd-h2, .edd .edd-card__title { font-style: normal !important; }
.edd :is(h1, h2, h3, h4, p, span, li) em { font-style: italic !important; }
.edd em { font-style: italic; }
.edd-ey { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: #0053A3; }

/* Heading panel */
.edd-head { margin: 14px 14px 0; border-radius: 36px; background: linear-gradient(160deg, #EEF6FF 0%, #DCEBFB 60%, #C3DCF6 100%); padding: 150px 64px 64px; }
.edd-head__in { max-width: 1162px; margin: 0 auto; }
.edd-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 88px; line-height: .95; letter-spacing: -0.015em; color: #090D0F; margin-top: 16px !important; overflow-wrap: anywhere; }
.edd-title em, .edd-h2 em { color: #0053A3; }
.edd-intro { font-size: 18px; line-height: 1.6; margin-top: 20px !important; max-width: 640px; }
.edd-pdf { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: 32px; }
.edd-pdf p { font-size: 14px; line-height: 1.5; max-width: 360px; }
.edd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; background: #0068CC; color: #fff; font: 500 12px Jost, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.edd-btn:hover { background: #0053A3; }
.edd-meta { font-size: 14px; margin-top: 28px !important; }
.edd-meta__k { font-weight: 500; color: #090D0F; }
.edd-print-head, .edd-print-note { display: none; }

/* Contents + document */
.edd-wrap { max-width: 1290px; margin: 72px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.edd-wrap.is-short .edd-doc { grid-column: 1 / -1; max-width: 760px; width: 100%; margin: 0 auto; }
.edd-toc { grid-column: 1 / 5; align-self: start; position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; padding-right: 12px; }
.edd-toc__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: #090D0F; }
.edd-toc a { color: #30363A; text-decoration: none; display: flex; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 1.4; }
.edd-toc a:hover, .edd-toc a.is-on { color: #0053A3; }
.edd-toc a.is-on { font-weight: 500; }
.edd-toc__n { color: #7A8288; font-variant-numeric: tabular-nums; width: 22px; flex: none; }
.edd-toc__group { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #0053A3; font-weight: 500; margin: 18px 0 6px; }
.edd-toc-phone { display: none; }
.edd-doc { grid-column: 5 / 13; max-width: 780px; min-width: 0; }

.edd-sec { padding: 44px 0; border-top: 1px solid #DCE2E7; scroll-margin-top: 110px; }
.edd-doc > .edd-sec:first-child { border-top: 0; padding-top: 0; }
.edd-num { font-size: 12px; letter-spacing: .2em; color: #0068CC; font-weight: 500; text-transform: uppercase; }
.edd-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; font-size: 40px; line-height: 1.05; color: #090D0F; margin-top: 10px !important; }
.edd-text { font-size: 17px; line-height: 1.75; margin-top: 18px; }
.edd-text > * + * { margin-top: 12px !important; }
.edd-text p { overflow-wrap: anywhere; }

/* Lists */
.edd-list--dots { display: flex; flex-direction: column; gap: 10px; }
.edd-list--dots > li { position: relative; padding-left: 22px; line-height: 1.6; }
.edd-list--dots > li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: #1A8FFF; }
.edd-list .edd-list { margin-top: 10px; gap: 8px; }
.edd-list--l2.edd-list--dots > li, .edd-list--l3.edd-list--dots > li { font-size: 16px; line-height: 1.55; padding-left: 20px; }
.edd-list--l2.edd-list--dots > li::before, .edd-list--l3.edd-list--dots > li::before { left: 4px; top: .75em; width: 8px; height: 1px; border-radius: 0; background: #7A8288; }
.edd-list--num { display: flex; flex-direction: column; gap: 14px; counter-reset: n; }
.edd-list--num > li { position: relative; padding-left: 52px; line-height: 1.65; counter-increment: n; min-height: 36px; }
.edd-list--num > li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: #EEF6FF; color: #0053A3; font: 500 15px Jost, sans-serif; display: flex; align-items: center; justify-content: center; }
.edd-list--titled { border-top: 1px solid #DCE2E7; counter-reset: t; }
.edd-list--titled > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid #DCE2E7; counter-increment: t; line-height: 1.6; }
.edd-list--titled > li::before { content: counter(t, decimal-leading-zero); font-size: 12px; letter-spacing: .16em; color: #0068CC; font-weight: 500; padding-top: 4px; }
.edd-list--titled > li > * { grid-column: 2; }
.edd-list__title { display: block; font-weight: 500; color: #090D0F; font-size: 17px; }
.edd-list__text { display: block; font-size: 16px; }

/* Judging criteria */
.edd-crit { margin-top: 22px; border-top: 1px solid #DCE2E7; }
.edd-crit__row { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 8px 20px; padding: 20px 0; border-bottom: 1px solid #DCE2E7; align-items: center; }
.edd-crit__name { font-size: 17px; font-weight: 500; color: #090D0F; }
.edd-crit__w { grid-row: span 3; text-align: right; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1; color: #0053A3; align-self: start; }
.edd-crit__bar { height: 6px; border-radius: 999px; background: #EEF6FF; overflow: hidden; display: block; }
.edd-crit__bar span { display: block; height: 100%; border-radius: 999px; background: #1A8FFF; }
.edd-crit__text { font-size: 15px; line-height: 1.6; }
.edd-crit__total { display: flex; justify-content: space-between; padding: 16px 0; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: #090D0F; }

/* Judging panel */
.edd-panel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; margin: 28px 0 8px; }
.edd-judge__img { display: block; width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 22px; background: linear-gradient(160deg, #F6F8FA 0%, #DCEBFB 45%, #7FB0E3 100%); }
.edd-judge figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.edd-judge__name { font-size: 15px; font-weight: 500; color: #090D0F; line-height: 1.3; }
.edd-judge__country { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #0068CC; font-weight: 500; }
.edd-judge__title { font-size: 13px; line-height: 1.45; color: #5B6266; }
.edd-sec--panel .edd-text + .edd-panel { margin-top: 28px; }

/* Image rows */
.edd-imgs { display: grid; gap: 14px; margin: 0 0 44px; }
.edd-sec + .edd-imgs { margin-top: -20px; }
.edd-img { margin: 0; min-width: 0; break-inside: avoid; }
.edd-img a { display: block; border-radius: 18px; overflow: hidden; background: #F6F8FA; }
.edd-img__img { display: block; width: 100%; height: auto; }
.edd-img figcaption { font-size: 13px; color: #5B6266; margin-top: 8px; line-height: 1.5; }
.edd-imgs--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edd-imgs--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.edd-imgs--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.edd-imgs--gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.edd-imgs--feature { grid-template-columns: 2fr 1fr; }
.edd-imgs--feature .edd-img:first-child { grid-row: span 2; }
.edd-imgs--natural { align-items: start; }
.edd-imgs--same .edd-img__img { aspect-ratio: 4 / 3; object-fit: cover; }
.edd-imgs--same.edd-imgs--one .edd-img__img { aspect-ratio: 16 / 9; }
/* Feature + same shape: the large image fills the height of the two stacked ones. */
.edd-imgs--same.edd-imgs--feature .edd-img:first-child { display: flex; flex-direction: column; }
.edd-imgs--same.edd-imgs--feature .edd-img:first-child a { position: relative; flex: 1; min-height: 240px; }
.edd-imgs--same.edd-imgs--feature .edd-img:first-child .edd-img__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
@media (min-width: 1025px) {
	.has-toc .edd-imgs--wide { width: calc(100% + 0px); }
	.is-short .edd-imgs--wide { margin-left: -170px; margin-right: -170px; }
}

.edd-ask { font-size: 15px; padding: 28px 0 0; border-top: 1px solid #DCE2E7; }

/* Other documents / overview cards */
.edd-other { max-width: 1290px; margin: 72px auto 96px; padding: 0 24px; }
.edd-other .edd-h2 { margin-top: 10px !important; }
.edd-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px !important; }
.edd-card { border-radius: 24px; background: #F6F8FA; padding: 22px; text-decoration: none; color: #090D0F !important; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 150px; height: 100%; }
.edd-card:hover { background: #EEF6FF; color: #0053A3 !important; }
.edd-card__kind { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #0068CC; font-weight: 500; }
.edd-card__title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.1; }
.edd-card__intro { font-size: 15px; line-height: 1.55; color: #30363A; }
.edd-cards--list { grid-template-columns: 1fr; margin: 0 0 96px !important; }
.edd-card--wide { min-height: 0; gap: 10px; }

/* Tablet */
@media (max-width: 1024px) {
	.edd-head { padding: 120px 40px 56px; }
	.edd-title { font-size: 72px; }
	.edd-wrap { margin-top: 48px; }
	.edd-toc { display: none; }
	.edd-toc-phone { display: block; grid-column: 1 / -1; border-radius: 24px; background: #F6F8FA; padding: 0 22px; }
	.edd-toc-phone summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 500; color: #090D0F; }
	.edd-toc-phone summary::-webkit-details-marker { display: none; }
	.edd-toc-phone summary span { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #0053A3; display: inline-flex; align-items: center; justify-content: center; }
	.edd-toc-phone summary span::before { content: "+"; font-size: 18px; }
	.edd-toc-phone[open] summary span::before { content: "–"; }
	.edd-toc-phone ul { padding-bottom: 14px; }
	.edd-toc-phone a { display: flex; gap: 12px; padding: 9px 0; font-size: 15px; line-height: 1.4; color: #30363A; text-decoration: none; }
	.edd-toc-phone .edd-toc__n { color: #7A8288; width: 22px; flex: none; }
	.edd-toc-phone .edd-toc__group { margin: 14px 0 4px; }
	.edd-doc { grid-column: 1 / -1; max-width: none; }
	.edd-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.edd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.edd-imgs--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 640px) {
	.edd-head { margin: 12px 12px 0; border-radius: 28px; padding: 104px 22px 40px; }
	.edd-title { font-size: 48px; }
	.edd-intro { font-size: 17px; }
	.edd-pdf { flex-direction: column; align-items: flex-start; }
	.edd-wrap, .edd-other { padding: 0 18px; }
	.edd-wrap { margin-top: 32px; }
	.edd-h2 { font-size: 32px; }
	.edd-text { font-size: 16px; }
	.edd-sec { padding: 36px 0; }
	.edd-crit__row { grid-template-columns: minmax(0, 1fr) 64px; }
	.edd-crit__w { font-size: 28px; }
	.edd-list--titled > li { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; }
	.edd-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.edd-cards { grid-template-columns: 1fr; }
	.edd-card { min-height: 0; }
	.edd-imgs--two, .edd-imgs--three, .edd-imgs--four, .edd-imgs--feature { grid-template-columns: 1fr; }
	.edd-imgs--feature .edd-img:first-child { grid-row: auto; }
	.edd-imgs--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.edd-imgs--same.edd-imgs--feature .edd-img:first-child a { min-height: 0; }
	.edd-imgs--same.edd-imgs--feature .edd-img:first-child .edd-img__img { position: static; aspect-ratio: 4 / 3; }
}

/* Print / Save as PDF */
@media print {
	@page { size: A4; margin: 16mm 16mm 18mm; }
	html, body { background: #fff !important; }
	body.edc-chrome { padding: 0 !important; }
	.edc-bar, .edc-bar-space, .edc-menu, .edc-footer, #wpadminbar, .edd-pdf, .edd-other, .edd-toc-phone, .edd-ask { display: none !important; }
	.edd { color: #222; font-size: 10.5pt; }
	.edd a { color: #0053A3; text-decoration: none; }
	.edd-print-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6mm; margin-bottom: 6mm; border-bottom: 1px solid #DCE2E7; font-size: 9pt; color: #5B6266; }
	.edd-print-note { display: block; font-size: 9pt; color: #5B6266; margin-top: 4mm !important; }
	.edd-head { margin: 0; padding: 0; border-radius: 0; background: none; }
	.edd-title { font-size: 30pt; margin-top: 2mm !important; }
	.edd-intro { font-size: 11pt; margin-top: 4mm !important; max-width: none; }
	.edd-meta { font-size: 9.5pt; margin-top: 4mm !important; }
	.edd-wrap { display: block; max-width: none; margin: 8mm 0 0; padding: 0; }
	.edd-toc { display: block !important; position: static; max-height: none; overflow: visible; padding: 5mm 0; margin-bottom: 4mm; border-top: 1px solid #DCE2E7; border-bottom: 1px solid #DCE2E7; }
	.edd-toc.is-long { break-after: page; } /* A long contents list gets its own page, as in the print design. */
	.edd-toc ul { columns: 2; column-gap: 10mm; margin-top: 3mm; }
	.edd-toc li { break-inside: avoid; }
	.edd-toc a { padding: 1mm 0; font-size: 9.5pt; color: #222; font-weight: 400 !important; }
	.edd-toc__group { margin: 3mm 0 1mm; font-size: 8pt; }
	.edd-doc { max-width: none; }
	.edd-sec { padding: 6mm 0; }
	.edd-num { font-size: 8pt; }
	.edd-h2 { font-size: 18pt; margin-top: 1mm !important; break-after: avoid; }
	.edd-text { font-size: 10.5pt; line-height: 1.5; margin-top: 3mm; }
	.edd-text > * + * { margin-top: 2mm !important; }
	.edd-list--dots { gap: 1.5mm; }
	.edd-list--num > li, .edd-list--titled > li, .edd-crit__row, .edd-judge, .edd-img, .edd-imgs { break-inside: avoid; }
	.edd-list--num > li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.edd-crit__bar, .edd-crit__bar span, .edd-list--dots > li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.edd-crit__row { padding: 3mm 0; }
	.edd-crit__w { font-size: 18pt; }
	.edd-panel { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4mm 3mm; }
	.edd-judge__img { border-radius: 3mm; }
	.edd-imgs { margin: 0 0 6mm; }
	.edd-imgs--wide { margin-left: 0 !important; margin-right: 0 !important; }
	.edd-img a { border-radius: 2mm; }
	.edd-img__img { max-height: 120mm; object-fit: contain; }
	.edd-imgs--same .edd-img__img { object-fit: cover; }
}
