/*
 * E568: Super Site layouts for existing WordPress categories, authors,
 * search, archives, published pages and not-found responses.
 * CSS presentation only; no taxonomy, SEO, publication or ad ownership.
 * Loaded only under the opt-in p63_super_theme_enabled flag.
 */
body.p63-super-theme .p63-main:not(.p63-home):not(.p63-single-layout) {
    width: min(var(--max), calc(100% - 36px));
    max-width: 100%;
    margin-inline: auto;
}
body.p63-super-theme .p63-archive-heading {
    margin: 18px 0 23px;
    padding: 0 0 17px;
    border-bottom: 1px solid var(--p63-line);
    display: block;
}
body.p63-super-theme .p63-archive-heading .p63-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--p63-brand);
}
body.p63-super-theme .p63-archive-heading h1,
body.p63-super-theme .p63-content-page h1,
body.p63-super-theme .p63-not-found h1 {
    margin: 0 0 11px;
    font-family: Georgia,serif;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.03em;
    color: var(--p63-ink);
}
body.p63-super-theme .p63-archive-description,
body.p63-super-theme .p63-search-intro,
body.p63-super-theme .p63-author-biography {
    max-width: 74ch;
    margin: 9px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--p63-muted);
}
body.p63-super-theme .p63-author-biography-pending {
    font-size: 13px;
    color: var(--p63-muted);
}
body.p63-super-theme .p63-section-index {
    margin: 11px 0 28px;
    padding: 13px 0 19px;
    border-block: 1px solid var(--p63-line);
}
body.p63-super-theme .p63-section-index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}
body.p63-super-theme .p63-section-index-list a {
    min-height: 37px;
    padding: 7px 12px;
    font-size: 12px;
    border: 1px solid var(--p63-line);
    border-radius: 7px;
    background: var(--surface);
    text-decoration: none;
    color: var(--p63-ink);
}
body.p63-super-theme .p63-section-index-list a:hover {
    border-color: var(--p63-brand);
    color: var(--p63-brand);
}
body.p63-super-theme .p63-main:not(.p63-home) .p63-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    margin: 0 0 28px;
}
body.p63-super-theme .p63-search-summary {
    margin: 12px 0 20px;
    color: var(--p63-muted);
    font-size: 13px;
}
body.p63-super-theme .p63-search-page form[role="search"],
body.p63-super-theme .p63-search-page .search-form,
body.p63-super-theme .p63-not-found form[role="search"],
body.p63-super-theme .p63-not-found .search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 17px 0 22px;
}
body.p63-super-theme .p63-search-page input[type="search"],
body.p63-super-theme .p63-not-found input[type="search"] {
    flex: 1 1 220px;
    width: auto;
    min-width: 0;
    min-height: 44px;
    border-radius: 7px;
    padding: 9px 12px;
    border: 1px solid var(--p63-line);
    color: var(--p63-text);
    background: var(--surface);
}
body.p63-super-theme .p63-search-page input[type="submit"],
body.p63-super-theme .p63-search-page button[type="submit"],
body.p63-super-theme .p63-not-found input[type="submit"],
body.p63-super-theme .p63-not-found button[type="submit"] {
    min-height: 44px;
    padding: 9px 15px;
    border: 0;
    border-radius: 7px;
    background: var(--p63-brand);
    color: #fff;
    font-weight: 800;
}
body.p63-super-theme .p63-not-found {
    min-height: 55vh;
    padding-block: 35px 70px;
}
body.p63-super-theme .p63-not-found > p {
    max-width: 64ch;
    line-height: 1.65;
}
body.p63-super-theme .p63-not-found > p > a {
    color: var(--p63-brand);
    font-weight: 800;
}
body.p63-super-theme .p63-content-page .p63-article {
    max-width: 78ch;
}
body.p63-super-theme .p63-content-page .p63-prose {
    font-size: 1.07rem;
    line-height: 1.75;
}
body.p63-super-theme .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--p63-line);
    border-radius: 6px;
    margin-right: 5px;
    padding: 7px;
    text-decoration: none;
    background: var(--surface);
    color: var(--p63-ink);
}
body.p63-super-theme .page-numbers.current,
body.p63-super-theme .page-numbers:hover {
    background: var(--p63-soft);
    color: var(--p63-brand-dark);
    border-color: var(--p63-highlight);
}
@media (max-width: 900px) {
    body.p63-super-theme .p63-main:not(.p63-home) .p63-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 540px) {
    body.p63-super-theme .p63-main:not(.p63-home) .p63-cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    body.p63-super-theme .p63-archive-heading h1 {
        font-size: clamp(28px, 8vw, 35px);
    }
}
/* Category page hierarchy from the original Super Site, with native WP feed. */
body.p63-super-theme.category .p63-super-category-feed { min-width:0; }
body.p63-super-theme.category .p63-super-category-feed .section-head { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; justify-content:space-between; margin:20px 0 14px; }
body.p63-super-theme.category .p63-category-count { color:var(--p63-muted); font-size:12px; }
body.p63-super-theme.category .p63-super-category-feed .p63-super-category-lead.super-card--photo { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); align-items:center; gap:18px; }
body.p63-super-theme.category .p63-super-category-feed .p63-super-category-lead { padding:0; margin:0 0 20px; overflow:hidden; }
body.p63-super-theme.category .p63-super-category-lead .super-visual { min-height:0; aspect-ratio:4/3; }
body.p63-super-theme.category .p63-super-category-lead .story-body { padding:16px; min-width:0; }
body.p63-super-theme.category .p63-super-category-lead .story-body h3 { font-size:clamp(22px,2.1vw,31px); line-height:1.16; }
body.p63-super-theme.category .p63-super-category-feed .p63-super-category-list.super-card--photo { display:grid; grid-template-columns:140px minmax(0,1fr); gap:14px; align-items:start; }
body.p63-super-theme.category .p63-super-category-feed .p63-super-category-list { margin:0; padding:14px 0; border:0; border-bottom:1px solid var(--p63-line); background:transparent; border-radius:0; box-shadow:none; }
body.p63-super-theme.category .p63-super-category-list .super-visual { width:100%; min-height:0; aspect-ratio:16/10; }
body.p63-super-theme.category .p63-super-category-list .story-body { min-width:0; padding:0; }
body.p63-super-theme.category .p63-super-category-list .story-body h3 { font-size:clamp(17px,1.6vw,21px); line-height:1.25; }
body.p63-super-theme.category .p63-super-category-feed .super-story-title a { overflow-wrap:anywhere; }
body.p63-super-theme.category .p63-super-category-feed .p63-super-lead-action { margin-top:14px; }
body.p63-super-theme.category .p63-super-category-feed .p63-super-lead-action a { display:inline-flex; align-items:center; min-height:44px; }
@media(max-width:760px) {
 body.p63-super-theme.category .p63-super-category-feed .p63-super-category-lead.super-card--photo { grid-template-columns:minmax(0,1fr); gap:0; }
 body.p63-super-theme.category .p63-super-category-feed .p63-super-category-list.super-card--photo { grid-template-columns:98px minmax(0,1fr); gap:11px; }
}

