/*
Theme Name: AuditCert Compliance
Description: One theme for the AuditCert specialist websites: Environmental Testing, Digital Product Passport and EU Packaging Regulation. It detects the plugin on each site and shows that site's pages. Fast, phone-first and search-friendly.
Version: 1.0.1
Author: AuditCert International
Author URI: https://auditcertintl.com
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: auditcert-compliance
*/

:root {
	--ink: #13294b;
	--text: #26364a;
	--muted: #586a7d;
	--line: #d9e1e9;
	--paper: #fff;
	--wash: #f4f6f8;
	--accent: #2f7d4f;
	--accent-dark: #225f3b;
	--accent-wash: #e9f4ed;
	--head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1120px;
}
.site-ppwr { --accent: #a4530f; --accent-dark: #7f3f0a; --accent-wash: #f9efe4; --wash: #f8f5f0; }
.site-dpp { --accent: #0d7377; --accent-dark: #09585b; --accent-wash: #e4f3f3; }
.site-portal { --accent: #1b6a9c; --accent-dark: #124f76; --accent-wash: #e6f1f8; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); font-family: var(--head); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.05rem, 5.2vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* Header */
.top { background: var(--ink); color: #d9e2ec; font-size: .86rem; }
.top .wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.top a { color: #fff; text-decoration: none; }
.top a:hover { text-decoration: underline; color: #fff; }
.top-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.head { position: relative; border-bottom: 1px solid var(--line); background: #fff; }
.head .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { flex: none; width: 46px; height: 46px; }
.brand b { display: block; font: 700 1.05rem/1.2 var(--head); }
.brand small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.nav ul { display: flex; flex-wrap: wrap; list-style: none; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav li { margin: 0; }
.nav a { display: block; padding: 9px 11px; color: var(--ink); text-decoration: none; font-size: .95rem; border-radius: 6px; }
.nav a:hover { background: var(--wash); }
.nav a[aria-current=page] { color: var(--accent-dark); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 7px; background: var(--accent); color: #fff !important; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); text-align: center; line-height: 1.25; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.nav a.btn { display: inline-flex; padding: 10px 18px; color: #fff; font-size: .95rem; border-radius: 7px; margin-left: 6px; }
.nav a.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink) !important; border-color: #9fb0c1; }
.btn-line:hover { background: var(--wash); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink) !important; border-color: #fff; }
.btn-light:hover { background: var(--accent-wash); border-color: var(--accent-wash); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.3em; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
	.menu-toggle { display: block; }
	.menu-toggle > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-weight: 600; font-size: .95rem; }
	.menu-toggle > summary::-webkit-details-marker { display: none; }
	.menu-toggle .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(19, 41, 75, .12); z-index: 20; padding: 8px 20px 16px; }
	.menu-toggle .nav ul { display: block; }
	.menu-toggle .nav a { padding: 12px 6px; border-bottom: 1px solid var(--wash); border-radius: 0; }
	.menu-toggle .nav .btn { margin-top: 10px; border-radius: 7px; }
	.nav-desk { display: none; }
}
@media (min-width: 901px) { .menu-toggle { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--accent-wash), #fff 92%); padding: clamp(36px, 7vw, 76px) 0 clamp(30px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 60px); align-items: start; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .7em; }
.lead { font-size: clamp(1.08rem, 2vw, 1.24rem); line-height: 1.55; color: var(--text); max-width: 62ch; }
.panel { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; padding: 22px; box-shadow: 0 10px 28px rgba(19, 41, 75, .07); }
.panel h2 { font-size: 1.2rem; margin-bottom: .55em; }
.panel p:last-child { margin-bottom: 0; }
.panel-date { display: block; font: 700 1.55rem/1.2 var(--head); color: var(--accent-dark); margin-bottom: .25em; }
.panel small { color: var(--muted); }
.panel form { margin: 0; }
.panel input[type=text], .panel input[type=search] { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid #a9b7c5; border-radius: 6px; font: inherit; margin-bottom: 8px; }
.panel button, .panel input[type=submit] { min-height: 44px; padding: 8px 18px; background: var(--accent); color: #fff; border: 0; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Page heads and sections */
.crumbs { font-size: .86rem; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 3px 7px; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 7px; color: #a2b0be; }
.page-head { padding: clamp(18px, 4vw, 40px) 0 clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-wash), #fff); }
.sec { padding: clamp(34px, 6vw, 62px) 0; }
.sec + .sec { padding-top: 0; }
.sec-wash { background: var(--wash); }
.sec.sec-wash, .sec-wash + .sec { padding-top: clamp(34px, 6vw, 62px); }
.sec-intro { max-width: 68ch; margin-bottom: 1.5em; color: var(--text); }
.prose { max-width: 72ch; }
.prose h3 { margin-top: 1.5em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; min-width: 0; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .03em; color: var(--accent-dark); background: var(--accent-wash); border-radius: 4px; padding: 2px 8px; margin-bottom: .6em; }
.src { display: block; color: var(--muted); font-size: .84rem; margin-top: .7em; line-height: 1.4; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px 26px; }
.steps > li { counter-increment: s; position: relative; padding-top: 44px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
caption { text-align: left; padding: 12px 14px 0; color: var(--muted); font-size: .88rem; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--ink); color: #fff; border-top: 0; font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink); }

/* The dated rail is the shared signature of these sites */
.rail { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.rail li { position: relative; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 18px; padding: 11px 0 11px 22px; margin: 0; }
.rail li::before { content: ""; position: absolute; left: -9px; top: 17px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid #a9b7c5; }
.rail li.done::before { background: #a9b7c5; }
.rail li.next { background: var(--accent-wash); border-radius: 0 8px 8px 0; }
.rail li.next::before { border-color: var(--accent); background: var(--accent); }
.rail time, .rail .when { font-weight: 700; color: var(--ink); }
.rail small { display: block; color: var(--muted); font-size: .85rem; }
.flag { display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 3px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 600px) { .rail li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 26px 12px 0; font: 700 1.1rem/1.35 var(--head); color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font: 400 1.5rem/1.2 var(--body); color: var(--accent-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { max-width: 70ch; }
.note { border-left: 4px solid var(--accent); background: var(--accent-wash); border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 0 0 1.2em; max-width: 72ch; }
.note p:last-child { margin-bottom: 0; }
.cta { background: var(--ink); color: #dfe7ef; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; max-width: 58ch; }
.cta .btns { margin-top: 0; }
.cta .btn-line { color: #fff !important; border-color: #8aa0b6; }
.cta .btn-line:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.sources { font-size: .92rem; color: var(--muted); }
.sources h2 { font-size: 1.1rem; }
.reviewed { font-size: .88rem; color: var(--muted); }

/* Plugin output inside the theme */
.embed { max-width: 100%; --acidpp-brand: var(--accent); }
.embed input, .embed select, .embed textarea { max-width: 100%; font: inherit; }
.acidpp-plan h4 { font-family: var(--head); }

/* Footer */
.foot { background: #0e1f3a; color: #c8d4e0; font-size: .94rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 26px; padding: 40px 0 26px; }
.foot h2 { color: #fff; font: 700 1rem/1.3 var(--body); margin-bottom: .7em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot address { font-style: normal; }
.foot-bar { border-top: 1px solid #2b3f5f; padding: 13px 0; font-size: .86rem; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
