@import url("entry-fonts.css");
/* NPCC portal components. Typography and brand values live in tokens.css. */
.npcc-frontend { font-family:var(--font-body); font-size:var(--type-body); line-height:1.6; background:var(--bg); color:var(--text); }
.npcc-frontend .site-header { background:#fff; border-bottom:1px solid var(--border); backdrop-filter:none; }
.npcc-frontend .header-inner { width:min(var(--content-max),100% - 48px); height:var(--header-h); gap:24px; }
.npcc-frontend .brand { font-family:var(--font-body); font-size:22px; letter-spacing:.01em; gap:10px; }
.npcc-frontend .brand .logo { height:48px; width:auto; object-fit:contain; }
.npcc-frontend .brand small { display:none; }
.portal-primary { display:flex; justify-content:center; gap:36px; flex:1; align-items:center; }
.portal-primary a { position:relative; padding:25px 0; font-size:var(--type-nav); font-weight:600; white-space:nowrap; color:#34425a; }
.portal-primary a[aria-current=page]::after { content:""; position:absolute; bottom:14px; height:3px; left:0; right:0; background:var(--rose); }
.npcc-frontend .header-actions { margin-left:auto; gap:8px; flex-shrink:0; }
.npcc-frontend #share-btn { display:none; }
.npcc-frontend .hdr-signin { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 14px; border:1px solid var(--border); border-radius:5px; background:#fff!important; color:var(--navy)!important; font-family:var(--font-body); font-size:16px; font-weight:600; white-space:nowrap; box-shadow:none; }
.npcc-frontend .hdr-signin:hover { border-color:var(--action-rose); }
.npcc-frontend .lang-btn,.npcc-frontend .hdr-btn { min-height:44px; min-width:44px; border-radius:5px; font-size:14px; }
.npcc-frontend .mega { max-height:calc(100svh - var(--header-h)); overflow-y:auto; }
.portal-mobile-menu { padding:12px 0 20px; display:grid; }
.portal-mobile-menu>a,.portal-mobile-menu summary { display:block; padding:14px 4px; border-bottom:1px solid var(--border); cursor:pointer; font-size:16px; font-weight:600; }
.portal-mobile-menu details a { display:block; padding:12px 18px; background:var(--bg); font-size:16px; }
.portal-mobile-menu summary::after { content:"+"; float:right; }
.portal-mobile-menu details[open]>summary::after { content:"−"; }
.portal-mobile-menu .portal-auth { margin-top:8px; }
.portal-page { background:#fff; }
.portal-page .container { width:min(1280px,100% - 80px); }
.npcc-frontend h1,.npcc-frontend h2,.npcc-frontend h3 { font-family:var(--font-body); color:inherit; letter-spacing:-.02em; line-height:1.3; }
.portal-page h1 { font-size:var(--type-h1); font-weight:700; }
.portal-page h2 { font-size:var(--type-h2); font-weight:700; }
.portal-page h3 { font-size:var(--type-h3); font-weight:700; }
.portal-page a:focus-visible,.portal-page button:focus-visible,.portal-page select:focus-visible,.portal-page input:focus-visible,.portal-table-scroll:focus-visible { outline:3px solid var(--action-rose); outline-offset:4px; }
.portal-section { padding:var(--space-section) 0; }
.portal-soft { background:var(--bg); }
.portal-kicker { display:block; margin-bottom:10px; color:var(--muted); font-family:var(--font-body); font-size:13px; font-weight:600; letter-spacing:.08em; }
.portal-section-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.portal-text-link { color:var(--navy); font-size:14px; font-weight:600; text-decoration:underline; text-underline-offset:5px; padding:8px 0; min-height:44px; display:inline-flex; align-items:center; }
.portal-text-link:hover { color:var(--action-rose); }
.portal-btn { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:46px; padding:10px 20px; border:1px solid transparent; border-radius:9px; font-family:var(--font-body); font-size:16px; font-weight:600; line-height:1.5; text-decoration:none; cursor:pointer; transition:background .16s,box-shadow .16s; }
.portal-btn>span { font-size:20px; line-height:1; }
.portal-btn.navy { background:var(--navy); color:#fff; }
.portal-btn.rose { background:var(--action-rose); color:#fff; }
.portal-btn.white { background:#fff; color:var(--navy); }
.portal-btn.outline-dark { background:transparent; color:var(--navy); border-color:#aab5c6; }
.portal-btn.navy:hover { background:#21375b; }
.portal-btn.rose:hover { background:#9e0852; }
.portal-btn:disabled { opacity:.55; cursor:wait; }
.portal-home-hero { position:relative; overflow:hidden; background:var(--navy); color:#fff; background-image:linear-gradient(90deg,#0c1b39ed 0%,#0c1b39b0 40%,#0c1b3930 72%),url('../assets/npcc-court-brand-2026.png'); background-size:cover; background-position:center 46%; }
.portal-hero-copy { position:relative; padding:72px 0 76px; max-width:650px; }
.portal-hero-eyebrow { display:block; font-size:14px; font-weight:600; letter-spacing:.13em; color:#e2e8f2; }
.portal-home-hero .sport-title { font-family:var(--font-display); font-size:var(--type-hero); font-weight:700; line-height:1; letter-spacing:-.01em; margin:30px 0 24px; }
.portal-home-hero .sport-title span { display:block; }
.portal-hero-copy>p { font-size:var(--type-body); color:#eff3fa; margin-top:22px; }
.portal-hero-actions { display:flex; margin-top:28px; }
.portal-hero-caption { display:flex; justify-content:space-between; gap:20px; border-top:1px solid #ffffff40; padding:16px 0; color:#dce4f0; font-size:14px; }
/* Homepage entry cards: shared geometry, independent brand palettes. */
.portal-pathway-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.portal-pathway { --entry-bg:#102441; --entry-label:#93BDF0; --entry-copy:#CBD8E8; --entry-status:#ADBFD5; --entry-link:#B7D3FA; display:flex; flex-direction:column; min-width:0; padding:26px 30px; border:1px solid #ffffff18; border-radius:14px; background:var(--entry-bg); color:#fff; font-family:"NPCC Entry UI","NPCC Entry HK","PingFang TC",system-ui,sans-serif; }
.portal-pathway.cup { --entry-bg:#29203F; --entry-label:#FA8DBD; --entry-copy:#E0D4E9; --entry-status:#D1BFD9; --entry-link:#FAB2D2; }
.portal-pathway .portal-card-number { display:block; margin:0 0 8px; color:var(--entry-label); font-size:13px; font-weight:600; line-height:1.4; letter-spacing:.07em; white-space:nowrap; }
.portal-page .portal-pathway h2 { margin:0 0 8px; color:#fff; font-size:32px; font-weight:700; line-height:1.2; letter-spacing:0; }
.portal-pathway p { margin:0 0 8px; color:var(--entry-copy); font-size:15px; font-weight:400; line-height:1.45; }
.portal-pathway-season { margin:0 0 16px; color:var(--entry-status); font-size:13px; font-weight:400; line-height:1.45; overflow-wrap:anywhere; }
.portal-pathway-links { display:flex; align-items:center; gap:8px 16px; flex-wrap:wrap; margin-top:auto; }
.portal-pathway .portal-btn { min-height:42px; max-width:100%; padding:8px 18px; gap:8px; border:1px solid transparent; border-radius:9px; background:#fff; color:var(--entry-bg); font:600 15px/1.4 "NPCC Entry UI","NPCC Entry HK",system-ui,sans-serif; white-space:nowrap; transition:background .16s; }
.portal-pathway .portal-btn>span { font-size:15px; line-height:1; }
.portal-pathway .portal-btn:hover { background:#eef2f8; transform:none; }
.portal-pathway-links>a:not(.portal-btn) { display:inline-flex; align-items:center; min-height:40px; color:var(--entry-link); font-size:13px; font-weight:600; line-height:1.4; white-space:nowrap; text-underline-offset:4px; }
.portal-pathway-links>a:not(.portal-btn):hover { text-decoration:underline; }
.portal-page .portal-pathway a:focus-visible { outline:3px solid var(--entry-label); outline-offset:4px; }
.portal-empty { display:flex; align-items:center; gap:20px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); padding:28px; max-width:100%; }
.portal-empty-mark { display:grid; place-items:center; width:56px; height:56px; flex-shrink:0; border:1px solid var(--border); border-radius:50%; color:var(--action-rose); font-size:28px; }
.portal-empty h3 { font-size:var(--type-card); margin:0 0 8px; }
.portal-empty p { color:var(--muted); font-size:16px; }
.portal-empty .portal-text-link { display:inline-block; margin-top:14px; }
.portal-quiet-state { padding:28px; border:1px solid var(--border); border-radius:8px; font-size:16px; color:var(--muted); background:#fff; }
.portal-event-grid,.portal-news-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.portal-event-card { display:flex; flex-direction:column; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; min-width:0; background:var(--surface); transition:box-shadow .16s; }
.portal-event-image { display:block; aspect-ratio:1.6; position:relative; overflow:hidden; background:var(--tournament-purple); }
.portal-event-image img { width:100%; height:100%; object-fit:cover; }
.portal-event-image .portal-status { position:absolute; left:16px; top:16px; }
.portal-event-image>small { position:absolute; bottom:10px; right:10px; font-size:14px; padding:2px 6px; color:#fff; background:#0c1b39de; }
.portal-event-body { display:flex; flex-direction:column; flex:1; padding:var(--space-card); }
.portal-card-type { color:var(--muted); font-size:13px; font-weight:600; }
.portal-event-card h3 { font-size:var(--type-card); line-height:1.45; margin:12px 0 20px; overflow-wrap:anywhere; }
.portal-event-card dl>div { display:grid; grid-template-columns:44px minmax(0,1fr); gap:12px; margin-top:9px; font-size:14px; }
.portal-event-card dt { color:var(--muted); }
.portal-event-card dd { margin:0; overflow-wrap:anywhere; }
.portal-card-format { color:var(--muted); font-size:14px; margin:16px 0; max-height:3em; line-height:1.5; overflow:hidden; }
.portal-card-link { display:flex; align-items:center; justify-content:space-between; font-size:16px; font-weight:600; border-top:1px solid var(--border); padding:12px 0 0; margin-top:auto; min-height:44px; }
.portal-status { display:inline-block; padding:5px 10px; background:#e8edf5; color:var(--navy); border-radius:4px; font-size:14px; font-weight:600; white-space:nowrap; }
.portal-status.open { background:#e9f6ed; color:#17562e; }
.portal-status.live { background:#fff0f7; color:#a80859; }
.portal-status.finished { background:#edf0f5; color:#4a5669; }
.portal-status.cancelled { background:#fff0ee; color:#9d3025; }
.portal-league-update { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.portal-league-update h3 { margin-bottom:16px; }
.portal-league-update p { font-size:16px; color:var(--muted); }
.portal-inline-links { display:flex; flex-wrap:wrap; gap:24px; font-size:16px; font-weight:600; margin-top:24px; }
.portal-news-card { background:transparent; border:0; border-top:2px solid var(--border); border-radius:0; }
.portal-news-card>a { display:block; padding:20px 0; }
.portal-news-date { font-size:14px; color:var(--muted); }
.portal-news-card h3 { font-size:var(--type-card); margin:16px 0; }
.portal-news-card p { font-size:16px; color:var(--muted); margin-bottom:24px; }
.portal-partner-invite { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:8px 0; }
.portal-sponsor-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.portal-sponsor-grid>div { display:grid; place-items:center; padding:24px; border:1px solid var(--border); border-radius:8px; }
.portal-sponsor-grid img { width:auto; height:60px; object-fit:contain; }
.portal-section-hero { padding:36px 0; background:var(--league-navy); color:#fff; }
.portal-section-hero.tournaments { background:var(--tournament-purple); color:#fff; }
.portal-section-hero .portal-kicker { color:var(--league-accent); }
.portal-section-hero.tournaments .portal-kicker { color:var(--tournament-accent); }
.portal-section-hero h1 { font-family:var(--font-body); font-size:var(--type-h1); font-weight:700; margin:0 0 10px; line-height:1.25; }
.portal-section-hero p { font-size:16px; max-width:680px; }
.portal-hero-detail { display:block; margin-top:14px; font-size:14px; color:#CBD8E8; }
.portal-subnav { position:relative; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior-x:contain; }
.portal-subnav>.container { display:flex; align-items:center; gap:28px; min-width:max-content; }
.portal-subnav a { display:inline-flex; align-items:center; min-height:56px; font-size:16px; font-weight:500; white-space:nowrap; padding:12px 0 9px; border-bottom:3px solid transparent; }
.portal-subnav a[aria-current=page] { color:#FFFFFF; border-color:var(--brand-pink); }
.portal-league-filters { display:flex; align-items:flex-end; flex-wrap:wrap; gap:16px; padding:20px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:16px; }
.portal-league-filters label { display:block; font-size:14px; font-weight:600; margin-bottom:8px; }
.portal-league-filters>div { flex:1; min-width:0; max-width:300px; }
.portal-league-filters select { width:100%; font-size:16px; min-height:48px; padding:10px 12px; border:1px solid #b5bfce; border-radius:5px; background:#fff; }
.portal-league-filters>span { font-size:14px; color:var(--muted); padding-bottom:12px; }
.portal-season-card { padding:var(--space-card); border:1px solid var(--border); border-radius:var(--radius); min-width:0; background:var(--surface); }
.portal-spaced { margin-top:48px; }
.portal-season-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.portal-season-card h3 { font-size:var(--type-card); margin:14px 0; }
.portal-season-card .portal-btn { margin-top:20px; }
.portal-match-row { display:grid; grid-template-columns:minmax(160px,1fr) minmax(0,1fr) auto minmax(0,1fr) auto; align-items:center; gap:20px; padding:24px; border:1px solid var(--border); border-radius:var(--radius); margin-top:12px; background:var(--surface); font-size:16px; }
.portal-match-row>b { min-width:0; overflow-wrap:anywhere; }
.portal-match-meta { color:var(--muted); font-size:14px; }
.portal-match-meta small { display:block; margin-top:5px; font-size:14px; }
.portal-score { font-family:var(--font-body); font-variant-numeric:tabular-nums; font-weight:700; font-size:24px; text-align:center; line-height:1.25; overflow-wrap:anywhere; }
.portal-table-scroll { overflow-x:auto; max-width:100%; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.portal-table { border-collapse:collapse; width:100%; min-width:460px; font-size:16px; font-variant-numeric:tabular-nums; }
.portal-table th,.portal-table td { padding:17px 20px; text-align:left; border-bottom:1px solid var(--border); white-space:nowrap; }
.portal-table th { background:var(--league-tabs); font-size:14px; font-weight:600; }
.portal-table-hint { display:none; font-size:14px; color:var(--muted); margin-bottom:12px; }
.portal-footnote { font-size:14px; line-height:1.8; margin-top:20px; color:var(--muted); }
.portal-rule-panel { padding:var(--space-card); border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); font-size:16px; }
.portal-rule-panel h3 { margin-bottom:16px; }
.portal-rule-panel p { margin-bottom:18px; }
.portal-cup-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; margin-bottom:32px; }
.portal-cup-toolbar h2 { margin:10px 0; }
.portal-cup-toolbar p { color:var(--muted); font-size:16px; }
.portal-search label { display:block; font-size:14px; margin-bottom:10px; font-weight:600; }
.portal-search>div { display:flex; gap:8px; }
.portal-search input { min-width:210px; min-height:48px; padding:10px 12px; border:1px solid #b5bfce; border-radius:5px; font-size:16px; }
.portal-detail-heading { padding:20px 0 28px; }
.portal-detail-heading .portal-kicker { margin-top:24px; }
.portal-detail-heading h1 { font-size:var(--type-h1); margin:12px 0 20px; overflow-wrap:anywhere; }
.portal-detail-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:36px; align-items:start; }
.portal-detail-poster { margin:0; background:var(--navy); color:#fff; border-radius:8px; overflow:hidden; }
.portal-detail-poster img { display:block; width:100%; height:auto; }
.portal-detail-poster figcaption { padding:12px 18px; font-size:14px; color:#d6dfec; }
.portal-detail-info { border:1px solid var(--border); border-radius:var(--radius); padding:var(--space-card); background:var(--surface); }
.portal-detail-info h2 { font-size:var(--type-h3); margin-bottom:20px; }
.portal-detail-info dl { margin:0 0 24px; }
.portal-detail-info dl>div { display:grid; grid-template-columns:90px minmax(0,1fr); gap:16px; padding:11px 0; border-bottom:1px solid var(--border); font-size:16px; }
.portal-detail-info dt { color:var(--muted); }
.portal-detail-info dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.portal-detail-rules { white-space:pre-wrap; line-height:1.9; }
#event-root>.portal-section { padding:40px 0 0; }
#event-root>.portal-section:last-child { padding-bottom:50px; }
.home-focus-card { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.home-focus-poster { background:var(--navy); min-height:300px; }
.home-focus-poster img { display:block; width:100%; height:100%; max-height:520px; object-fit:contain; }
.home-focus-content { padding:36px; min-width:0; }
.home-focus-content h2 { margin:12px 0 24px; font-size:var(--type-h2); overflow-wrap:anywhere; }
.home-focus-content dl>div { display:grid; grid-template-columns:44px minmax(0,1fr); gap:14px; margin-top:10px; font-size:16px; }
.home-focus-content dt { color:var(--muted); }
.home-focus-content dd { margin:0; overflow-wrap:anywhere; }
.home-focus-content .portal-btn { margin-top:26px; }
.npcc-frontend .site-footer { padding:52px 0 0; background:var(--navy); color:#fff; }
.portal-footer-grid { display:grid; grid-template-columns:1.3fr 1fr 1.1fr 1fr; gap:40px; }
.portal-footer-grid h4 { color:#fff; font-family:var(--font-body); font-size:16px; margin:0 0 18px; letter-spacing:0; }
.portal-footer-grid a { display:block; margin:10px 0; font-size:14px; color:#d6dfec; }
.portal-footer-grid p { color:#c3cddf; font-size:14px; line-height:1.8; }
.portal-footer-brand>b { display:block; font-family:var(--font-body); font-size:32px; line-height:1; margin-bottom:14px; }
.portal-footer-brand>span { display:block; font-size:14px; line-height:1.5; margin-bottom:16px; }
.portal-footer-bottom { display:flex; justify-content:space-between; gap:24px; margin-top:40px; padding:22px 0; border-top:1px solid #ffffff30; color:#c3cddf; font-size:14px; }
.portal-loading { padding:60px 24px; text-align:center; font-size:16px; color:var(--muted); }
.portal-skip { position:fixed; top:-100px; left:18px; padding:12px 18px; background:#fff; border:2px solid var(--action-rose); z-index:1000; }
.portal-skip:focus { top:12px; }
@media(min-width:981px) { .npcc-frontend #menu-btn { display:none; } }
@media(max-width:980px) {
  .portal-primary { display:none; }
  .npcc-frontend #menu-btn { display:inline-flex; }
  .portal-event-grid,.portal-news-grid { grid-template-columns:1fr 1fr; }
  .portal-footer-grid { gap:24px; }
}
@media(max-width:760px) {
  .npcc-frontend .header-inner { width:calc(100% - 32px); gap:12px; }
  .npcc-frontend .brand { font-size:20px; gap:7px; }
  .npcc-frontend .brand .logo { height:40px; }
  .npcc-frontend .header-actions { gap:5px; }
  .npcc-frontend .hdr-signin { padding:8px 10px; font-size:16px; gap:6px; }
  .portal-page .container { width:calc(100% - 32px); }
  .portal-hero-copy { padding:40px 0 44px; max-width:100%; }
  .portal-home-hero { background-position:60% center; background-image:linear-gradient(90deg,#0c1b39f2,#0c1b39bd 55%,#0c1b3960),url('../assets/npcc-court-brand-2026.png'); }
  .portal-home-hero .sport-title { margin-top:26px; }
  .portal-hero-caption { font-size:14px; gap:16px; }
  .portal-hero-caption>span:last-child { display:none; }
  .portal-league-update,.portal-season-grid,.portal-detail-grid,.home-focus-card { grid-template-columns:1fr; }
  .portal-pathway-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .portal-pathway { padding:16px 13px; border-radius:12px; }
  .portal-pathway .portal-card-number { margin-bottom:6px; font-size:10.5px; letter-spacing:.04em; white-space:normal; }
  .portal-page .portal-pathway h2 { margin-bottom:6px; font-size:22px; line-height:1.15; }
  .portal-pathway p { margin-bottom:6px; font-size:12.5px; line-height:1.4; }
  .portal-pathway-season { margin-bottom:12px; font-size:11.5px; line-height:1.4; }
  .portal-pathway-links { align-items:stretch; flex-direction:column; gap:4px; margin-top:0; }
  .portal-pathway .portal-btn { width:100%; min-height:38px; justify-content:center; padding:7px 8px; font-size:13px; }
  .portal-pathway .portal-btn>span { font-size:12px; }
  .portal-pathway-links>a:not(.portal-btn) { min-height:32px; font-size:12px; white-space:normal; }
  .portal-empty { padding:24px; gap:16px; align-items:flex-start; }
  .portal-empty-mark { display:none; }
  .portal-section-head { align-items:flex-start; gap:18px; }
  .portal-section-head .portal-text-link { flex-shrink:0; margin-top:0; }
  .portal-event-grid,.portal-news-grid { grid-template-columns:1fr; }
  .portal-event-body,.portal-news-card>a { padding:22px; }
  .portal-league-update { gap:24px; }
  .portal-match-row { grid-template-columns:1fr auto 1fr; gap:12px; padding:18px; }
  .portal-match-meta { grid-column:1/-1; }
  .portal-match-row .portal-status { grid-column:1/-1; justify-self:start; }
  .portal-subnav>.container { width:max-content; padding:0 16px; gap:24px; }
  .portal-league-filters { flex-wrap:wrap; gap:14px; padding:18px; }
  .portal-league-filters>div { flex:1 1 calc(50% - 14px); max-width:none; }
  .portal-league-filters>span { padding-bottom:0; }
  .portal-table-hint { display:block; }
  .portal-cup-toolbar { display:block; }
  .portal-search { margin-top:24px; }
  .portal-search input { min-width:0; width:100%; }
  .portal-search>div>input { flex:1; }
  .portal-detail-info { padding:22px; }
  .portal-detail-heading { padding-top:16px; }
  .home-focus-content { padding:24px; }
  .home-focus-poster { min-height:0; }
  .home-focus-poster img { max-height:440px; }
  .portal-partner-invite { display:block; padding:0; }
  .portal-partner-invite .portal-btn { margin-top:12px; }
  .portal-sponsor-grid { grid-template-columns:1fr 1fr; }
  .portal-footer-grid { grid-template-columns:1fr 1fr; gap:30px 20px; }
  .portal-footer-brand { grid-column:1/-1; }
  .portal-footer-bottom { display:block; font-size:14px; line-height:1.8; }
  .portal-footer-bottom>span { display:block; }
}

/* V1 shared components: navigation, data, forms and editorial content. */
.npcc-frontend .container { max-width:var(--content-max); }
.npcc-frontend h1,.npcc-frontend h2,.npcc-frontend h3,.npcc-frontend h4 { font-family:var(--font-body); letter-spacing:0; }
.npcc-frontend h1 { font-size:var(--type-h1); line-height:1.25; font-weight:700; }
.npcc-frontend h2 { font-size:var(--type-h2); line-height:1.35; font-weight:650; }
.npcc-frontend h3 { font-size:var(--type-card); line-height:1.4; font-weight:600; }
.npcc-frontend p { overflow-wrap:anywhere; }
.npcc-frontend .sport-title { font-family:var(--font-display); }
.npcc-frontend button,.npcc-frontend input,.npcc-frontend select,.npcc-frontend textarea { font-family:var(--font-body); }
.npcc-frontend .btn { min-height:44px; padding:10px 18px; border-radius:var(--radius-sm); font-size:16px; font-weight:600; line-height:1.5; }
.npcc-frontend .btn-primary { background:var(--action-rose); color:#fff; }
.npcc-frontend .btn-ghost { background:#fff; border:1px solid var(--border); color:var(--text); }
.npcc-frontend .panel { border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); box-shadow:none; min-width:0; }
.npcc-frontend .panel-head,.npcc-frontend .panel-body { padding:var(--space-card); }
.npcc-frontend .panel-head { border-bottom:1px solid var(--border); }
.npcc-frontend .page { padding:32px 0 48px; }
.npcc-frontend .page-head,.npcc-frontend .page-title,.npcc-frontend .reg-hero { margin-bottom:28px; white-space:normal; }
.npcc-frontend .reg-hero { background:var(--league-navy); color:#fff; padding:28px; border:0; border-radius:var(--radius); }
.npcc-frontend .reg-hero h1 { margin-bottom:10px; }
.npcc-frontend .reg-hero p { color:#CBD8E8; max-width:60ch; }
.npcc-frontend .reg-hero .chip { border-color:#ffffff40; color:#fff; background:#ffffff0d; }
.npcc-frontend .field { min-width:0; }
.npcc-frontend .field label { font-size:14px; font-weight:500; line-height:1.6; }
.npcc-frontend .field input:not([type=checkbox]),.npcc-frontend .field select,.npcc-frontend .field textarea { font-size:16px; border:1px solid #8A99AD; border-radius:var(--radius-sm); min-height:46px; background:#fff; color:var(--text); width:100%; }
.npcc-frontend .form-grid,.npcc-frontend .reg-main { min-width:0; }
.npcc-frontend .table-scroll { overflow:auto; max-width:100%; }
.npcc-frontend table { font-variant-numeric:tabular-nums; }
.npcc-frontend .ranking-table th { background:var(--league-tabs); color:var(--text); }
.npcc-frontend .ranking-table td { border-bottom:1px solid var(--border); }
.npcc-frontend .empty { padding:24px; font-size:16px; }
.npcc-frontend .empty .big { display:none; }
.npcc-frontend :focus-visible { outline:3px solid #316DB5; outline-offset:4px; }
.npcc-frontend input:focus-visible,.npcc-frontend select:focus-visible,.npcc-frontend textarea:focus-visible { outline-offset:2px; }
.npcc-frontend [aria-busy=true] { cursor:progress; }
.npcc-frontend .form-error { color:#A22233; background:#FFF0F1; border-radius:9px; }
.npcc-frontend .form-note,.npcc-frontend .table-hint { font-size:14px; line-height:1.6; }
.portal-menu-tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding-top:16px; border-top:1px solid var(--border); }
.portal-menu-tools button { min-height:44px; padding:8px 14px; border:1px solid var(--border); border-radius:8px; background:#fff; font-size:15px; }
.portal-menu-tools button[aria-pressed=true] { background:var(--league-navy); color:#fff; }
.portal-subnav::-webkit-scrollbar,.account-navigation::-webkit-scrollbar { display:none; }
.league-navigation { background:var(--steel-blue); color:#D2DCEB; }
.league-navigation a:hover { color:#fff; }
.league-navigation a:focus-visible { outline-color:var(--league-accent); outline-offset:-4px; }
.tournament-filters { background:var(--tournament-tabs); padding:12px 0; }
.tournament-filters>.container { gap:8px; }
.tournament-filters a { background:#E3DEEA; color:#453B56; min-height:42px; padding:9px 16px; border:0; border-radius:9px; }
.tournament-filters a[aria-current=page] { background:var(--tournament-purple); color:#fff; }
.tournament-filters a:hover { background:#D6CFE2; color:#29203F; }
.tournament-filters a[aria-current=page]:hover { background:#39304F; color:#fff; }
[data-npcc-portal=league] #portal-root>.portal-section { background:var(--league-tabs); }
[data-npcc-portal=tournaments] { background:var(--tournament-surface); }
.portal-context-links { display:flex; flex-wrap:wrap; gap:8px 24px; margin-bottom:24px; font-size:14px; }
.portal-context-links a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:5px; color:var(--muted); }
.portal-season-note { color:var(--muted); }
.portal-how-to { border-top:1px solid var(--border); margin-top:28px; padding-top:16px; }
.portal-how-to summary { cursor:pointer; min-height:44px; padding:10px 0; font-weight:600; }
.portal-how-to ol { padding:12px 0 12px 24px; line-height:1.8; color:var(--muted); }
.portal-how-to li { padding-bottom:8px; }
.portal-how-to .portal-text-link { margin-bottom:4px; }
.portal-section.portal-pathways { background:#fff; }
.portal-soft { border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.portal-partners { border-top:1px solid var(--border); background:var(--league-tabs); }
.portal-partners .portal-section-head { margin-bottom:12px; }
.portal-news-image { width:100%; aspect-ratio:16/9; object-fit:cover; margin-bottom:16px; border-radius:var(--radius-sm); }
.portal-player-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.portal-player-card { display:flex; align-items:center; gap:16px; padding:20px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; }
.portal-player-initial { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--league-tabs); color:var(--steel-blue); flex-shrink:0; }
.portal-table tbody tr:nth-child(even) { background:#F8FAFD; }
.portal-table td:first-child { font-weight:700; }
.portal-table td:last-child { font-weight:700; }
.portal-table tbody tr:last-child td { border-bottom:0; }
.portal-match-row.is-result .portal-score { font-size:32px; color:var(--text); }
.portal-match-row.is-result { border-left:3px solid var(--league-accent); }
.portal-match-meta small { font-size:14px; line-height:1.5; }
.portal-match-row b { font-weight:600; }
.portal-status { line-height:1.4; font-weight:600; border-radius:6px; }
.portal-status.upcoming { background:#E9EFF7; color:#334F72; }
.portal-status.closed,.portal-status.full { background:#FFF4DE; color:#775000; }
.portal-status.pending { background:#EEEAF3; color:#57466D; }
.portal-event-card:hover { box-shadow:var(--shadow); }
.npcc-frontend .article-body { padding:var(--space-card); max-width:780px; margin:auto; font-size:16px; line-height:1.8; }
.npcc-frontend .news-track { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; gap:24px; }
.account-panel { padding:var(--space-card); margin-bottom:20px; }
#acct-root { overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
.account-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,390px); gap:24px; align-items:start; }
.account-main-column { min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow-sm); }
.account-main-column .account-panel { margin:0; padding:28px var(--space-card); border:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
.account-main-column .account-panel + .account-panel { border-top:1px solid var(--border-soft); }
.account-registration-column { min-width:0; position:sticky; top:calc(var(--header-h,72px) + 16px); }
.account-registration-column .account-registration-card { margin:0; }
.account-panel-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.account-panel-heading h2 { font-size:var(--type-h3); }
.account-registration-column .account-registration-card { padding:0; }
.account-registration-summary { align-items:center; margin:0; padding:22px; cursor:pointer; list-style:none; }
.account-registration-summary::-webkit-details-marker { display:none; }
.account-registration-summary::after { content:""; width:10px; height:10px; margin-left:auto; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform .18s ease; }
.account-registration-card[open] .account-registration-summary::after { transform:rotate(-135deg); }
.account-registration-summary:focus-visible { outline:3px solid var(--action-rose); outline-offset:-3px; }
.account-registration-heading-wrap { display:inline-flex; align-items:center; gap:8px; min-width:0; }
.account-registration-heading { color:var(--text); font-family:var(--font-display); font-size:var(--type-h3); font-weight:700; line-height:1.25; }
.account-registration-badge { position:static; top:auto; right:auto; flex:0 0 auto; }
.account-registration-hint { font-size:14px; }
.account-registration-groups { display:grid; gap:24px; padding:0 22px 22px; }
.account-registration-group { min-width:0; }
.account-registration-group + .account-registration-group { padding-top:24px; border-top:1px solid var(--border-soft); }
.account-registration-group h3 { margin:0 0 10px; font-size:16px; }
.account-registration-list { min-width:0; }
.account-registration-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 0; border-bottom:1px solid var(--border-soft); font-size:14px; min-width:0; }
.account-registration-row:last-child { border-bottom:0; }
.account-registration-status { margin-left:auto; color:var(--muted); font-weight:600; }
.account-registration-empty { margin:0; font-size:14px; }
.account-entry-consent-actions { display:inline-flex; gap:8px; flex-wrap:wrap; }
.account-entry-consent-actions .btn { margin:0; }
.account-entry-actions { display:flex; flex:1 0 100%; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.account-entry-actions .btn { margin:0; padding:8px 10px; font-size:13px; white-space:nowrap; }
.account-entry-cancel { margin:0; color:var(--action-rose); border-color:color-mix(in srgb,var(--action-rose) 32%,var(--border-soft)); }
.account-entry-cancel:hover { color:#fff; background:var(--action-rose); border-color:var(--action-rose); }
.account-payment-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; flex-basis:100%; }
.account-payment-actions .btn { margin:0; font-size:14px; }
.account-confirm-dialog .form-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.account-confirm-dialog .form-actions .btn { margin:0; }
.account-confirm-dialog .account-confirm-danger { color:#fff; background:var(--action-rose); border-color:var(--action-rose); }
.account-payment-hold { flex-basis:100%; color:var(--muted); font-size:13px; }
.account-chip-danger { color:#92203c; background:#fce9ed; border-color:#efc2cc; }
.account-chip-success { color:#17663f; background:#e7f6ed; border-color:#a9d8bd; }
.entry-success-dialog { width:min(520px,calc(100vw - 32px)); }
.entry-success-dialog .entry-success-payment { padding:14px 16px; border-radius:10px; background:var(--surface-2); color:var(--text); }
.entry-success-dialog .form-actions { margin-top:8px; }
.ec-confirm.account-payment-dialog { width:min(560px,calc(100vw - 32px)); max-width:min(560px,calc(100vw - 32px)); }
.account-payment-dialog h2 { padding-right:44px; }
.account-payment-close { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:40px; min-width:40px; height:40px; min-height:40px; padding:0; border:0; border-radius:50%; background:var(--surface-2); color:var(--text); font:400 26px/1 var(--font-body); cursor:pointer; }
.account-payment-close:hover { background:var(--surface-3, var(--surface-2)); }
.account-payment-close:focus-visible { outline:3px solid var(--action-rose); outline-offset:2px; }
.account-payment-context { margin:-4px 0 6px; color:var(--muted); font-size:14px; overflow-wrap:anywhere; }
.account-payment-amount { margin:0 0 16px; font-size:20px; font-weight:700; color:var(--text); }
.account-payment-qr { display:grid; justify-items:center; gap:10px; margin:0 0 16px; padding:16px; border:1px solid var(--border-soft); border-radius:10px; background:#fff; }
.account-payment-qr img { display:block; width:min(260px,100%); aspect-ratio:1; object-fit:contain; }
.account-payment-qr figcaption { color:var(--muted); font-size:13px; line-height:1.5; text-align:center; }
.account-payment-details { display:grid; gap:0; margin:0 0 18px; border-top:1px solid var(--border-soft); }
.account-payment-details>div { display:grid; grid-template-columns:minmax(110px,.7fr) minmax(0,1.3fr); gap:14px; padding:10px 0; border-bottom:1px solid var(--border-soft); }
.account-payment-details dt { color:var(--muted); font-size:13px; }
.account-payment-details dd { margin:0; min-width:0; color:var(--text); font-size:14px; font-weight:600; overflow-wrap:anywhere; user-select:text; }
.account-payment-details a { color:var(--action-rose); text-decoration:underline; text-underline-offset:3px; }
.account-payment-missing { padding:14px 16px; border-radius:8px; background:var(--surface-2); color:var(--text); font-size:14px; line-height:1.6; }
.account-payment-missing a { color:var(--action-rose); font-weight:700; }
.account-payment-dialog .form-actions { justify-content:flex-end; }
@media (max-width:520px) {
  .account-payment-details>div { grid-template-columns:minmax(0,1fr); gap:3px; }
  .account-payment-dialog .form-actions .btn { width:100%; }
}
.account-identity { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.account-avatar-stack { display:flex; flex-direction:column; align-items:center; gap:8px; flex:0 0 auto; }
.account-avatar-upload { color:var(--muted); font-size:13px; font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.account-avatar-upload:focus-within { outline:3px solid var(--action-rose); outline-offset:3px; border-radius:4px; }
.account-identity-copy { min-width:0; flex:1 1 280px; }
.account-name-line { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.account-name-line>b { font-size:20px; line-height:1.25; overflow-wrap:anywhere; }
.account-meta { margin-top:5px; color:var(--muted); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.account-verified-player { display:block; width:16px; height:16px; flex:0 0 16px; }
.account-verified-player>svg { display:block; width:100%; height:100%; }
.account-signout { margin-left:auto; align-self:flex-start; }
.account-primary-actions { display:flex; align-items:stretch; gap:10px; flex-wrap:wrap; margin-top:20px; }
.account-primary-actions .btn { margin:0; min-height:46px; }
.account-primary-actions .btn-primary { flex:1 1 260px; justify-content:center; }
.account-settings-link-button { flex:0 1 220px; justify-content:space-between; gap:18px; }
.account-settings-panel { display:grid; grid-template-columns:minmax(220px,.72fr) minmax(0,1.45fr); gap:16px; align-items:start; margin-top:14px; padding:16px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); }
.account-settings-panel[hidden] { display:none; }
.account-settings-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:10px 0 22px; border-bottom:1px solid var(--border-soft); }
.account-settings-page-heading { min-width:0; }
.account-settings-page-heading h1 { margin:6px 0 0; font-size:30px; line-height:1.2; }
.account-settings-page-heading p { max-width:58ch; margin:8px 0 0; color:var(--muted); font-size:15px; line-height:1.6; }
.account-settings-page-back { font-weight:700; }
.account-settings-page-panel { margin-top:22px; }
.account-settings-signed-out { max-width:720px; }
.account-settings-signed-out h1 { margin:12px 0 8px; font-size:30px; line-height:1.2; }
.account-settings-summary { display:flex; align-items:center; gap:14px; min-width:0; padding:0 0 16px; border-bottom:1px solid var(--border-soft); }
.account-settings-summary-copy { min-width:0; }
.account-settings-summary-name { display:flex; align-items:center; gap:7px; flex-wrap:wrap; font-size:18px; font-weight:700; line-height:1.3; }
.account-settings-summary-email { margin-top:4px; color:var(--muted); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.account-settings-actions { min-width:0; padding-right:16px; border-right:1px solid var(--border); }
.account-settings-menu { display:grid; gap:0; }
.account-settings-link { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; min-height:46px; padding:10px 4px; border:0; border-bottom:1px solid var(--border-soft); border-radius:0; background:transparent; color:var(--text); font:600 14px/1.35 var(--font-body); text-align:left; text-decoration:none; cursor:pointer; }
.account-settings-link:last-of-type { border-bottom:0; }
.account-settings-link:hover { color:var(--action-rose); }
.account-settings-link:focus-visible { outline:3px solid var(--action-rose); outline-offset:2px; }
.account-settings-link>span:first-child { min-width:0; }
.account-settings-arrow { flex:0 0 auto; color:var(--muted); font-size:16px; }
.account-settings-link:hover .account-settings-arrow { color:inherit; }
.account-settings-danger { color:var(--danger); }
.account-delete-box { margin-top:10px; padding-top:14px; border-top:1px solid var(--border-soft); }
.account-delete-box>p { margin:0 0 12px; color:var(--muted); font-size:14px; line-height:1.55; }
.account-delete-box>label:not(.check-row) { display:flex; flex-direction:column; gap:6px; max-width:320px; color:var(--muted); font-size:14px; font-weight:700; }
.account-delete-box>label:not(.check-row) input { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--text); font:400 14px/1.4 var(--font-body); }
.account-delete-box .check-row { margin-top:10px; }
.account-delete-box .form-actions { margin-top:12px; }
.account-settings-delete-action { margin:0; color:var(--danger); }
.account-settings-details { min-width:0; padding:0 4px; }
.account-settings-details h2,
.account-settings-details h3 { margin:16px 0 0; font-size:18px; line-height:1.3; }
.account-settings-details-note { margin:5px 0 0; color:var(--muted); font-size:14px; line-height:1.55; }
.account-settings-profile-empty { margin:14px 0 0; padding:12px 14px; border-radius:8px; background:var(--surface-2); color:var(--text); font-size:14px; line-height:1.55; }
.account-detail-grid { display:grid; grid-template-columns:minmax(0,1fr); margin:14px 0 0; }
.account-detail-row { display:grid; grid-template-columns:minmax(92px,.65fr) minmax(0,1.35fr); gap:12px; align-items:start; padding:11px 0; border-bottom:1px solid var(--border-soft); }
.account-detail-row dt { color:var(--muted); font-size:14px; line-height:1.5; }
.account-detail-row dd { margin:0; min-width:0; color:var(--text); font-size:14px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; user-select:text; }
.club-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:minmax(196px,auto); gap:14px; align-items:stretch; }
.club-choice-card { display:flex; flex-direction:column; min-width:0; min-height:196px; height:100%; padding:16px; border:1px solid var(--border-soft); border-radius:12px; background:var(--surface-2); }
.club-choice-card>b { min-height:1.4em; line-height:1.4; }
.club-choice-card>p { flex:1 1 auto; min-height:3.1em; line-height:1.55; }
.club-choice-action { margin-top:auto; padding-top:14px; }
.club-choice-action .btn { width:100%; margin:0; justify-content:center; }
.club-choice-expanded { margin-top:14px; padding-top:14px; border-top:1px solid var(--border-soft); }
.account-navigation { display:flex; gap:24px; overflow:auto; scrollbar-width:none; margin-bottom:24px; border-bottom:1px solid var(--border); }
.account-navigation a { display:inline-flex; align-items:center; min-height:48px; white-space:nowrap; font-weight:600; padding:8px 0; border-bottom:3px solid transparent; }
.account-navigation a[aria-current=page] { border-color:var(--brand-pink); }
@media(max-width:980px) {
  .npcc-frontend .header-inner { gap:16px; }
  .npcc-frontend .brand>span { display:none; }
  .npcc-frontend .header-actions { gap:8px; }
  .npcc-frontend .header-actions>.lang-switch,.npcc-frontend .header-actions>.hdr-bell { display:none; }
  .npcc-frontend .hdr-signin { order:1; padding:10px; border:0; background:transparent; color:var(--text); min-width:44px; height:44px; }
  .npcc-frontend .hdr-signin>span { display:none; }
  .npcc-frontend #menu-btn { order:2; min-width:44px; height:44px; justify-content:center; }
  .npcc-frontend .bell-panel { position:fixed; top:var(--header-h); right:16px; max-width:calc(100vw - 32px); max-height:70dvh; overflow:auto; }
  .portal-mobile-menu { max-height:calc(100dvh - var(--header-h)); overflow:auto; }
}
@media(max-width:900px) {
  .account-layout { grid-template-columns:minmax(0,1fr); }
  .account-registration-column { position:static; order:-1; }
}
@media(min-width:981px) { .portal-menu-tools { display:none; } }
@media(max-width:760px) {
  .npcc-frontend .container,.npcc-frontend .header-inner { width:calc(100% - 32px); }
  .portal-section-hero { padding:28px 0; }
  .portal-section-hero p { max-width:40ch; }
  .portal-hero-caption { padding:12px 0; }
  .portal-section-head { align-items:center; gap:12px; margin-bottom:20px; }
  .portal-section-head h2 { font-size:24px; }
  .portal-empty { padding:24px 20px; }
  .portal-empty h3 { font-size:20px; }
  .portal-empty p { margin:0; line-height:1.6; }
  .portal-league-filters { margin-bottom:12px; }
  .portal-league-filters>div { flex:1 1 100%; }
  .portal-match-row { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
  .portal-match-row.is-result .portal-score { font-size:28px; }
  .portal-score { max-width:104px; font-size:22px; }
  .portal-match-row .portal-status { grid-column:1/-1; }
  .portal-match-row>b { font-size:16px; }
  .portal-context-links { gap:8px 20px; margin-bottom:16px; }
  .portal-player-grid { grid-template-columns:1fr; }
  .portal-detail-info dl>div { grid-template-columns:80px minmax(0,1fr); gap:12px; }
  .portal-detail-info { padding:20px; }
  .npcc-frontend .reg-hero { padding:24px 20px; }
  .npcc-frontend .page { padding:24px 0 36px; }
  .npcc-frontend .page-head,.npcc-frontend .page-title { flex-wrap:wrap; overflow:visible; }
  .npcc-frontend .page-title h1,.npcc-frontend .page-title .sub { white-space:normal; }
  .npcc-frontend .news-track { grid-template-columns:1fr; }
  .npcc-frontend .form-grid { grid-template-columns:minmax(0,1fr); }
  .npcc-frontend .form-actions { flex-wrap:wrap; }
  .npcc-frontend .form-actions>* { max-width:100%; }
  .npcc-frontend .reg-layout { display:block; }
  .account-navigation { gap:20px; }
  .account-layout { grid-template-columns:minmax(0,1fr); }
  .account-registration-column { position:static; order:-1; }
  .account-main-column .account-panel { padding:24px 20px; }
  .account-registration-column .account-registration-card { padding:0; }
  .account-registration-summary { padding:24px 20px; }
  .account-registration-groups { padding:0 20px 24px; }
  .account-registration-status { flex-basis:100%; margin-left:0; }
  .account-entry-consent-actions { flex-basis:100%; }
  .account-primary-actions { flex-direction:column; }
  .account-primary-actions .btn { width:100%; flex:1 1 auto; }
  .account-settings-page-head { align-items:flex-start; }
  .account-settings-page-heading h1 { font-size:26px; }
  .account-settings-page-back { align-self:flex-start; }
  .account-settings-panel { grid-template-columns:minmax(0,1fr); padding:14px; }
  .account-settings-actions { padding:0 0 14px; border-right:0; border-bottom:1px solid var(--border); }
  .account-settings-details { padding:16px 4px 0; }
  .club-choice-grid { grid-template-columns:minmax(0,1fr); }
  .npcc-frontend .acct-avatar { max-width:64px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .npcc-frontend *,.npcc-frontend *::before,.npcc-frontend *::after { animation:none; transition:none; scroll-behavior:auto; }
}

.portal-subnav.has-more { box-shadow:inset -14px 0 12px -12px #10244180; }
.portal-section-hero .portal-hero-detail:empty { display:none; }
.portal-list-label { margin:24px 0 12px; color:var(--muted); }
.npcc-frontend .group-hero { background:var(--league-navy); color:#fff; }
.npcc-frontend .group-hero h1 { font-family:var(--font-body); }
.npcc-frontend .article-body h1 { margin:12px 0 24px; }
.npcc-frontend .article-body img { height:auto; max-width:100%; }

/* Compact match cards also work inside a half-width homepage column. */
.portal-league-update .portal-match-row { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:12px; padding:20px; }
.portal-league-update .portal-match-meta,.portal-league-update .portal-match-row .portal-status { grid-column:1/-1; }
.portal-league-update .portal-match-row .portal-status { justify-self:start; }
.portal-score>span { display:block; white-space:nowrap; }
.home-focus { background:var(--tournament-surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.home-focus .container { padding-block:48px 54px; }
.home-focus-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:22px; }
.home-focus-heading h2 { margin:0; font-size:var(--type-h2); }
.home-focus-heading p { margin:0; max-width:420px; color:var(--muted); font-size:15px; line-height:1.5; text-align:right; }
.home-focus-stage { position:relative; isolation:isolate; min-width:0; }
.home-focus-rail-wrap { min-width:0; }
.home-focus-rail { --focus-card-size:clamp(250px,25vw,320px); display:flex; align-items:flex-start; gap:20px; overflow-x:auto; overflow-y:hidden; padding:0 0 14px; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#EB1682 #D9E1EC; cursor:grab; }
.home-focus-rail.is-dragging { cursor:grabbing; scroll-snap-type:none; user-select:none; }
.home-focus-rail:focus-visible { outline:3px solid var(--action-rose); outline-offset:5px; }
.home-focus-rail::-webkit-scrollbar { height:10px; }
.home-focus-rail::-webkit-scrollbar-track { background:#D9E1EC; border-radius:8px; }
.home-focus-rail::-webkit-scrollbar-thumb { background:#EB1682; border-radius:8px; }
.home-focus-card-shell { position:relative; flex:0 0 var(--focus-card-size); min-width:0; scroll-snap-align:start; transition:flex-basis .32s cubic-bezier(.16,.9,.28,1.06); }
.home-focus-card-shell.is-detail-open { z-index:60; }
.home-focus-poster-card { position:relative; display:grid; grid-template-rows:minmax(0,1fr) auto; width:100%; padding:0; overflow:hidden; border:0; border-radius:14px; background:var(--navy); color:#fff; cursor:pointer; }
.home-focus-rail.is-single { justify-content:center; }
.home-focus-card-shell:only-child { --focus-card-size:clamp(320px,36vw,430px); flex-basis:var(--focus-card-size); }
.home-focus-card-shell.is-detail-open { display:flex; align-items:flex-start; flex-basis:calc(var(--focus-card-size) * 2); }
.home-focus-card-shell.is-detail-open>.home-focus-poster-card { flex:0 0 var(--focus-card-size); width:var(--focus-card-size); }
.home-focus-poster-media { display:block; min-height:0; overflow:hidden; aspect-ratio:637/868; background:var(--navy); }
.home-focus-poster-card img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.home-focus-poster-card:hover .home-focus-poster-media img { transform:scale(1.025); }
.home-focus-poster-card:focus-visible { outline:3px solid var(--action-rose); outline-offset:4px; }
.home-focus-poster-card.is-selected { z-index:40; outline:3px solid var(--action-rose); outline-offset:-3px; }
.home-focus-poster-action { display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:10px 16px; background:#fff; color:var(--navy); font-size:15px; font-weight:700; }
.home-focus-poster-action b { font-size:17px; }
.home-focus-detail { position:relative; z-index:2; flex:0 0 var(--focus-card-size); width:var(--focus-card-size); min-width:0; height:var(--focus-detail-height,auto); max-height:var(--focus-detail-height,none); padding:22px 20px; overflow-y:auto; overscroll-behavior:contain; border-radius:0 16px 16px 0; background:#fff; color:var(--text); transform-origin:left center; scrollbar-width:thin; scrollbar-color:#EB1682 #D9E1EC; }
.home-focus-detail[hidden] { display:none; }
.home-focus-detail-head { display:flex; align-items:center; justify-content:space-between; min-height:36px; gap:16px; }
.home-focus-detail-close { display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:var(--tournament-surface); color:var(--navy); font-size:24px; line-height:1; cursor:pointer; }
.home-focus-detail-close:focus-visible { outline:3px solid var(--action-rose); outline-offset:2px; }
.home-focus-detail h3 { margin:16px 0 22px; overflow-wrap:anywhere; font-size:clamp(24px,2.5vw,32px); line-height:1.15; }
.home-focus-detail dl>div { display:grid; grid-template-columns:52px minmax(0,1fr); gap:12px; margin-top:12px; font-size:15px; }
.home-focus-detail dt { color:var(--muted); }
.home-focus-detail dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.home-focus-detail-rules { display:none; }
.home-focus-detail-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:24px; }
.home-focus-detail.is-open { animation:home-focus-detail-down-in .32s cubic-bezier(.16,.9,.28,1.06) both; }
.home-focus-detail.is-closing { animation:home-focus-detail-down-out .24s cubic-bezier(.55,0,.85,.4) both; }
@keyframes home-focus-detail-down-in { from { opacity:.4; transform:translate3d(0,-24px,0); clip-path:inset(0 0 88% 0); } to { opacity:1; transform:none; clip-path:inset(0); } }
@keyframes home-focus-detail-down-out { from { opacity:1; transform:none; clip-path:inset(0); } to { opacity:0; transform:translate3d(0,-24px,0); clip-path:inset(0 0 88% 0); } }
@keyframes home-focus-detail-right-in { from { opacity:.5; transform:translate3d(-100%,0,0); } to { opacity:1; transform:none; } }
@keyframes home-focus-detail-right-out { from { opacity:1; transform:none; } to { opacity:0; transform:translate3d(-100%,0,0); } }
@media(min-width:761px){
  .home-focus-detail { position:absolute; top:0; right:auto; bottom:0; left:var(--focus-card-size); height:var(--focus-detail-height,100%); max-height:var(--focus-detail-height,100%); }
  .home-focus-detail::-webkit-scrollbar { width:8px; }
  .home-focus-detail::-webkit-scrollbar-track { background:#D9E1EC; }
  .home-focus-detail::-webkit-scrollbar-thumb { background:#EB1682; border-radius:8px; }
  .home-focus-detail-rules:not([hidden]) { display:block; margin-top:20px; padding:15px 14px; border-radius:10px; background:var(--tournament-surface); }
  .home-focus-detail-rules h4 { margin:0 0 10px; color:var(--navy); font-size:16px; line-height:1.25; }
  .home-focus-detail-rules-copy { color:var(--text); font-size:14px; line-height:1.5; }
  .home-focus-detail-rules-copy p { margin:0 0 8px; }
  .home-focus-detail-rules-copy p:last-child,.home-focus-detail-rules-copy ul:last-child,.home-focus-detail-rules-copy ol:last-child { margin-bottom:0; }
  .home-focus-detail-rules-copy h5 { margin:10px 0 6px; font-size:14px; }
  .home-focus-detail-rules-copy ul,.home-focus-detail-rules-copy ol { margin:0; padding-left:18px; }
  .home-focus-detail.is-open { animation-name:home-focus-detail-right-in; }
  .home-focus-detail.is-closing { animation-name:home-focus-detail-right-out; }
}
@media(max-width:760px){
  .home-focus .container { padding-block:32px 38px; }
  .home-focus-heading { display:block; margin-bottom:18px; }
  .home-focus-heading h2 { margin-bottom:6px; }
  .home-focus-heading p { max-width:none; font-size:14px; text-align:left; }
  .home-focus-rail.is-3d { --focus-card-width:min(74vw,330px); gap:12px; padding:20px calc((100% - var(--focus-card-width))/2) 14px; scroll-padding-inline:calc((100% - var(--focus-card-width))/2); scroll-snap-type:x mandatory; overscroll-behavior-x:contain; touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch; perspective:920px; perspective-origin:50% 46%; transform-style:preserve-3d; }
  .home-focus-stage.has-detail .home-focus-rail.is-3d { scroll-snap-type:none; }
  .home-focus-rail.is-3d::-webkit-scrollbar { height:4px; }
  .home-focus-rail.is-3d::-webkit-scrollbar-track { background:transparent; }
  .home-focus-rail.is-3d::-webkit-scrollbar-thumb { background:#EB1682A8; }
  .home-focus-rail.is-3d .home-focus-card-shell { flex-basis:var(--focus-card-width); scroll-snap-align:center; }
  .home-focus-card-shell.is-detail-open { display:block; flex-basis:var(--focus-card-width); margin-inline:0; }
  .home-focus-card-shell.is-detail-open>.home-focus-poster-card { width:100%; }
  .home-focus-rail.is-3d .home-focus-poster-card { width:100%; transform-origin:50% 50%; transform-style:preserve-3d; backface-visibility:hidden; will-change:transform,opacity; transition:transform .16s linear,opacity .16s linear; }
  .home-focus-rail.is-3d.is-dragging .home-focus-poster-card { transition:none; }
  .home-focus-rail.is-3d .home-focus-poster-card:not(.is-active) .home-focus-poster-action { color:#35415A; }
  .home-focus-rail.is-reduced-motion .home-focus-poster-card { transform:none !important; opacity:1 !important; transition:none !important; }
  .home-focus-card-shell:only-child { flex-basis:var(--focus-card-width); }
  .home-focus-poster-action { min-height:46px; padding-inline:14px; }
  .home-focus-detail { position:relative; left:auto; top:auto; width:100%; height:var(--focus-detail-height,auto); max-height:var(--focus-detail-height,none); margin:-14px auto 0; padding:22px 20px; border-radius:0 0 14px 14px; transform-origin:top center; }
  .home-focus-detail h3 { font-size:25px; }
}
@media(prefers-reduced-motion:reduce){
  .home-focus-detail.is-open,.home-focus-detail.is-closing { animation:none; }
  .home-focus-poster-card img { transition:none; }
}
.portal-news-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); }
body.npcc-frontend:has(#event-root) { background:var(--tournament-surface); }
@media(min-width:761px) {
  .portal-news-card:only-child:has(.portal-news-image)>a { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); column-gap:32px; }
  .portal-news-card:only-child .portal-news-image { grid-row:1/6; height:100%; min-height:220px; margin:0; }
  .portal-news-card:only-child .portal-text-link { justify-self:start; align-self:start; }
}

.account-panel div,.account-panel label { min-width:0; overflow-wrap:anywhere; }
.account-panel input:not([type=checkbox]),.account-panel select,.account-panel textarea { max-width:100%; min-height:44px; font-size:16px; }
.npcc-frontend .entry-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); }

.portal-data-error { margin-block:24px; padding:20px; border:1px solid #E0BAC1; border-radius:var(--radius); background:#FFF0F1; color:#822338; }

/* Existing account team workspace; no season eligibility inferred. */
.team-workspace { padding:20px; margin-bottom:20px; background:var(--league-tabs); border-radius:var(--radius); }
.team-workspace h3 { margin-bottom:8px; }
.team-workspace .form-note { margin-top:8px; }
.league-participation { padding-left:24px; }
.league-participation li { padding:6px 0; }

/* Audit fixes: shared workflow and responsive presentation. */

.portal-search-disclosure{min-width:0;max-width:100%}.portal-search-disclosure>summary{font-size:15px;font-weight:600;cursor:pointer;min-height:44px;align-content:center}.portal-search-disclosure[open] .portal-search{padding-top:12px}
.portal-search-disclosure>summary:focus-visible{outline:3px solid #eb1682;outline-offset:3px}
.portal-event-image{background:#29203f}.portal-event-image img{object-fit:contain}
.portal-hero-actions .portal-btn.outline{border-color:#93bdf0;color:#fff;background:transparent}
@media(max-width:767px){.portal-cup-toolbar{gap:8px}.portal-cup-toolbar h2{font-size:22px}.portal-search-disclosure{width:100%}.portal-hero-actions{gap:10px}.portal-hero-actions .portal-btn{min-height:46px}.portal-pathway-links>a:not(.portal-btn){font-size:14px}.portal-tournament-content{padding-top:24px}}

