@charset "utf-8";

/* ==========================================================================
   Inner Directory, Dossier, Ranking, Industry & Platform Screens
   ========================================================================== */

.folio-page {
    padding-top: 18px;
    padding-bottom: 36px;
}

/* Breadcrumb trail */
.screen-trail {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
}
.screen-trail a:hover {
    color: var(--primary-dark);
}
.screen-trail span {
    color: var(--line-strong);
}

/* Shared Inner Masthead */
.folio-mast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #102559 0%, #1c3f99 65%, #2563eb 100%);
    color: #fff;
    margin-bottom: 28px;
}
.mast-copy {
    min-width: 0;
    flex: 1;
}
.mast-copy h1 {
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 820;
    color: #fff;
}
.mast-copy > p,
.mast-copy > .prose {
    margin-top: 10px;
    color: #dbeafe;
    font-size: 15px;
    max-width: 60ch;
}
.mast-copy > .prose p {
    color: #dbeafe;
}
.mast-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #fff;
    color: var(--sapphire-deep);
    font-size: 14px;
    font-weight: 750;
}
.mast-action:hover {
    background: var(--primary-soft);
}

.mast-shortcuts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.mast-shortcuts a {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13.5px;
    font-weight: 650;
}
.mast-shortcuts a:hover {
    background: rgba(255, 255, 255, 0.28);
}
.mast-shortcuts b {
    font-size: 16px;
    font-weight: 800;
}

.return-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: #bfdbfe;
    font-size: 13.5px;
    font-weight: 650;
}
.return-link:hover {
    color: #fff;
}

