/* IFC file checker page (pSEO). Uses the site tokens from site.css; nothing else is shared. */
.ifc-sec { padding: 96px 0; }
.ifc-sec + .ifc-sec, .ifc-sec.ruled { border-top: 1px solid var(--line); }
.ifc-head { max-width: 46em; margin-bottom: 40px; }
.ifc-head .h2 { margin-top: 18px; }
.ifc-head .lede { margin-top: 18px; }

/* the tool */
.ifc { background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 28px; box-shadow: 0 40px 120px -50px rgba(0, 0, 0, .7); }
.ifc-tools-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ifc-tools-h h2 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.ifc-zone { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 56px 20px; border: 1.5px dashed var(--line-3); border-radius: 8px; background: rgba(var(--bg-rgb), .45); cursor: pointer; transition: border-color .2s, background-color .2s; }
.ifc-zone[hidden] { display: none; }
.ifc-zone:hover, .ifc-zone.drag { border-color: var(--accent-hi); background: rgba(var(--accent-rgb), .08); }
.ifc-zone:focus-within { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.ifc-zone.busy { opacity: .6; pointer-events: none; }
.ifc-zone input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.ifc-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(var(--accent-rgb), .14); color: var(--accent-hi); margin-bottom: 10px; }
.ifc-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ifc-zone strong { font-size: 19px; font-weight: 500; letter-spacing: -.012em; }
.ifc-zone .or { font-size: 14.5px; color: var(--ink-2); }
.ifc-zone .pick { color: var(--accent-hi); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .5); text-underline-offset: 3px; font-weight: 500; }
.ifc-zone .hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.ifc-priv { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ifc-priv svg { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--ok); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ifc-nojs { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
.ifc.ready .ifc-nojs { display: none; }
.ifc:not(.ready) .ifc-zone { opacity: .5; pointer-events: none; }

/* progress */
.ifc-status:not(:empty) { margin-top: 20px; }
.ifc-reading { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.ifc-bar { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.ifc-bar-fill { height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width .2s var(--ease); }
.ifc-pct { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

/* notes (verdict, errors) */
.ifc-note { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 15px; line-height: 1.55; }
.ifc-note p + p { margin-top: 4px; }
.ifc-note::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: currentColor; }
.ifc-note.ok { color: var(--ok); background: var(--ok-bg); border-color: rgba(124, 203, 152, .35); }
.ifc-note.warn { color: var(--warn); background: var(--warn-bg); border-color: rgba(237, 184, 95, .4); }
.ifc-note > * { color: var(--ink); }
.ifc-status .ifc-note { margin-top: 0; }
.ifc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; overflow-wrap: anywhere; }

/* result */
.ifc-result:not(:empty) { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.ifc-res-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ifc-res-title { min-width: 0; }
.ifc-res-title h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ifc-res-title h3:focus { outline: none; }
.ifc-size { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.ifc-sub { margin-top: 32px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ifc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ifc-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.ifc-card.wide { grid-column: 1 / -1; }
.ifc-card dt { font-size: 13.5px; color: var(--ink-2); }
.ifc-card dd { margin-top: 4px; font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ifc-card dd.text { font-size: 17px; letter-spacing: -.01em; }
.ifc-card-note { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.ifc-readout { margin-top: 12px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 46em; }
.ifc-cta { margin-top: 32px; padding: 26px; border-radius: 8px; background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .35); }
.ifc-cta h3 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.ifc-cta p { margin-top: 8px; font-size: 16px; color: var(--ink-2); max-width: 36em; }
.ifc-cta .ctas { margin-top: 20px; }

/* how it works */
.ifc-how { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.ifc-how .h2 { margin-top: 18px; }
.ifc-how .lede { margin-top: 18px; }
.ifc-list { list-style: none; border-top: 1px solid var(--line-2); }
.ifc-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; }
.ifc-list .num { font-size: 13px; color: var(--accent-hi); letter-spacing: .08em; padding-top: 4px; }
.ifc-faq-wrap { max-width: 860px; }
.ifc-faq-wrap .faq { margin-top: 32px; }
.ifc-related { margin-top: 36px; font-size: 15.5px; color: var(--ink-2); }
.ifc-related a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.ifc-related a:hover { text-decoration-color: var(--ink); }
.ifc-meta { margin-top: 20px; font-size: 13.5px; color: var(--ink-3); }

@media (max-width: 900px) {
  .ifc-how { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .ifc-sec { padding: 64px 0; }
  .ifc { padding: 18px; }
  .ifc-zone { padding: 40px 14px; }
  .ifc-grid { grid-template-columns: repeat(2, 1fr); }
  .ifc-card dd { font-size: 26px; }
  .ifc-cta { padding: 20px; }
  .ifc-cta .ctas .btn { flex: 1 1 100%; justify-content: center; }
  .ifc-list li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ifc-zone, .ifc-bar-fill { transition: none; }
}

/* hero: shorter than a content page, the tool follows straight below */
.ph.ifc-ph { padding: calc(var(--hd) + 56px) 0 48px; border-bottom: 0; }
.ph.ifc-ph .h1 { max-width: 15em; font-size: clamp(38px, 4.6vw, 62px); margin-top: 18px; }
.ph.ifc-ph .lede { margin-top: 20px; }
.ph.ifc-ph .crumbs { margin-bottom: 22px; }
.nb { white-space: nowrap; }
@media (max-width: 760px) { .ph.ifc-ph { padding: calc(var(--hd) + 36px) 0 28px; } }
