/* cookware-pan-guide - page styles. Loads after /css/tokens.css, /css/components.css and /css/tools.css.
   Moved here from the page's <style> block with values converted to Ledger tokens. */

/* ---- Cookware & Pan Guide Styles ---- */

.tab-controls-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

/* the view tabs are the kit segmented control (tool-parts.css); on a narrow screen the
   three labels wrap inside their pills instead of widening the page */
.studio-tool .tab-controls-wrapper .segmented { max-width: 100%; }
.studio-tool .tab-controls-wrapper .segmented > button { line-height: 1.25; text-align: center; }
@media (max-width: 480px) {
    .studio-tool .tab-controls-wrapper .segmented > button { padding: .5em .75em; letter-spacing: .03em; }
}
@media (max-width: 360px) {
    .studio-tool .tab-controls-wrapper .segmented > button { padding: .5em .55em; letter-spacing: 0; font-size: calc(var(--text-xs) * .9); }
}

.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
}

/* ---- Advisor Layout ---- */
.selector-card {
    border-color: var(--accent);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 760px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .split-col-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

/* result panels are the kit .results; inside them the parts sit closer than the kit's default gap */
.studio-tool .results.primary-rec-card,
.studio-tool .results.explanation-card { gap: var(--space-3); }
/* panels side by side share a height; their content stays at the top */
.studio-tool .tab-view .results { align-content: start; }

/* each panel's label is the kit's small uppercase result label (as .results__hero .lbl on the brine pilot) */
.studio-tool .results > div.lbl,
.studio-tool .results .sec-label.lbl {
    font: 600 var(--text-xs)/1.3 var(--font-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.rec-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    margin: 0 0 var(--space-2);
    color: var(--text);
}

.details-section {
    margin-bottom: 12px;
}

.details-section:last-child {
    margin-bottom: 0;
}

/* the kit .lbl draws the label; this only stacks it over its value */
.sec-label {
    display: block;
    margin-bottom: var(--space-1);
}

/* the two answers under the material name: kit result values */
.badge-accent,
.badge-neutral {
    font: 600 var(--text-lg)/1.35 var(--font-sans);
    color: var(--text);
}

/* ---- Spec Profile Grid ---- */
/* three across (six left the kit-size labels no room), two on a phone, one on the narrowest */
.spec-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 480px) {
    .spec-matrix-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .studio-tool :is(.results, .glass) .spec-matrix-grid .spec-cell .lbl { letter-spacing: 0; font-size: calc(var(--text-xs) * .92); }
}
@media (max-width: 360px) {
    .spec-matrix-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.spec-cell {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

/* the kit's small uppercase result label (as .results__hero .lbl), the same in the
   advisor's result panel and in the explorer's cards */
.studio-tool :is(.results, .glass) .spec-cell .lbl {
    font: 600 var(--text-xs)/1.3 var(--font-sans);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.spec-cell .val {
    font: 600 var(--text-sm)/1.4 var(--font-sans);
    color: var(--text);
    overflow-wrap: anywhere;
}

/* ---- List items for alternative/avoid ---- */
.item-badge {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    font: 500 var(--text-sm)/1.4 var(--font-sans);
    color: var(--text);
}

.item-badge.avoid {
    border-left: 4px solid var(--error);
}

.item-badge.alt {
    border-left: 4px solid var(--primary);
}

/* the script writes its warnings as .advisor-alert; they are drawn as the kit's
   warning message (tool-parts.css .alert.alert--warning) */
.advisor-alert {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-left-width: 4px;
    color: var(--text);
    font: 400 var(--text-sm)/1.5 var(--font-sans);
    margin-bottom: 24px;
}

.advisor-alert .icon {
    flex: none;
    font-size: var(--text-base);
    line-height: 1.4;
}

.advisor-alert p {
    margin: 0;
    color: var(--text);
}

.advisor-alert b {
    color: var(--warning);
}

/* the cleanup note is a kit info message with its title over its text */
.studio-tool .alert.cleanup-note {
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

/* ---- Copy link ---- */
.share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.share-status {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

/* ---- Materials Explorer ---- */
.materials-explorer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.material-card {
    padding: 22px;
}

.material-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.material-card-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
}

.material-shapes {
    font-family: var(--font-ui); font-weight:600;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.pc-col h4 {
    font-family: var(--font-ui); font-weight:600;
    font-size: 10px;
    text-transform: uppercase;
    margin: 0 0 8px;
    letter-spacing: var(--tracking-label);
}

.pc-col.pros h4 { color: var(--pos); }
.pc-col.cons h4 { color: var(--neg); }

.pc-col ul {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
}

.pc-col.pros li::marker { color: var(--pos); }
.pc-col.cons li::marker { color: var(--neg); }

/* ---- Comparison Table ---- */
/* the matrix is the kit .table; its nine headings may wrap so it fits the panel */
.studio-tool .table.comparison-table thead th { white-space: normal; letter-spacing: .03em; font-size: calc(var(--text-xs) * .92); }
.studio-tool .table.comparison-table :is(th, td) { padding: .75em .5em; }

.comparison-table tbody tr:hover {
    background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.comparison-table tr td:first-child {
    font-weight: 700;
    color: var(--accent);
}

/* yes / no / limited chips: the kit's status colours, at the kit's smallest label size */
.comparison-table .badge-static {
    font: 600 calc(var(--text-xs) * .85)/1.25 var(--font-sans);
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 3px 5px;
    border-radius: 4px;
    display: inline-block;
}

.comparison-table .badge-static.yes {
    background: color-mix(in oklab, var(--pos) 15%, transparent);
    color: var(--pos);
    border: 1px solid color-mix(in oklab, var(--pos) 30%, transparent);
}

.comparison-table .badge-static.no {
    background: color-mix(in oklab, var(--neg) 15%, transparent);
    color: var(--neg);
    border: 1px solid color-mix(in oklab, var(--neg) 30%, transparent);
}

.comparison-table .badge-static.limited {
    background: color-mix(in oklab, var(--warn) 15%, transparent);
    color: var(--warn);
    border: 1px solid color-mix(in oklab, var(--warn) 30%, transparent);
}

.page.tool-shell { max-width: 1000px; padding-top: 28px; }
.net-band { max-width: 1000px; margin: 56px auto 0; padding: 0 28px; }
.net-band h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 12px; }
.net-band h2 .lbl { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent); }
.net-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.net-grid .gear-img-wrapper { height: 120px; }
@media (max-width: 760px) { .net-grid { grid-template-columns: 1fr; } }