/* Inline search inside mastheads */
.folio-search {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 540px;
    padding: 5px 5px 5px 14px;
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(8, 20, 54, 0.16);
}
.channel-edition .folio-search {
    border: 1px solid var(--ch-border);
    box-shadow: none;
}
.folio-search > .icon {
    color: var(--primary);
}
.folio-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14.5px;
}
.folio-search input:focus-visible {
    outline: 0;
}
.folio-search button {
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.channel-faq .folio-search button {
    background: var(--faq);
}
.folio-search button:hover {
    background: var(--primary-dark);
}
.channel-faq .folio-search button:hover {
    background: var(--faq-dark);
}

/* Section heading inside inner pages */
.folio-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.folio-heading h2 {
    font-size: 20px;
    font-weight: 780;
    color: var(--ink);
}
.folio-heading > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* Reusable Rail Module */
.rail-module {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.rail-module h2 {
    font-size: 16px;
    font-weight: 780;
    color: var(--ink);
}
.module-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    color: var(--primary-dark);
    font-size: 13.5px;
    font-weight: 700;
}
.module-link:hover {
    color: var(--primary);
}

.rail-door {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-radius: var(--radius-md);
    background: var(--surface-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.rail-door span {
    margin-left: auto;
    color: #93c5fd;
}
.rail-door:hover {
    background: var(--primary);
}

.reading-doors {
    display: grid;
    gap: 8px;
}
.reading-doors h2 {
    margin-bottom: 6px;
}
.reading-doors a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--surface-subtle);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 650;
    transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.reading-doors a:hover {
    background: var(--primary-soft);
    color: var(--primary-ink);
}
.reading-doors a .icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}
.reading-doors a span {
    margin-left: auto;
    color: var(--soft);
}

.recent-brands {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.recent-brands .brand-tile {
    padding: 11px 9px;
    box-shadow: none;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
}
.recent-brands .brand-tile:hover {
    border-color: var(--primary);
    background: var(--surface);
    transform: translateY(-2px);
}
.recent-brands .brand-tile__logo {
    height: 46px;
    background: var(--surface);
    margin-bottom: 8px;
    padding: 6px;
}
.recent-brands .brand-tile__logo img {
    max-height: 30px;
}
.recent-brands .brand-tile__name {
    font-size: 13px;
}

/* ==========================================================================
   Brand Directory (/brands)
   ========================================================================== */
.library-spread {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: center;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0f2559 0%, #1d429f 65%, #2563eb 100%);
    color: #fff;
    margin-bottom: 26px;
}
.library-lead h1 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 820;
    color: #fff;
}
.library-lead > p {
    margin-top: 8px;
    color: #dbeafe;
    font-size: 14.5px;
}
.library-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: #dbeafe;
    font-size: 13.5px;
}
.library-meta b {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.library-shelf {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.11);
}
.shelf-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fde68a;
}
.shelf-heading h2 {
    font-size: 15px;
    font-weight: 760;
    color: #fff;
}
.shelf-brands {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.shelf-brands .brand-tile {
    padding: 10px 8px;
    box-shadow: none;
    background: var(--surface);
}
.shelf-brands .brand-tile__logo {
    height: 44px;
    margin-bottom: 6px;
}
.shelf-brands .brand-tile__logo img {
    max-height: 28px;
}
.shelf-brands .brand-tile__name {
    font-size: 12.5px;
}
.shelf-brands .brand-sector {
    display: none;
}

.browse-body {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.browse-rail {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 18px;
}
.industry-rail ul {
    list-style: none;
    margin-top: 12px;
    display: grid;
    gap: 3px;
}
.industry-rail li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
}
.industry-rail li a:hover,
.industry-rail li a[aria-current="true"] {
    background: var(--primary-soft);
    color: var(--primary-ink);
}
.industry-rail li small {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
}
.industry-rail li a[aria-current="true"] small {
    background: var(--primary);
    color: #fff;
}

.browse-main {
    min-width: 0;
    display: grid;
    gap: 22px;
}
.lookup-panel {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 14px;
}

.alphabet {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}
.alphabet a,
.alphabet span {
    min-width: 26px;
    height: 28px;
    padding: 0 5px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.alphabet a {
    background: var(--surface-subtle);
    color: var(--ink-2);
}
.alphabet a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.alphabet a[aria-current="true"] {
    background: var(--primary);
    color: #fff;
}
.alphabet span {
    color: #cbd5e1;
}

/* Framed Brand Dossier Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.profile-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}
.profile-card-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
}
.profile-card-logo {
    width: 56px;
    height: 44px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    padding: 5px;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 17px;
}
.profile-card-logo img {
    max-width: 100%;
    max-height: 32px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.profile-card-title {
    min-width: 0;
}
.profile-card-title strong {
    display: block;
    font-size: 16px;
    font-weight: 760;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-card:hover .profile-card-title strong {
    color: var(--primary-dark);
}
.profile-card-title small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-card-head .icon {
    width: 16px;
    height: 16px;
    color: var(--soft);
}
.profile-card:hover .profile-card-head .icon {
    color: var(--primary);
}
.profile-card-intro {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.profile-card-year {
    margin-top: auto;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 11.5px;
    font-weight: 700;
}

/* ==========================================================================
   Brand Profile Detail (/brand/{slug})
   ========================================================================== */
.record-cover {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.record-stamp {
    height: 132px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 6px;
}
.record-stamp img {
    max-width: 150px;
    max-height: 76px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.record-stamp > span {
    font-size: 36px;
    font-weight: 850;
    color: var(--primary);
}
.record-stamp small {
    font-size: 11px;
    color: var(--soft);
}

.record-name {
    min-width: 0;
}
.record-name h1 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 840;
    color: var(--ink);
}
.record-sectors {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.record-sectors a {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 12.5px;
    font-weight: 650;
}
.record-sectors a:hover {
    background: var(--primary);
    color: #fff;
}
.record-owner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 650;
}
.record-owner:hover {
    color: var(--primary-dark);
}
.record-owner .icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}
.record-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13.5px;
}
.record-meta b {
    color: var(--ink);
    font-weight: 700;
}

.record-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 164px;
}
.record-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.record-website:hover {
    background: var(--primary-dark);
}
.record-claim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--surface-subtle);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 650;
}
.record-claim:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.record-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 8px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.record-nav a {
    padding: 8px 15px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 650;
}
.record-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.record-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: 24px;
    align-items: start;
}
.record-reading {
    display: grid;
    gap: 24px;
    min-width: 0;
}
.record-section {
    padding: 28px 30px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    scroll-margin-top: 90px;
}
.record-section > h2 {
    font-size: 20px;
    font-weight: 780;
    color: var(--ink);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.record-boards {
    display: grid;
    gap: 12px;
}
.record-boards a {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(120deg, #0f172a, #1b2a4a);
    color: #fff;
    transition: transform 0.18s var(--ease-out);
}
.record-boards a:hover {
    transform: translateY(-2px);
}
.rank-ticket {
    padding: 8px;
    border-radius: 9px;
    background: var(--rank-gold);
    color: #0f172a;
    text-align: center;
}
.rank-ticket small {
    display: block;
    font-size: 10.5px;
    font-weight: 750;
}
.rank-ticket b {
    display: block;
    font-size: 22px;
    font-weight: 880;
    line-height: 1.1;
}
.record-boards strong {
    display: block;
    font-size: 16px;
    font-weight: 760;
    color: #fff;
}
.record-boards a > span > small {
    display: block;
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
}
.record-boards .icon {
    color: var(--rank-gold-light);
}

/* Related content groups on Brand & Industry pages */
.journal-groups {
    display: grid;
    gap: 24px;
}
.journal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.journal-heading h3 {
    font-size: 16.5px;
    font-weight: 760;
    color: var(--ink);
}
.journal-heading a {
    font-size: 13px;
    font-weight: 650;
    color: var(--primary-dark);
}

/* Fact list & sticky rail */
.record-rail {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 18px;
}
.fact-list {
    margin-top: 14px;
    display: grid;
    gap: 0;
}
.fact-list > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
}
.fact-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.fact-list dt {
    color: var(--muted);
    flex: 0 0 auto;
}
.fact-list dd {
    text-align: right;
    font-weight: 650;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.fact-list dd a {
    color: var(--primary-dark);
}
.fact-list dd a:hover {
    text-decoration: underline;
}

/* Likes & Reviews */
.brand-like {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.brand-like > span {
    color: var(--muted);
    font-size: 13.5px;
}
.brand-like strong {
    color: var(--ink);
    font-weight: 800;
}

.brand-reviews {
    padding: 28px 30px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.profile-section__heading {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.profile-section__heading h2 {
    font-size: 20px;
    font-weight: 780;
}
.review-list {
    display: grid;
    gap: 12px;
}
.review-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
}
.review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.review-stars {
    color: var(--rank-gold);
    letter-spacing: 0.08em;
}
.review-card > p {
    margin-top: 10px;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.75;
}
.review-card time {
    display: block;
    margin-top: 10px;
    color: var(--soft);
    font-size: 12px;
}
.review-empty {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    color: var(--muted);
}
.review-empty > span {
    font-family: var(--font-serif);
    font-size: 46px;
    line-height: 1;
    color: var(--primary);
}
.review-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 15px 18px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-weight: 700;
}
.review-form {
    margin-top: 20px;
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
}
.review-form h3 {
    font-size: 17px;
    font-weight: 750;
}
.review-form__fields {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}
.review-form label {
    display: grid;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 650;
}
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
}
.review-form__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.review-form__actions > a {
    color: var(--primary-dark);
    font-size: 13.5px;
    font-weight: 650;
}

/* ==========================================================================
   Industries Atlas (/industries) & Industry Detail (/industry/{slug})
   ========================================================================== */
.sector-atlas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.atlas-tile {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.atlas-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.atlas-cover {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--atlas-bg, var(--primary-soft));
    color: var(--atlas-ink, var(--primary-ink));
}
.atlas-tile:nth-child(6n+1) { --atlas-bg: var(--sector-cobalt-soft); --atlas-accent: var(--sector-cobalt); --atlas-ink: var(--sector-cobalt-ink); }
.atlas-tile:nth-child(6n+2) { --atlas-bg: var(--sector-tangerine-soft); --atlas-accent: var(--sector-tangerine); --atlas-ink: var(--sector-tangerine-ink); }
.atlas-tile:nth-child(6n+3) { --atlas-bg: var(--sector-teal-soft); --atlas-accent: var(--sector-teal); --atlas-ink: var(--sector-teal-ink); }
.atlas-tile:nth-child(6n+4) { --atlas-bg: var(--sector-rose-soft); --atlas-accent: var(--sector-rose); --atlas-ink: var(--sector-rose-ink); }
.atlas-tile:nth-child(6n+5) { --atlas-bg: var(--sector-violet-soft); --atlas-accent: var(--sector-violet); --atlas-ink: var(--sector-violet-ink); }
.atlas-tile:nth-child(6n+6) { --atlas-bg: var(--sector-sky-soft); --atlas-accent: var(--sector-sky); --atlas-ink: var(--sector-sky-ink); }

.sector-plate {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--atlas-accent, var(--primary));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    flex: 0 0 auto;
}
.sector-plate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.atlas-cover h2 {
    font-size: 18px;
    font-weight: 780;
    color: var(--ink);
}
.atlas-cover small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--atlas-ink);
}
.atlas-cover .icon {
    color: var(--atlas-ink);
}