/* Native archive filters: selected link and return to all, no JS dependency. */
body.p63-super-theme.category .p63-subsection-index.thematic-hub { padding:16px; border:1px solid var(--p63-line); border-radius:10px; background:var(--surface); }
body.p63-super-theme.category .p63-hub-heading { color:var(--p63-muted); margin:0 0 12px; font-size:13px; }
body.p63-super-theme.category .p63-hub-filters a,body.p63-super-theme.category .p63-hub-context a { min-height:44px; align-items:center; }
body.p63-super-theme.category .p63-hub-filters a[aria-current="page"] { background:var(--p63-brand); color:#fff; border-color:var(--p63-brand); }
body.p63-super-theme.category .p63-hub-context { border-top:1px solid var(--p63-line); padding-top:12px; margin-top:12px; }
body.p63-super-theme.category .p63-hub-context strong { display:block; font-size:12px; margin-bottom:8px; }

/* Authentic author profile, prototype hierarchy without fabricated portraits. */
body.p63-super-theme.author .p63-super-author-hero { display:grid; grid-template-columns:92px minmax(0,1fr); align-items:center; gap:18px; padding:20px; border:1px solid var(--p63-line); border-radius:10px; background:var(--surface); margin:18px 0 24px; }
body.p63-super-theme.author .p63-super-author-hero .author-avatar { width:92px; height:92px; border-radius:50%; display:grid; place-items:center; background:var(--p63-brand); color:white; font-weight:850; font-size:27px; }
body.p63-super-theme.author .p63-super-author-hero h2 { margin:4px 0 8px; font:700 clamp(23px,2.5vw,32px)/1.15 Georgia,serif; }
body.p63-super-theme.author .p63-super-author-hero p { margin:0; line-height:1.6; color:var(--p63-muted); }
body.p63-super-theme.author .p63-author-stories .section-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; }
body.p63-super-theme.author .p63-super-author-trust { padding:16px; background:var(--surface); border:1px solid var(--p63-line); border-radius:10px; margin:16px 0; }
body.p63-super-theme.author .p63-super-author-trust h2 { font-size:20px; margin:0 0 8px; }
body.p63-super-theme.author .p63-super-author-trust ul { list-style:none; padding:0; margin:0; }
body.p63-super-theme.author .p63-super-author-trust a { display:flex; align-items:center; min-height:44px; font-weight:750; color:var(--p63-brand); border-top:1px solid var(--p63-line); }
@media(max-width:520px) { body.p63-super-theme.author .p63-super-author-hero { grid-template-columns:60px minmax(0,1fr); gap:12px; padding:14px; align-items:start; } body.p63-super-theme.author .p63-super-author-hero .author-avatar { width:60px; height:60px; font-size:20px; } }

