/*
Theme Name: Image Load Lab
Theme URI: https://imageloadlab.com/
Author: Image Load Lab Editorial Desk
Description: A lightweight, data-first WordPress theme for reproducible image performance guides and browser tools.
Version: 1.0.5
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: imageloadlab
*/
:root { --bg: #071019; --panel: #101f2c; --panel-2: #132735; --line: #244253; --text: #eef8fb; --muted: #a9c0ca; --cyan: #19e1c1; --cyan-dark: #0ca68f; --orange: #ff8a5b; --red: #ff6b6b; --white: #fff; --ink: #071019; --radius: 18px; --shadow: 0 24px 70px rgba(0,0,0,.26); --sans: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; --mono: "SFMono-Regular",Consolas,"Liberation Mono",monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0px; background-image: ; background-position-x: ; background-position-y: ; background-repeat: ; background-attachment: ; background-origin: ; background-clip: ; background-color: ; background-size: 42px 42px; color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.72; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 4px; }
a:hover { color: rgb(127, 249, 231); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
code, pre, .mono, .metric, .eyebrow { font-family: var(--mono); }
code { color: rgb(159, 248, 233); }
pre { overflow-x: auto; padding: 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: rgb(5, 12, 18); color: rgb(201, 255, 245); font-size: 0.88rem; line-height: 1.6; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: 0.7rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-shell { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.reading-shell { width: min(760px, 100% - 2rem); margin-inline: auto; }
.site-header { position: sticky; top: 0px; z-index: 50; border-bottom: 1px solid rgba(169, 192, 202, 0.16); background: rgba(7, 16, 25, 0.9); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--white); font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 38px; height: 38px; }
.brand-mark .dial { transform-origin: center center; transition: transform 0.25s; }
.brand:hover .dial { transform: rotate(26deg); }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { padding: 0.45rem 0.72rem; border-radius: 8px; color: rgb(216, 232, 238); font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--panel); color: var(--cyan); }
.nav-cta { border: 1px solid var(--cyan-dark); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--white); padding: 0.55rem 0.7rem; }
.hero { padding: 7rem 0px 4.6rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0px, 1.2fr) minmax(310px, 0.8fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.eyebrow { color: var(--cyan); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--white); line-height: 1.13; letter-spacing: -0.035em; }
h1 { margin: 0.7rem 0px 1.25rem; font-size: clamp(2.65rem, 7vw, 5.65rem); }
h2 { margin: 2.7rem 0px 1rem; font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { margin: 1.9rem 0px 0.65rem; font-size: 1.28rem; }
.hero-lead { max-width: 690px; color: rgb(191, 210, 218); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.65rem 1.05rem; border: 1px solid var(--cyan); border-radius: 10px; background: var(--cyan); color: rgb(4, 16, 14); font-weight: 800; text-decoration: none; }
.button:hover { background: rgb(127, 249, 231); color: rgb(4, 16, 14); }
.button-secondary { background: transparent; color: var(--cyan); }
.button-secondary:hover { border-color: var(--white); background: var(--panel); color: var(--white); }
.lab-display { position: relative; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgb(17, 38, 52), rgb(11, 23, 34)); box-shadow: var(--shadow); }
.lab-display::before { content: "LIVE METHOD"; position: absolute; top: -12px; right: 18px; padding: 0.2rem 0.55rem; border: 1px solid var(--cyan-dark); border-radius: 999px; background: var(--bg); color: var(--cyan); font: 700 .65rem/1.4 var(--mono); letter-spacing: 0.1em; }
.meter-row { display: grid; grid-template-columns: 88px 1fr 54px; gap: 0.75rem; align-items: center; margin: 1rem 0px; font: 700 .76rem/1.3 var(--mono); color: rgb(184, 206, 214); }
.meter { height: 10px; overflow: hidden; border-radius: 999px; background: rgb(6, 16, 25); }
.meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan-dark),var(--cyan)); }
.meter-row:nth-child(3) .meter > i { background: linear-gradient(90deg,#cf5d3d,var(--orange)); }
.lab-note { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.86rem; }
.section { padding: 4.8rem 0px; }
.section-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 1.7rem; }
.section-heading h2 { margin: 0.35rem 0px 0px; }
.section-heading p { max-width: 520px; margin: 0px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 1rem; }
.card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16, 31, 44, 0.92); box-shadow: rgba(0, 0, 0, 0.12) 0px 10px 30px; transition: transform 0.2s, border-color 0.2s; }
.card:hover { border-color: rgb(62, 109, 128); transform: translateY(-2px); }
.card h3 { margin: 0.55rem 0px 0.7rem; }
.card h3 a { color: var(--white); text-decoration: none; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .card-link { margin-top: auto; font-weight: 750; text-decoration: none; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; color: rgb(134, 164, 176); font: 700 .7rem/1.4 var(--mono); text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 0.3rem; border-radius: 50%; background: var(--cyan); box-shadow: rgba(25, 225, 193, 0.1) 0px 0px 0px 4px; }
.value-strip { border-block: 1px solid var(--line); background: rgba(11, 23, 34, 0.86); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { padding: 1.8rem; border-right: 1px solid var(--line); }
.value-item:last-child { border-right: 0px; }
.value-item strong { display: block; color: var(--cyan); font: 800 .75rem/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
.value-item p { margin: 0.45rem 0px 0px; color: rgb(192, 211, 218); font-size: 0.93rem; }
.page-hero, .article-hero { padding: 5rem 0px 2.2rem; }
.page-hero h1, .article-hero h1 { max-width: 930px; font-size: clamp(2.35rem, 6vw, 4.9rem); }
.article-summary, .page-summary { max-width: 780px; color: rgb(192, 212, 220); font-size: 1.2rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-top: 1.4rem; color: rgb(146, 173, 186); font: 700 .72rem/1.4 var(--mono); text-transform: uppercase; }
.article-layout { display: grid; grid-template-columns: minmax(0px, 760px) 230px; gap: 4rem; align-items: start; }
.article-body { min-width: 0px; padding-bottom: 4rem; }
.article-body > p:first-of-type { font-size: 1.15rem; color: rgb(215, 232, 237); }
.article-body p, .article-body li { color: rgb(199, 217, 223); }
.article-body a { font-weight: 650; }
.article-body blockquote { margin: 2rem 0px; padding: 0.4rem 0px 0.4rem 1.3rem; border-left: 3px solid var(--cyan); color: rgb(217, 237, 242); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6rem 0px; font-size: 0.92rem; }
.article-body th, .article-body td { padding: 0.8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--panel-2); color: var(--white); }
.article-body td { background: rgba(16, 31, 44, 0.6); color: rgb(199, 217, 223); }
.lab-callout { margin: 1.8rem 0px; padding: 1.2rem; border-top-color: ; border-top-style: ; border-top-width: ; border-right-color: ; border-right-style: ; border-right-width: ; border-bottom-color: ; border-bottom-style: ; border-bottom-width: ; border-image-source: ; border-image-slice: ; border-image-width: ; border-image-outset: ; border-image-repeat: ; border-left: 4px solid var(--cyan); border-radius: 12px; background: var(--panel); }
.lab-callout.warning { border-left-color: var(--orange); }
.lab-callout strong { display: block; color: var(--white); }
.lab-callout p:last-child { margin-bottom: 0px; }
.checklist { padding-left: 0px; list-style: none; }
.checklist li { position: relative; padding-left: 1.75rem; margin: 0.6rem 0px; }
.checklist li::before { content: "✓"; position: absolute; left: 0px; color: var(--cyan); font-weight: 900; }
.article-side { position: sticky; top: 100px; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 23, 34, 0.92); }
.article-side h2 { margin: 0px 0px 0.6rem; font-size: 0.85rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.article-side a { display: block; padding: 0.45rem 0px; border-bottom: 1px solid rgba(36, 66, 83, 0.6); color: rgb(190, 210, 218); font-size: 0.83rem; text-decoration: none; }
.article-side a:last-child { border-bottom: 0px; }
.source-list { margin-top: 2.4rem; padding: 1.25rem; border: 1px dashed var(--line); border-radius: 12px; }
.source-list h2 { margin-top: 0px; font-size: 1.3rem; }
.tool-wrap { margin: 2rem 0px 3rem; padding: clamp(1rem, 4vw, 2rem); border: 1px solid rgb(47, 89, 104); border-radius: var(--radius); background: linear-gradient(145deg, rgb(16, 38, 52), rgb(11, 24, 35)); box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 1rem; }
.tool-field { display: grid; gap: 0.35rem; }
.tool-field span { color: rgb(167, 192, 202); font: 700 .72rem/1.4 var(--mono); text-transform: uppercase; }
.tool-field input, .tool-field select, .tool-field textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.8rem; border: 1px solid rgb(49, 81, 96); border-radius: 9px; background: rgb(7, 18, 27); color: var(--white); }
.tool-field input:focus, .tool-field select:focus, .tool-field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.drop-zone { grid-column: 1 / -1; padding: 2.2rem 1rem; border: 2px dashed rgb(50, 96, 112); border-radius: 12px; text-align: center; color: rgb(190, 209, 217); }
.drop-zone.is-dragging { border-color: var(--cyan); background: rgba(25, 225, 193, 0.08); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.tool-result { margin-top: 1.3rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgb(7, 18, 27); }
.tool-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.metric { padding: 0.8rem; border: 1px solid rgb(33, 63, 77); border-radius: 9px; background: rgb(11, 25, 36); }
.metric small { display: block; color: rgb(143, 170, 181); }
.metric strong { color: var(--cyan); font-size: 1.15rem; }
.preview-canvas { width: 100%; max-height: 480px; object-fit: contain; margin-top: 1rem; border-radius: 10px; background: repeating-conic-gradient(rgb(16, 33, 45) 0deg, rgb(16, 33, 45) 25%, rgb(11, 24, 34) 0deg, rgb(11, 24, 34) 50%) 0px center / 24px 24px; }
.code-output { white-space: pre-wrap; word-break: break-word; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 1rem; margin: 1.5rem 0px; }
.trust-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.trust-card h3 { margin-top: 0px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.notice { padding: 0.85rem 1rem; border-radius: 10px; background: rgba(25, 225, 193, 0.12); color: rgb(202, 255, 246); }
.notice.error { background: rgba(255, 107, 107, 0.12); color: rgb(255, 212, 212); }
.site-footer { border-top: 1px solid var(--line); background: rgb(5, 12, 18); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding: 3.8rem 0px 2rem; }
.footer-grid h2 { margin: 0px 0px 0.8rem; font: 800 .75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid p { color: rgb(143, 168, 179); font-size: 0.88rem; }
.footer-grid a { display: block; margin: 0.42rem 0px; color: rgb(184, 204, 212); font-size: 0.88rem; text-decoration: none; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0px 2rem; border-top: 1px solid rgb(20, 39, 51); color: rgb(114, 142, 154); font: 650 .7rem/1.5 var(--mono); }
.cookie-banner { position: fixed; right: 1rem; bottom: 1rem; z-index: 100; width: min(450px, 100% - 2rem); padding: 1.15rem; border: 1px solid rgb(49, 81, 96); border-radius: 14px; background: rgb(13, 29, 41); box-shadow: var(--shadow); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0px 0px 0.4rem; font-size: 1rem; }
.cookie-banner p { margin: 0px 0px 0.8rem; color: rgb(173, 195, 204); font-size: 0.82rem; }
.search-form { display: flex; gap: 0.5rem; }
.search-field { flex: 1 1 0%; min-width: 0px; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 9px; background: rgb(7, 18, 27); color: var(--white); }
.pagination { display: flex; gap: 0.5rem; margin: 2rem 0px 4rem; }
.pagination .page-numbers { padding: 0.45rem 0.72rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.sitemap-list { columns: 2; column-gap: 2rem; }
.sitemap-list li { break-inside: avoid; margin: 0.5rem 0px; }
@media (max-width: 900px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .article-side { position: static; order: -1; }
  .article-side a { display: inline-block; margin-right: 0.7rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; position: absolute; top: 76px; left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; padding: 0.8rem; border: 1px solid var(--line); border-radius: 12px; background: rgb(9, 21, 31); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero { padding-top: 4.5rem; }
  .card-grid, .value-grid, .tool-grid, .tool-result-grid, .trust-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .value-item { border-right: 0px; border-bottom: 1px solid var(--line); }
  .section-heading, .footer-bottom { align-items: start; flex-direction: column; }
  .form-grid .full, .drop-zone { grid-column: auto; }
  .sitemap-list { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition: none !important; animation: auto ease 0s 1 normal none running none !important; }
}
@media print {
  .site-header, .site-footer, .cookie-banner, .article-side { display: none !important; }
  body { background: rgb(255, 255, 255); color: rgb(17, 17, 17); font-size: 12pt; }
  h1, h2, h3, .article-body p, .article-body li { color: rgb(17, 17, 17); }
  a { color: rgb(17, 17, 17); }
}
/* Keep wide evidence tables contained on narrow screens. */
.article-body{min-width:0}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-wrap table{min-width:520px}