.atlas-body {
    padding: 16px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.atlas-body > p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
.atlas-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.atlas-tags a {
    padding: 4px 10px;
    border-radius: 7px;
    background: var(--surface-subtle);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
}
.atlas-tags a:hover {
    background: var(--atlas-bg);
    color: var(--atlas-ink);
}
.atlas-brands {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.atlas-brands a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 650;
}
.atlas-brands a:hover {
    border-color: var(--atlas-accent, var(--primary));
    color: var(--atlas-ink, var(--primary-dark));
}
.atlas-brands img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.atlas-actions {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 650;
}
.atlas-actions a:first-child {
    color: var(--atlas-ink, var(--primary-dark));
}
.atlas-actions a:last-child {
    color: var(--muted);
}
.atlas-actions a:hover {
    text-decoration: underline;
}

/* Industry Detail Page */
.branch-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.branch-strip strong {
    font-size: 13.5px;
    color: var(--ink);
    margin-right: 4px;
}
.branch-strip a {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 13px;
    font-weight: 650;
}
.branch-strip a:hover {
    background: var(--primary);
    color: #fff;
}
.category-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}
.category-rail {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 18px;
}
.journal-block {
    margin-top: 32px;
    padding: 26px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Rankings Index (/rankings) & Detail (/ranking/{slug}) — Midnight & Gold Hall
   ========================================================================== */
.awards-mast,
.board-title {
    background: linear-gradient(145deg, #0b1224 0%, #162445 65%, #1e315c 100%);
    color: #fff;
    padding: 34px 36px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}
.board-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: #cbd5e1;
}
.board-meta > span {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--rank-gold);
    color: #0f172a;
    font-weight: 800;
}
.board-title h1 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 840;
    color: #fff;
}
.board-title .prose {
    margin-top: 12px;
    color: #cbd5e1;
}
.board-title .prose p {
    color: #cbd5e1;
}

