/* Editorial Guidelines page (builds on about.css) */
html { scroll-padding-top: 90px; }

.eg-hero { background: var(--aap-mint); padding: 56px 0 64px; }
.eg-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eg-hero__title { font-size: clamp(42px, 5.4vw, 68px); line-height: 1.02; margin: 0 0 18px; }
.eg-hero__title em { color: var(--aap-accent); font-style: italic; }
.eg-hero__lede { font-size: 19px; color: var(--aap-muted); max-width: 580px; }
.eg-hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px !important; }
.eg-hero__meta li { background: #fff; border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.eg-hero__meta strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--aap-accent); }
.eg-hero__img { position: relative; margin: 0; border-radius: 26px; overflow: visible; }
.eg-hero__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--aap-shadow); }
.eg-hero__badge { position: absolute; left: -18px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px rgba(28, 25, 23, .14); animation: ab-float 7s ease-in-out infinite; }
.eg-hero__badge span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--aap-accent); color: #fff; font-size: 13px; }

/* Layout with sticky contents */
.eg-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding-block: 56px 24px; align-items: start; }
.eg-toc { position: sticky; top: 96px; }
.eg-toc__title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--aap-accent); margin-bottom: 10px !important; }
.eg-toc ol { list-style: none; counter-reset: eg; border-left: 2px solid var(--aap-line); }
.eg-toc li { counter-increment: eg; }
.eg-toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; color: var(--aap-muted); transition: color .2s, border-color .2s; }
.eg-toc a::before { content: counter(eg, decimal-leading-zero); font-size: 12px; font-weight: 700; opacity: .6; padding-top: 2px; }
.eg-toc a:hover { color: var(--aap-ink); }
.eg-toc a.is-active { color: var(--aap-accent); border-color: var(--aap-accent); font-weight: 700; }
.eg-toc__progress { height: 4px; border-radius: 4px; background: var(--aap-line); margin-top: 18px; overflow: hidden; }
.eg-toc__progress span { display: block; height: 100%; width: 0; background: var(--aap-accent); transition: width .1s linear; }

.eg-main { min-width: 0; }
.eg-sec { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--aap-line); }
.eg-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.eg-sec > .aap-label { font-family: var(--aap-serif); font-size: 18px; letter-spacing: 0; }
.eg-sec p { font-size: 18px; }
.eg-intro { color: var(--aap-muted); }

/* Commitments */
.eg-commit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.eg-commit > div { padding: 24px; border-radius: 20px; background: var(--aap-cream); transition: transform .25s var(--aap-ease), box-shadow .25s; }
.eg-commit > div:nth-child(2) { background: var(--aap-mint); }
.eg-commit > div:nth-child(3) { background: var(--aap-blush); }
.eg-commit > div:nth-child(4) { background: #EEF0F7; }
.eg-commit > div:hover { transform: translateY(-4px); box-shadow: var(--aap-shadow); }
.eg-commit__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--aap-accent); font-size: 18px; margin-bottom: 12px; }
.eg-commit h3 { font-size: 26px; margin-bottom: 6px; }
.eg-commit p { margin: 0; font-size: 16px !important; color: var(--aap-muted); }

