/*
 * ScaleOps Inner Page Styles
 * Loaded on all non-homepage pages.
 */

/* ── PAGE OFFSET (below fixed nav + scarcity bar) ──────── */
body:not(.home) {
    padding-top: calc( var(--scarcity-height, 0px) + 64px );
}

/* ── PAGE HERO ─────────────────────────────────────────── */
.ip-hero {
    background: var(--navy);
    padding: 72px 24px 64px;
    text-align: center;
}
.ip-hero--light {
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
}
.ip-hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    font-weight: 400;
    line-height: 1.2;
    max-width: 760px;
    margin: 16px auto 0;
}
.ip-hero-title em { font-style: italic; color: var(--accent-light); }
.ip-hero-title--dark { color: var(--navy); }
.ip-hero .section-label { color: var(--accent-light); margin-bottom: 12px; }
.ip-hero--light .section-label { color: var(--accent); }
.ip-meta {
    font-size: 0.82rem;
    color: var(--light-gray);
    margin-top: 16px;
}
.ip-hero--light .ip-meta { color: var(--gray); }

/* ── INNER SECTIONS ────────────────────────────────────── */
.ip-section { padding: 72px 24px; }
.ip-section--alt { background: var(--off-white); }
.ip-content { max-width: 840px; }

.ip-p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 20px;
}

/* ── PULL QUOTE ────────────────────────────────────────── */
.ip-pullquote {
    border-left: 3px solid var(--teal);
    background: var(--teal-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 28px;
    margin: 32px 0;
}
.ip-pullquote p {
    font-family: 'Instrument Serif', serif;
    font-size: 1.15rem;
    color: var(--navy);
    line-height: 1.6;
    margin: 0;
}

/* ── PILLARS GRID (About page) ─────────────────────────── */
.ip-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.ip-pillar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.ip-pillar:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.ip-pillar-icon { font-size: 1.6rem; margin-bottom: 12px; }
.ip-pillar h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.ip-pillar p  { font-size: 0.85rem; color: var(--gray); line-height: 1.6; margin: 0; }

/* ── FOUNDER SECTION ────────────────────────────────────── */
.ip-founder-section { background: var(--off-white); }

/* ── LEGAL CONTENT ─────────────────────────────────────── */
.ip-legal h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.ip-legal h2:first-child { margin-top: 0; }
.ip-legal h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 28px 0 12px;
}
.ip-legal p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 16px;
}
.ip-legal ul {
    margin: 0 0 16px 20px;
    color: var(--slate);
}
.ip-legal li {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 6px;
}
.ip-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.ip-legal a:hover { color: var(--navy); }
.ip-legal strong { font-weight: 600; color: var(--navy); }
.ip-legal code {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.85rem;
    color: var(--teal);
    font-family: 'Courier New', monospace;
}

/* ── TABLE ─────────────────────────────────────────────── */
.ip-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.ip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.ip-table th {
    background: var(--off-white);
    color: var(--navy);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.ip-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--slate);
    vertical-align: top;
    line-height: 1.6;
}
.ip-table tr:last-child td { border-bottom: none; }
.ip-table tr:hover td { background: var(--off-white); }

/* ── BADGES ────────────────────────────────────────────── */
.ip-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.ip-badge--green { background: #d1fae5; color: #065f46; }
.ip-badge--blue  { background: var(--accent-soft); color: var(--accent); }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
    .ip-section { padding: 48px 20px; }
    .ip-hero { padding: 48px 20px 40px; }
    .ip-pillars { grid-template-columns: 1fr 1fr; }
    .ip-table { font-size: 0.8rem; }
    .ip-table th, .ip-table td { padding: 8px 10px; }
}
@media (max-width: 480px) {
    .ip-pillars { grid-template-columns: 1fr; }
}