/* 3-Place Podium */
.board-podium {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.board-podium li a {
    display: grid;
    grid-template-columns: auto 50px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    transition: transform 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.board-podium li:first-child a {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.5);
}
.board-podium li a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}
.podium-number {
    font-size: 22px;
    font-weight: 860;
    color: var(--rank-gold-light);
    line-height: 1;
}
.podium-number small {
    display: block;
    font-size: 10px;
    color: #cbd5e1;
    margin-bottom: 3px;
}
.podium-logo {
    width: 50px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    display: grid;
    place-items: center;
    padding: 5px;
    font-weight: 800;
}
.podium-logo img {
    max-width: 100%;
    max-height: 28px;
    object-fit: contain;
}
.board-podium strong {
    font-size: 16px;
    font-weight: 760;
    color: #fff;
}

.board-spread {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}
.board-intro h3 {
    font-size: 23px;
    font-weight: 800;
    color: var(--ink);
}
.board-intro .prose {
    margin-top: 10px;
    font-size: 14.5px;
}
.ink-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 11px 20px;
    border-radius: 10px;
    background: var(--surface-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.ink-button:hover {
    background: var(--primary);
}
.board-sample {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--surface-dark);
    color: #fff;
}
.sample-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sample-heading h3 {
    font-size: 15px;
    font-weight: 760;
    color: var(--rank-gold-light);
}
.sample-heading small {
    color: #cbd5e1;
    font-size: 12.5px;
}
.board-sample .board-podium {
    grid-template-columns: 1fr;
    margin-top: 14px;
    gap: 10px;
}
.board-rules {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    color: #cbd5e1;
}
.board-rules summary {
    cursor: pointer;
    font-weight: 700;
    color: #fff;
}
.board-rules p {
    margin-top: 8px;
}

.board-reasons {
    margin-top: 28px;
}
.reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.reason-grid a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.18s var(--ease-out);
}
.reason-grid a:hover {
    transform: translateY(-2px);
}
.reason-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--rank-gold-ink);
    font-size: 12px;
    font-weight: 800;
}
.reason-grid strong {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 760;
    color: var(--ink);
}
.reason-grid img {
    width: 30px;
    height: 24px;
    object-fit: contain;
}
.reason-grid p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
}