/* Source tiers */
.eg-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 24px; }
.eg-tiers__bar { display: grid; gap: 8px; justify-items: center; }
.eg-tier { width: var(--w); display: flex; flex-direction: column; align-items: center; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--aap-mint); color: var(--aap-accent); text-align: center; transition: transform .2s var(--aap-ease), box-shadow .2s, background .2s, color .2s; }
.eg-tier--1 { background: #D3E6DF; }
.eg-tier--2 { background: #BFDBD0; }
.eg-tier--3 { background: var(--aap-blush); color: var(--aap-news); }
.eg-tier:hover { transform: scale(1.02); color: var(--aap-accent); }
.eg-tier--3:hover { color: var(--aap-news); }
.eg-tier[aria-selected="true"] { background: var(--aap-accent); color: #fff; box-shadow: 0 10px 22px rgba(0, 79, 68, .25); }
.eg-tier--3[aria-selected="true"] { background: var(--aap-news); }
.eg-tier__k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.eg-tier__n { font-family: var(--aap-serif); font-size: 20px; line-height: 1.15; }
.eg-tiers__panel { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--aap-line); animation: ab-in .4s var(--aap-ease); }
.eg-tiers__panel h3 { font-size: 26px; }
.eg-tiers__panel p { color: var(--aap-muted); font-size: 16px !important; }
.eg-tiers__panel ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.eg-tiers__panel li { padding: 6px 12px; border-radius: 999px; background: var(--aap-mint); font-size: 14px; font-weight: 600; }
.eg-tiers__panel--3 li { background: var(--aap-blush); text-decoration: line-through; text-decoration-color: rgba(107, 20, 20, .5); }

/* Health */
.eg-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.eg-split--img { grid-template-columns: 1.1fr .9fr; align-items: center; }
.eg-ticks { list-style: none; display: grid; gap: 10px; }
.eg-ticks li { position: relative; padding-left: 32px; }
.eg-ticks li::before { content: "\2713"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--aap-mint); color: var(--aap-accent); font-size: 12px; font-weight: 800; }
.eg-note { border-radius: 18px; padding: 22px; }
.eg-note--alert { background: var(--aap-blush); border-left: 4px solid var(--aap-news); }
.eg-note__title { font-family: var(--aap-serif); font-size: 22px !important; color: var(--aap-news); margin-bottom: 6px !important; }
.eg-note p:last-child { margin: 0; font-size: 16px !important; }
.eg-img { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.eg-img img { width: 100%; height: 100%; object-fit: cover; }

/* Products */
.eg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.eg-cards > div { padding: 20px; border-radius: 18px; border: 1px solid var(--aap-line); }
.eg-cards strong { display: block; font-family: var(--aap-serif); font-weight: 400; font-size: 21px; margin-bottom: 6px; }
.eg-cards p { margin: 0; font-size: 15px !important; color: var(--aap-muted); }

/* Style checklist */
.eg-check { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.eg-check button { display: flex; width: 100%; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--aap-line); border-radius: 14px; background: #fff; color: var(--aap-ink); font-size: 17px; font-weight: 600; text-align: left; transition: background .2s, border-color .2s; }
.eg-check button:hover { border-color: var(--aap-accent); background: #fff; color: var(--aap-ink); }
.eg-check__box { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--aap-accent); transition: background .2s, transform .2s var(--aap-ease); }
.eg-check button[aria-pressed="true"] { background: var(--aap-mint); border-color: var(--aap-accent); }
.eg-check button[aria-pressed="true"] .eg-check__box { background: var(--aap-accent); transform: scale(1.08); }
.eg-check button[aria-pressed="true"] .eg-check__box::after { content: "\2713"; color: #fff; font-size: 15px; font-weight: 800; }
.eg-check__done { margin-top: 14px !important; padding: 14px 18px; border-radius: 14px; background: var(--aap-accent); color: #fff; font-weight: 700; animation: ab-in .4s var(--aap-ease); }

/* Corrections */
.eg-table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.eg-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.eg-table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--aap-muted); padding: 10px 12px; border-bottom: 2px solid var(--aap-line); }
.eg-table td { padding: 14px 12px; border-bottom: 1px solid var(--aap-line); vertical-align: top; }
.eg-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.eg-tag--c { background: var(--aap-blush); color: var(--aap-news); }
.eg-tag--u { background: var(--aap-mint); color: var(--aap-accent); }
.eg-tag--k { background: var(--aap-cream); color: #7A5418; }
.eg-report { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: 20px; background: var(--aap-cream); }
.eg-report h3 { font-size: 26px; margin-bottom: 4px; }
.eg-report p { margin: 0; font-size: 16px !important; color: var(--aap-muted); }
.eg-acc { background: var(--aap-cream); }

@media (max-width: 960px) {
	.eg-hero__grid, .eg-layout, .eg-split, .eg-split--img, .eg-tiers { grid-template-columns: 1fr; }
	.eg-toc { position: static; background: var(--aap-cream); border-radius: 18px; padding: 18px 20px; }
	.eg-toc ol { columns: 2; column-gap: 16px; border-left: 0; }
	.eg-toc a { border-left: 0; padding-left: 0; }
	.eg-toc__progress { display: none; }
	.eg-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.eg-hero { padding: 36px 0 48px; }
	.eg-hero__badge { left: 10px; bottom: 12px; font-size: 12px; }
	.eg-commit { grid-template-columns: 1fr; }
	.eg-toc ol { columns: 1; }
	.eg-sec { padding-bottom: 40px; margin-bottom: 40px; }
	.eg-tier { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .eg-hero__badge { animation: none; } }