/* Prototype's editorial rail is separate from the ad provider. */
body.p63-super-theme .p63-super-related-rail { padding:16px; margin:0 0 16px; border:1px solid var(--p63-line); background:var(--surface); border-radius:10px; }
body.p63-super-theme .p63-super-related-rail h2 { margin:0 0 10px; font:700 21px/1.2 Georgia,serif; }
body.p63-super-theme .p63-super-related-rail .rank-list { list-style:decimal; padding-left:25px; margin:0; }
body.p63-super-theme .p63-super-related-rail li { padding:9px 0; border-bottom:1px solid var(--p63-line); color:var(--p63-muted); }
body.p63-super-theme .p63-super-related-rail li:last-child { border-bottom:0; }
body.p63-super-theme .p63-super-related-rail a { color:var(--p63-ink); font-weight:700; font-size:14px; line-height:1.4; text-decoration:none; overflow-wrap:anywhere; }
body.p63-super-theme .p63-super-related-rail a:hover { text-decoration:underline; }

/* Final laboratory category profiles: editorial composition, not taxonomy. */
body.p63-super-theme.category .p63-super-category-feed .p63-super-category-lead.super-card--photo { grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); align-items:stretch; gap:0; }
body.p63-super-theme.category .p63-super-category-lead .story-body { display:flex; flex-direction:column; justify-content:center; padding:20px; }
body.p63-super-theme.category .p63-super-category-lead .story-body h3 { font-size:clamp(24px,2.6vw,36px); line-height:1.13; }
body.p63-super-theme.category .p63-super-category-feed[data-edition="politica-e-poder"] .p63-super-category-lead.super-card--photo { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.p63-super-theme.category .p63-super-category-feed[data-edition="politica-e-poder"] .p63-super-category-lead.super-card--photo .super-visual { order:2; }
body.p63-super-theme.category .p63-super-category-feed:is([data-edition="agro"],[data-edition="saude"],[data-edition="tecnologia-inovacao"],[data-edition="educacao"]) .p63-super-category-lead.super-card--photo { grid-template-columns:minmax(0,1fr); }
body.p63-super-theme.category .p63-super-category-feed:is([data-edition="agro"],[data-edition="saude"],[data-edition="tecnologia-inovacao"],[data-edition="educacao"]) .p63-super-category-lead .super-visual { aspect-ratio:16/9; }
@media(max-width:760px) {
 body.p63-super-theme.category .p63-super-category-feed .p63-super-category-lead.super-card--photo,
 body.p63-super-theme.category .p63-super-category-feed[data-edition="politica-e-poder"] .p63-super-category-lead.super-card--photo { grid-template-columns:minmax(0,1fr); }
 body.p63-super-theme.category .p63-super-category-feed[data-edition="politica-e-poder"] .p63-super-category-lead.super-card--photo .super-visual { order:0; }
 body.p63-super-theme.category .p63-super-category-lead .story-body { padding:16px; }
}

/* Measured Chrome reconciliation: full-width headings and original 2/.8 ratio. */
body.p63-super-theme:is(.category,.author,.search) .p63-main > .p63-archive-heading h1 { font-size:clamp(27px,3vw,36px); line-height:1.08; }
body.p63-super-theme:is(.category,.author,.search) .p63-main > .p63-ad-slot { max-width:970px; margin:0 auto 18px; padding:0; }
body.p63-super-theme.category .p63-main > .p63-subsection-index { margin:18px 0 22px; }
body.p63-super-theme.category .p63-hub-result-count { margin:8px 0 0; color:var(--p63-muted); font-size:12px; }
body.p63-super-theme.category .p63-commercial-rail .p63-hub-context { padding:14px; background:var(--surface); border:1px solid var(--p63-line); border-radius:8px; }
body.p63-super-theme.category .p63-commercial-rail .p63-hub-context h2 { font-size:18px; margin:0 0 8px; }
body.p63-super-theme.category .p63-commercial-rail .p63-super-channel-cta { flex-direction:column; align-items:flex-start; }
body.p63-super-theme.category .p63-commercial-rail .p63-super-channel-cta .channel-actions { width:100%; }
body.p63-super-theme.category .p63-super-specialized-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.p63-super-theme.category .p63-super-specialized-grid .super-story-card { min-width:0; }
body.p63-super-theme.category .p63-super-category-lead .super-visual { aspect-ratio:16/10; align-self:start; }
@media(min-width:1101px) {
 body.p63-super-theme:is(.category,.author) .p63-main > .p63-commercial-layout { grid-template-columns:minmax(0,2fr) minmax(280px,.8fr); gap:26px; }
}
@media(max-width:960px) { body.p63-super-theme.category .p63-super-specialized-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { body.p63-super-theme.category .p63-super-specialized-grid { grid-template-columns:minmax(0,1fr); } }

body.p63-super-theme .p63-super-service-desk { color:var(--p63-text); background:var(--surface); }
body.p63-super-theme .p63-super-service-desk [hidden] { display:none!important; }
body.p63-super-theme .p63-super-service-desk .service-desk-filter select,body.p63-super-theme .p63-super-service-desk .service-desk-card a { min-height:44px; }
body.p63-super-theme .p63-super-service-desk .service-desk-card a { display:flex; align-items:center; color:var(--p63-brand); }
body.p63-super-theme .p63-super-service-desk .service-mark { display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; background:var(--p63-brand); color:#fff; font-weight:850; border-radius:8px; }