/* Ranking Detail Merit List */
.board-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}
.merit-list {
    list-style: none;
    display: grid;
    gap: 12px;
}
.merit-list li {
    display: grid;
    grid-template-columns: 52px 84px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}
.merit-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}
.merit-position {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 19px;
    font-weight: 850;
}
.merit-list li:nth-child(1) .merit-position { background: #f59e0b; color: #0f172a; }
.merit-list li:nth-child(2) .merit-position { background: #cbd5e1; color: #0f172a; }
.merit-list li:nth-child(3) .merit-position { background: #fb923c; color: #0f172a; }
.merit-logo {
    width: 84px;
    height: 62px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    padding: 8px;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 20px;
}
.merit-logo img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.merit-list h3 {
    font-size: 18px;
    font-weight: 780;
    color: var(--ink);
}
.merit-list h3 a:hover {
    color: var(--primary-dark);
}
.merit-list p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.65;
}
.merit-more {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-weight: 700;
}
.merit-more:hover {
    background: var(--primary);
    color: #fff;
}
.board-side {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 18px;
}
.board-side .rail-module p {
    margin-top: 10px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================================================
   Company, Search, Author, Platform Static & 404 Screens
   ========================================================================== */
.company-cover {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    margin-bottom: 26px;
}
.company-head {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.company-seal {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.company-seal .icon {
    width: 26px;
    height: 26px;
}
.company-cover h1 {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 820;
    color: #fff;
}
.company-cover .record-meta {
    color: #cbd5e1;
}
.company-cover .record-meta a {
    color: #93c5fd;
    font-weight: 650;
}
.company-body,
.search-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}
.owned-news {
    margin-top: 30px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.company-intro .prose {
    margin-top: 10px;
    font-size: 14.5px;
}

.search-brands {
    margin-bottom: 28px;
}
.search-results-list {
    display: grid;
    gap: 12px;
}
.search-results-list article a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 18px;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.16s var(--ease-out);
}
.search-results-list article a:hover {
    transform: translateY(-2px);
}
.search-results-list article a:not(:has(.result-cover)) {
    grid-template-columns: minmax(0, 1fr) 18px;
}
.result-cover {
    width: 112px;
    height: 74px;
    border-radius: 9px;
    object-fit: cover;
}
.result-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}
.result-copy strong {
    font-size: 16.5px;
    font-weight: 740;
    color: var(--ink);
}
.search-results-list a:hover .result-copy strong {
    color: var(--primary-dark);
}
.result-copy small {
    font-size: 13.5px;
    color: var(--muted);
}
.result-copy time {
    font-size: 12px;
    color: var(--soft);
}

.platform-sheet {
    padding: 34px 38px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.platform-sheet h1 {
    font-size: clamp(25px, 2.8vw, 34px);
    font-weight: 820;
    margin-bottom: 20px;
}

.author-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.author-tile {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 800;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-tile h3 {
    font-size: 17px;
    font-weight: 760;
}
.author-tile small {
    display: block;
    margin-top: 3px;
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 600;
}
.author-tile p {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--muted);
}

.service-intro {
    padding-top: 18px;
}

@media (max-width: 1120px) {
    .library-spread {
        grid-template-columns: 1fr;
    }
    .browse-body,
    .record-columns,
    .category-columns,
    .board-columns,
    .company-body,
    .search-columns {
        grid-template-columns: 1fr;
    }
    .browse-rail,
    .record-rail,
    .category-rail,
    .board-side {
        position: static;
    }
    .profile-grid,
    .sector-atlas,
    .reason-grid,
    .author-shelf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .board-spread {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .folio-mast,
    .library-spread,
    .awards-mast,
    .board-title,
    .company-cover {
        padding: 22px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    .record-cover {
        grid-template-columns: 1fr;
        padding: 22px 20px;
        gap: 18px;
    }
    .record-actions {
        flex-direction: row;
    }
    .record-actions a {
        flex: 1;
    }
    .profile-grid,
    .sector-atlas,
    .reason-grid,
    .author-shelf,
    .board-podium {
        grid-template-columns: 1fr;
    }
    .shelf-brands {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .merit-list li {
        grid-template-columns: 40px 58px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }
    .merit-more {
        display: none;
    }
    .platform-sheet,
    .record-section,
    .brand-reviews {
        padding: 22px 20px;
    }
}
