/* Cricket Desk archive: compact newspaper ledger, circular real portraits, green/yellow status language. */
.archive-hero { background: var(--black); color: var(--white); border-bottom: 8px solid var(--yellow); }
.archive-hero__grid { min-height: 420px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 54px; align-items: center; padding-block: 42px; }
.archive-hero__copy h1 { margin: 13px 0 0; font-family: var(--headline); font-size: clamp(54px, 7vw, 94px); line-height: .82; letter-spacing: -.045em; text-transform: uppercase; }
.archive-hero__copy > p:not(.label) { max-width: 690px; margin: 19px 0 0; color: #c7cbcb; font-size: 16px; }
.archive-hero__copy .archive-scope { padding-top: 15px; border-top: 1px solid #4b4e50; font-size: 12px !important; }
.archive-scope strong { color: var(--yellow); text-transform: uppercase; }
.archive-ledger { border: 1px solid #55595a; background: #1b1d1f; }
.archive-ledger p { min-height: 74px; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid #454849; }
.archive-ledger p:last-child { border-bottom: 0; }
.archive-ledger span { color: #aeb3b3; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.archive-ledger strong { color: var(--yellow); font-family: var(--headline); font-size: 34px; line-height: 1; }

.featured-legends { padding: 48px 0 52px; background: #eef3ef; border-bottom: 1px solid var(--black); }
.legends-heading .section-kicker { color: var(--green); }
.legend-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--black); border-left: 1px solid var(--black); }
.legend-card { min-width: 0; min-height: 430px; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); background: var(--white); padding: 20px 14px 14px; text-align: center; }
.legend-card:nth-child(1), .legend-card:nth-child(4) { background: #fff8d7; }
.legend-card__portrait { width: 132px; height: 132px; display: block; flex: 0 0 auto; border: 6px solid var(--black); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--green); transition: transform 160ms var(--ease-out); }
.legend-card__portrait:hover { transform: translateY(-3px); }
.legend-card__portrait img { width: 100%; height: 100%; object-fit: cover; }
.legend-card__body { min-width: 0; width: 100%; display: flex; flex: 1; flex-direction: column; align-items: stretch; }
.legend-card__index { margin: 17px 0 0; color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.legend-card h3 { min-height: 50px; display: grid; place-items: center; margin: 7px 0 0; font-family: var(--headline); font-size: 24px; line-height: .93; text-transform: uppercase; }
.legend-card h3 a { color: var(--black); text-decoration: none; }
.legend-card h3 a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.legend-card__role { min-height: 28px; margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; }
.legend-card dl { display: grid; grid-template-columns: .8fr 1.2fr; margin: 10px 0 0; border-block: 1px solid var(--line); text-align: left; }
.legend-card dl div { min-width: 0; padding: 8px 6px; }
.legend-card dl div + div { border-left: 1px solid var(--line); }
.legend-card dt { color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.legend-card dd { margin: 3px 0 0; font-size: 9px; font-weight: 800; overflow-wrap: anywhere; }
.legend-card__distinction { margin: 10px 0 0; font-size: 11px; font-weight: 900; line-height: 1.25; }
.legend-card__status { margin: 5px 0 0; color: var(--ink-soft); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.legend-card__open { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; background: var(--green); color: var(--white); padding: 8px 10px; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.legend-card__open b { color: var(--yellow); font-size: 16px; }
.legend-card__open:hover { background: var(--black); }

.current-squad { padding: 48px 0 52px; background: var(--newsprint); border-bottom: 1px solid var(--black); }
.archive-section-heading { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: end; margin-bottom: 24px; }
.archive-section-heading h2 { max-width: 720px; margin: 7px 0 0; font-family: var(--headline); font-size: clamp(40px, 4.5vw, 60px); line-height: .91; text-transform: uppercase; }
.archive-section-heading > p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.current-player-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--black); border-left: 1px solid var(--black); }
.current-player-card { min-width: 0; min-height: 350px; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); background: var(--white); padding: 18px 13px 13px; text-align: center; }
.current-player-card--pending { background: #fff8d7; }
.player-portrait { width: 116px; height: 116px; display: block; flex: 0 0 auto; border: 5px solid var(--black); border-radius: 50%; background: var(--mist); overflow: hidden; box-shadow: 0 0 0 5px var(--yellow); transition: transform 160ms var(--ease-out); }
.player-portrait:hover { transform: translateY(-3px); }
.current-player-card--pending .player-portrait { box-shadow: 0 0 0 5px var(--green); }
.player-portrait img { width: 100%; height: 100%; object-fit: cover; }
.current-player-card__body { min-width: 0; width: 100%; display: flex; flex: 1; flex-direction: column; align-items: center; }
.current-player-card__name { min-height: 48px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin-top: 14px; }
.current-player-card__name > a, .current-player-card__name > span { font-family: var(--headline); font-size: 20px; font-weight: 900; line-height: .96; text-transform: uppercase; text-decoration: none; }
.current-player-card__name > a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.player-designation { margin-top: 5px; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.player-card-role { min-height: 30px; margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.25; }
.player-card-facts { width: 100%; display: grid; grid-template-columns: .8fr 1.2fr; margin: 8px 0 0; border-block: 1px solid var(--line); text-align: left; }
.player-card-facts div { min-width: 0; padding: 7px 6px; }
.player-card-facts div + div { border-left: 1px solid var(--line); }
.player-card-facts dt { color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.player-card-facts dd { overflow-wrap: anywhere; margin: 3px 0 0; font-size: 9px; font-weight: 800; line-height: 1.15; }
.squad-status { display: inline-block; margin-top: 9px; padding: 4px 6px; background: var(--black); color: var(--white); font-size: 8px; font-weight: 900; letter-spacing: .05em; line-height: 1.2; text-transform: uppercase; }
.current-player-card--pending .squad-status { background: var(--green); }
.player-open { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; background: var(--black); color: var(--white); padding: 8px 10px; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.player-open b { color: var(--yellow); font-size: 16px; line-height: 1; }
.player-open:hover { background: var(--green); }
.current-player-card--pending .player-open { background: var(--green); }
.current-player-card--pending .player-open:hover { background: var(--black); }
.full-squad-note { margin-top: 18px; border: 1px solid var(--black); background: var(--white); }
.full-squad-note summary { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px; font-size: 11px; font-weight: 900; cursor: pointer; list-style: none; text-transform: uppercase; }
.full-squad-note summary::-webkit-details-marker { display: none; }
.full-squad-note[open] summary span { transform: rotate(45deg); }
.full-squad-note ul { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding: 0; list-style: none; }
.full-squad-note li { min-height: 44px; display: flex; flex-direction: column; justify-content: center; padding: 7px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; }
.full-squad-note li span { color: var(--green); font-size: 9px; text-transform: uppercase; }
.full-squad-note > p { margin: 0; padding: 13px 16px; color: var(--ink-soft); font-size: 11px; }

.debut-directory { padding: 50px 0; background: var(--black); color: var(--white); }
.archive-section-heading--dark > p { color: #b8bcbc; }
.archive-section-heading--dark .section-kicker { color: var(--yellow); }
.archive-controls { display: grid; grid-template-columns: 1.35fr .7fr .85fr .9fr auto; align-items: end; border: 1px solid #55595a; background: #1b1d1f; padding: 16px; }
.archive-controls label { min-width: 0; display: grid; align-content: end; border-right: 1px solid #4b4e50; padding: 0 13px; color: #bbc0c0; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.archive-controls label:first-child { padding-left: 0; }
.archive-controls input[type="search"], .archive-controls select { width: 100%; height: 42px; margin-top: 6px; border: 1px solid #6b7071; border-radius: 0; background: var(--white); color: var(--black); padding: 0 11px; font-size: 13px; }
.archive-controls .profile-check { min-height: 42px; display: flex; align-items: center; gap: 9px; padding-top: 18px; }
.profile-check input { width: 18px; height: 18px; accent-color: var(--yellow); }
.archive-controls > button { min-height: 42px; border: 0; background: var(--yellow); color: var(--black); padding: 9px 13px; font-size: 9px; font-weight: 900; cursor: pointer; text-transform: uppercase; }
.filter-status { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid #4b4e50; color: #9ea3a4; font-size: 10px; }
.filter-status p { margin: 0; }
.filter-status p:first-child { color: var(--yellow); font-weight: 900; text-transform: uppercase; }
.year-index { display: grid; grid-template-columns: repeat(14, 1fr); margin-top: 16px; border-top: 1px solid #55595a; border-left: 1px solid #55595a; }
.year-index button { min-width: 0; min-height: 46px; display: grid; place-items: center; border: 0; border-right: 1px solid #55595a; border-bottom: 1px solid #55595a; background: transparent; color: var(--white); padding: 5px; font-family: var(--headline); font-size: 14px; font-weight: 900; cursor: pointer; }
.year-index button span { color: var(--yellow); font-family: var(--font); font-size: 8px; }
.year-index button:hover, .year-index button.is-active { background: var(--green); }
.year-groups { margin-top: 18px; border-top: 1px solid #55595a; }
.year-group { border-bottom: 1px solid #55595a; }
.year-group[hidden] { display: none; }
.year-group summary { min-height: 54px; display: grid; grid-template-columns: 90px 1fr 30px; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.year-group summary::-webkit-details-marker { display: none; }
.year-group summary span { color: var(--yellow); font-family: var(--headline); font-size: 28px; font-weight: 900; }
.year-group summary b { color: #bac0c0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.year-group summary i { color: var(--yellow); font-size: 24px; font-style: normal; text-align: right; transition: transform 160ms var(--ease-out); }
.year-group[open] summary i { transform: rotate(45deg); }
.directory-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; border-top: 1px solid #55595a; border-left: 1px solid #55595a; padding: 0; list-style: none; }
.directory-list li { min-width: 0; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-right: 1px solid #55595a; border-bottom: 1px solid #55595a; padding: 10px 12px; }
.directory-list li[hidden] { display: none; }
.directory-list li > div { min-width: 0; }
.directory-list a, .directory-list li > div > span { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--white); font-family: var(--headline); font-size: 16px; font-weight: 800; line-height: 1; text-decoration: none; text-transform: uppercase; }
.directory-list a { color: var(--yellow); }
.directory-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.directory-list b { display: block; margin-top: 5px; color: #8e9495; font-family: var(--font); font-size: 8px; letter-spacing: .07em; }
.directory-list small { flex: 0 0 auto; color: var(--green); font-size: 8px; text-align: right; text-transform: uppercase; }
.no-results { margin: 24px 0 0; border: 1px solid var(--yellow); padding: 16px; color: var(--yellow); }

.profile-pages { padding: 48px 0; background: var(--yellow); border-block: 1px solid var(--black); }
.profile-pages__grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: center; }
.profile-pages h2 { margin: 13px 0 0; font-family: var(--headline); font-size: clamp(42px, 5vw, 64px); line-height: .9; text-transform: uppercase; }
.profile-pages p:not(.label) { max-width: 540px; margin: 15px 0 0; }
.profile-pages nav { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--black); border-left: 1px solid var(--black); background: var(--white); }
.profile-pages nav a { min-height: 84px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); padding: 13px 14px; text-decoration: none; }
.profile-pages nav span { font-family: var(--headline); font-size: 19px; font-weight: 900; line-height: .95; text-transform: uppercase; }
.profile-pages nav b { margin-top: 5px; color: var(--green); font-size: 9px; text-transform: uppercase; }
.profile-pages nav a:hover { background: var(--black); color: var(--white); }

.archive-guides { padding: 48px 0; background: #f1f3ee; border-top: 1px solid var(--black); }
.archive-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--black); border-left: 1px solid var(--black); }
.archive-guide-grid article { min-height: 220px; display: flex; flex-direction: column; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); background: var(--white); padding: 18px; }
.archive-guide-grid article > span { align-self: flex-start; padding: 4px 7px; background: var(--yellow); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.archive-guide-grid h3 { margin: 16px 0 8px; font-family: var(--headline); font-size: clamp(27px, 3.2vw, 40px); line-height: .95; text-transform: uppercase; }
.archive-guide-grid h3 a { color: var(--black); text-decoration: none; }
.archive-guide-grid h3 a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.archive-guide-grid p { margin: 0 0 16px; color: var(--ink-soft); font-size: 12px; }
.archive-guide-grid article > a { margin-top: auto; color: var(--green); font-size: 10px; font-weight: 900; text-underline-offset: 4px; text-transform: uppercase; }
.archive-guides__all { display: inline-block; margin-top: 18px; color: var(--green); font-size: 11px; font-weight: 900; text-underline-offset: 4px; text-transform: uppercase; }

.archive-notes { padding: 48px 0; background: var(--white); }
.archive-notes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.archive-notes h2 { margin: 7px 0 0; font-family: var(--headline); font-size: 38px; line-height: .94; text-transform: uppercase; }
.archive-notes article > p:not(.section-kicker) { color: var(--ink-soft); }
.source-links { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 0; list-style: none; }
.source-links a { min-height: 42px; display: flex; align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px 10px; color: var(--green); font-size: 10px; font-weight: 900; }
.photo-credits { border: 1px solid var(--black); align-self: start; }
.photo-credits summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 15px; background: var(--black); color: var(--white); font-size: 10px; font-weight: 900; cursor: pointer; list-style: none; text-transform: uppercase; }
.photo-credits summary::-webkit-details-marker { display: none; }
.photo-credits[open] summary span { transform: rotate(45deg); }
.photo-credits ol { max-height: 460px; overflow-y: auto; margin: 0; padding: 10px 18px 12px 42px; }
.photo-credits li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; }
.photo-credits li:last-child { border-bottom: 0; }
.photo-credits a { color: var(--green); }

@media (max-width: 1060px) {
  .archive-hero__grid { gap: 34px; }
  .current-player-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .legend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .archive-controls { grid-template-columns: 1.3fr .7fr .8fr; gap: 12px; }
  .archive-controls label { border-right: 0; padding: 0; }
  .archive-controls .profile-check { padding-top: 0; }
  .year-index { grid-template-columns: repeat(7, 1fr); }
}

@media (max-width: 820px) {
  .archive-hero__grid, .archive-section-heading, .profile-pages__grid, .archive-notes__grid { grid-template-columns: 1fr; }
  .archive-hero__grid { min-height: 0; gap: 28px; padding-block: 36px; }
  .archive-section-heading { gap: 13px; }
  .current-player-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .full-squad-note ul, .directory-list { grid-template-columns: repeat(2, 1fr); }
  .archive-controls { grid-template-columns: 1fr 1fr; }
  .archive-search-field { grid-column: 1 / -1; }
  .profile-pages__grid { gap: 30px; }
  .profile-pages nav { grid-template-columns: 1fr 1fr; }
  .archive-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .page-shell { width: calc(100% - 30px); max-width: 520px; }
  .archive-hero__grid { padding-block: 30px; }
  .archive-hero__copy h1 { font-size: clamp(48px, 15vw, 62px); }
  .archive-ledger { display: grid; grid-template-columns: 1fr 1fr; }
  .archive-ledger p:nth-child(odd) { border-right: 1px solid #454849; }
  .archive-ledger p { min-height: 68px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
  .archive-ledger strong { font-size: 27px; }
  .featured-legends, .current-squad, .debut-directory, .profile-pages, .archive-guides, .archive-notes { padding-block: 40px; }
  .current-player-grid { grid-template-columns: 1fr 1fr; }
  .legend-card { min-height: 405px; padding-inline: 9px; }
  .legend-card__portrait { width: 108px; height: 108px; border-width: 5px; }
  .legend-card h3 { font-size: 20px; }
  .current-player-card { min-height: 342px; padding-inline: 9px; }
  .player-portrait { width: 104px; height: 104px; }
  .current-player-card__name > a, .current-player-card__name > span { font-size: 18px; }
  .full-squad-note ul, .directory-list, .profile-pages nav, .source-links { grid-template-columns: 1fr; }
  .archive-controls { grid-template-columns: 1fr; }
  .archive-search-field { grid-column: auto; }
  .filter-status { align-items: flex-start; flex-direction: column; gap: 3px; padding-block: 10px; }
  .year-index { grid-template-columns: repeat(4, 1fr); }
  .year-group summary { grid-template-columns: 72px 1fr 24px; }
  .directory-list li { min-height: 60px; }
  .archive-notes__grid { gap: 28px; }
}
