/*
Theme Name: SixnineThailand Baseline
Description: A courtside Thai guide to basketball, baccarat, slots and lottery results.
Version: 1.0.1
Author: SixnineThailand
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: sixninethailand-baseline
License: GNU General Public License v2 or later
*/
:root {
    --night: #10111e;
    --surface: #191b2c;
    --raised: #24263a;
    --ivory: #fcf4e6;
    --paper: #f6f1e9;
    --ink: #202239;
    --muted: #bcbcc9;
    --rule: #3d3e50;
    --orange: #ff985b;
    --display: "Barlow Condensed", "Arial Narrow", Impact, "Arial Black", Arial, sans-serif;
    --text: "Barlow", "Noto Sans Thai", Tahoma, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 400 1rem/1.65 var(--text); overflow-wrap: break-word; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.39; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, label, select { cursor: pointer; }
img, picture, svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ffae72; outline-offset: 3px; }
.frame { width: min(91%,1376px); margin-inline: auto; }
.ui-icon { width: 18px; height: 18px; flex: none; }
.skip { position: fixed; left: 8px; top: 6px; z-index: 99; background: var(--orange); color: var(--ink); padding: 8px 17px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.sr-only, .shot-switch input { position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }

/* Main navigation */
.mast { background: #131421; border-block-end: 1px solid #3e3941; }
.mast-inner { display: flex; align-items: center; gap: clamp(25px,4vw,74px); min-height: clamp(65px,5.15vw,82px); }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; gap: 9px; }
.wordmark img { width: 34px; height: 34px; }
.wordmark > span { font: 900 italic clamp(1.2rem,1.55vw,1.65rem)/1 var(--display); letter-spacing: -.075em; text-transform: uppercase; white-space: nowrap; }
.word-finish { color: var(--orange); }
.main-menu ul, .closing ul { list-style: none; margin: 0; padding: 0; }
.main-menu ul { display: flex; align-items: center; gap: clamp(15px,2.1vw,38px); }
.main-menu a, .desk-login { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .91rem; }
.main-menu a:hover, .main-menu a[aria-current], .desk-login:hover { color: var(--orange); }
.mast-actions { display: flex; align-items: center; gap: clamp(12px,1.6vw,27px); margin-left: auto; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border: 1px solid transparent; border-radius: 6px; padding: 9px 18px; font-size: .91rem; font-weight: 700; line-height: 1.47; }
.action .ui-icon { width: 15px; height: 15px; }
.primary-action, .ink-action { background: var(--orange); color: #211a1b; }
.primary-action:hover, .ink-action:hover { background: #ffae7b; }
.outline-action { background: #1c1c2dd9; border-color: #797585; color: white; }
.outline-action:hover { background: #353347; }
.nav-toggle, .main-menu .drawer-login { display: none; }

/* Courtside cover */
.cover { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(385px,34.5vw,586px); color: white; background: var(--night); overflow: hidden; }
.cover-art, .cover-art img { position: absolute; width: 100%; height: 100%; inset: 0; }
.cover-art { z-index: -2; }
.cover-art img { object-fit: cover; object-position: 70% 45%; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#111220f7 0%,#131521e0 21%,#1113218c 43%,#11132105 63%),linear-gradient(0deg,#10111e90 0%,transparent 23%); }
.cover-inner { padding-block: clamp(36px,5vw,83px); }
.cover-copy { width: min(55%,735px); }
.cover-copy::before { content: ""; display: block; width: 47px; height: 5px; background: var(--orange); transform: skewX(-27deg); margin-bottom: 19px; }
.cover h1 { font-size: clamp(1.66rem,3vw,3.05rem); line-height: 1.32; }
.cover-brand { display: block; margin-left: -.035em; letter-spacing: -.067em; font: 900 italic clamp(3rem,4.9vw,5.6rem)/.95 var(--display); letter-spacing: -.066em; text-transform: uppercase; color: var(--ivory); white-space: nowrap; }
.cover-brand span { color: var(--orange); }
.cover-subjects { display: block; color: var(--ivory); margin-top: .3em; }
.cover-copy > p { max-width: 35em; margin-top: .65em; color: #e3e0e6; line-height: 1.65; font-size: clamp(.98rem,1.25vw,1.14rem); }
.cover-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: clamp(18px,1.75vw,29px); }
.cover-actions .action { min-height: 46px; }
.cover-copy > .member-note { color: #d9d5de; font-size: .79rem; margin-top: 9px; }

/* Four guides */
.home-collection { padding-block: clamp(24px,2.9vw,45px) clamp(45px,5vw,80px); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 17px; margin-bottom: 17px; }
.section-heading h2 { font-size: clamp(1.35rem,2.05vw,2.13rem); padding-left: .52em; border-left: 4px solid var(--orange); }
.topic-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(10px,1.16vw,18px); }
.topic-card { position: relative; display: flex; align-items: end; min-width: 0; isolation: isolate; min-height: clamp(155px,15.2vw,240px); padding: clamp(14px,1.35vw,23px); border-radius: 9px; overflow: hidden; background: #292634; box-shadow: inset 0 0 0 1px #ffffff13; }
.topic-photo, .topic-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.topic-photo { z-index: -2; }
.topic-photo img { object-fit: cover; transition: transform .24s ease-out; }
.topic-card:hover img { transform: scale(1.045); }
.topic-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#100f1dfc 0%,#12101cd9 18%,#12101c73 40%,transparent 73%); }
.topic-caption { width: 100%; padding-right: 26px; }
.topic-caption h3 { color: #fff6e9; font-size: clamp(1.27rem,1.9vw,2rem); }
.topic-caption p { color: #ede4de; line-height: 1.5; font-size: clamp(.77rem,.94vw,.95rem); margin-top: 2px; }
.topic-arrow { position: absolute; right: clamp(12px,1.15vw,21px); bottom: clamp(18px,1.68vw,29px); width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #dfb494; color: #ffd7b0; border-radius: 50%; }
.topic-arrow .ui-icon { width: 14px; height: 14px; }

/* Scoring example and desk article */
.practice-row { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: clamp(14px,1.8vw,29px); margin-top: clamp(24px,2.5vw,40px); }
.score-lab, .feature-copy, .account-panel { border-radius: 9px; }
.score-lab { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,1fr); gap: clamp(14px,1.6vw,24px); align-items: center; background: #212138; border: 1px solid #464258; padding: clamp(17px,1.9vw,31px); }
.score-info h2, .feature-copy h2, .account-body h2 { font-size: clamp(1.15rem,1.55vw,1.65rem); }
.score-info p { margin-top: 7px; color: #d3cfda; font-size: .89rem; }
.score-link, .text-link { display: inline-flex; width: fit-content; gap: 8px; align-items: center; min-height: 35px; color: #ffad79; font-weight: 700; font-size: .87rem; }
.score-link { margin-top: 5px; }
.score-link .ui-icon, .text-link .ui-icon { width: 15px; height: 15px; }
.score-link:hover, .text-link:hover, .account-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shot-switch { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.shot-switch label { display: grid; align-items: center; min-height: 35px; padding: 4px 2px; text-align: center; font-size: .77rem; font-weight: 600; color: #ece8ef; background: #2c2b41; border: 1px solid #696578; line-height: 1.3; }
.shot-switch label:first-of-type { border-radius: 4px 0 0 4px; }
.shot-switch label:last-of-type { border-radius: 0 4px 4px 0; }
.shot-switch label + input + label { border-left: 0; }
.shot-switch input:checked + label { background: var(--orange); color: #1e1720; border-color: var(--orange); }
.shot-switch input:focus-visible + label { outline: 3px solid #ffe5c6; outline-offset: 3px; z-index: 1; }
.shot-result { display: none; grid-column: 1/-1; padding-top: 10px; }
#shot-1:checked ~ .result-1, #shot-2:checked ~ .result-2, #shot-3:checked ~ .result-3 { display: block; }
.shot-readout { display: flex; align-items: baseline; gap: .16em; color: #c2bdcb; font: 800 clamp(2.4rem,3.3vw,3.7rem)/1.1 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.shot-readout strong { color: #ffac79; }
.shot-readout .score-arrow { font: 400 .57em/1 system-ui, sans-serif; align-self: center; color: #9891a3; }
.shot-readout .score-unit { font: 600 .79rem var(--text); letter-spacing: 0; }
.shot-result p { min-height: 2.85em; color: #e0dce3; margin-top: 2px; font-size: .8rem; line-height: 1.44; }
.feature-copy { padding: clamp(19px,2.2vw,34px); background: var(--paper); color: var(--ink); }
.feature-copy h2 { color: #252033; margin-bottom: 6px; }
.feature-copy p { color: #474050; font-size: .96rem; }
.feature-copy a, .prose a { color: #97440f; text-decoration: underline; text-underline-offset: 3px; }

/* Reading lists and membership */
.journal { margin-top: clamp(29px,3.4vw,58px); }
.journal-controls { display: flex; align-items: center; gap: 9px; font-size: .87rem; color: var(--muted); margin-bottom: 13px; }
.journal-controls select { padding: 6px 28px 6px 9px; border: 1px solid #6e6b7c; color: var(--ivory); background: var(--surface); border-radius: 4px; }
.journal-list, .read-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.57vw,25px); }
.read-card { min-width: 0; display: grid; align-content: start; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.read-cover { display: block; width: 100%; aspect-ratio: 2.2; overflow: hidden; background: #242335; }
.read-cover img { width: 100%; height: 100%; object-fit: cover; }
.read-body { padding: clamp(13px,1.4vw,23px); }
.read-meta, .article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; color: var(--muted); font-size: .8rem; margin-bottom: 6px; }
.read-meta span { color: #ffac77; font-weight: 700; }
.read-body h2, .read-body h3 { font-size: clamp(1.03rem,1.35vw,1.45rem); }
.read-body h2 a:hover, .read-body h3 a:hover { text-decoration: underline; }
.read-body p { margin-top: 5px; font-size: .89rem; line-height: 1.64; color: #c6c3d1; }
.account-panel { display: grid; grid-template-columns: minmax(95px,27%) minmax(0,1fr); overflow: hidden; background: #28263a; border: 1px solid var(--rule); margin-top: clamp(22px,2.7vw,43px); }
.account-photo { position: relative; min-height: 128px; }
.account-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-body { align-self: center; padding: 20px clamp(15px,2.3vw,36px); }
.account-links { display: flex; flex-wrap: wrap; gap: 2px 23px; }
.account-body a { display: flex; align-items: center; gap: 8px; min-height: 39px; color: #ffc09a; font-size: .93rem; font-weight: 700; }
.account-body a .ui-icon { width: 15px; }

/* Content pages */
.inner-head { color: var(--ivory); background: linear-gradient(118deg,#1b1c30,#2a283a 73%,#513728); border-bottom: 2px solid #ad714e; padding-block: clamp(29px,4.2vw,73px); }
.inner-head h1 { max-width: 29em; font-size: clamp(1.75rem,3.45vw,3.7rem); overflow-wrap: anywhere; }
.inner-head p { margin-top: 10px; color: #d9d5df; max-width: 65em; font-size: clamp(.97rem,1.2vw,1.17rem); }
.crumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 13px; color: #d7d1d9; font-size: .83rem; }
.crumb a:hover, .article-byline a:hover { text-decoration: underline; }
.article-byline { margin-top: 9px; }
.article-byline a { color: #ffb88c; }
.reading { display: grid; align-items: start; grid-template-columns: minmax(0,1fr) minmax(195px,27%); gap: clamp(18px,2.7vw,44px); padding-block: clamp(25px,3.3vw,55px) clamp(43px,5.2vw,86px); }
.prose { min-width: 0; background: var(--paper); color: var(--ink); padding: clamp(19px,3.2vw,52px); border-radius: 8px; font-size: 1.015rem; line-height: 1.85; overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin: 1.17em 0 .4em; color: #252137; }
.prose h2 { font-size: clamp(1.26rem,1.95vw,1.95rem); }
.prose h3 { font-size: 1.13rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 .95em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: .25em; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.prose table caption { text-align: left; font-weight: 700; padding-block: 5px; }
.prose :is(th,td) { vertical-align: top; text-align: start; border: 1px solid #c8c0b9; padding: 7px 9px; }
.prose th { background: #e8dfd5; }
.prose .action { color: #231a1c; text-decoration: none; }
.outbound { padding: 16px 19px; margin-bottom: 23px; border-left: 4px solid #b55925; background: #eae1d6; }
.outbound p { margin: 6px 0 0; font-size: .89rem; color: #514854; }
.reading-side { min-width: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; padding-bottom: 8px; background: var(--surface); }
.reading-side img { aspect-ratio: 1.5; height: auto; width: 100%; object-fit: cover; }
.reading-side .text-link { margin: 8px 15px 0; }
.post-links { margin-top: 24px; padding-top: 13px; border-top: 1px solid #c7bfb8; display: grid; gap: 8px; }
.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.archive-body { padding-block: clamp(25px,3.4vw,55px) clamp(44px,5.2vw,85px); }
.archive-intro { margin-bottom: 24px; }
.missing { padding-block: 68px; }
.missing .action { margin-top: 15px; }

.closing { background: #171825; border-top: 1px solid #5b4e4e; }
.closing-grid { display: grid; grid-template-columns: 1.45fr .8fr 1fr; gap: clamp(24px,4.5vw,73px); padding-block: clamp(30px,4vw,64px); }
.closing-brand p { max-width: 27em; color: #c8c4d0; font-size: .9rem; margin-top: 13px; }
.closing h2 { color: #ffb587; font-size: 1rem; margin-bottom: 7px; }
.closing li a { display: inline-block; color: #e9e4ea; font-size: .88rem; padding-block: 3px; }
.closing li a:hover { text-decoration: underline; }
.colophon { display: flex; justify-content: space-between; gap: 13px; border-top: 1px solid var(--rule); padding-block: 15px; color: #bdb9c6; font-size: .79rem; }

@media (min-width:1950px) {
    .cover-art { left: auto; width: min(100%,2000px); }
    .cover-art img { object-position: center 44%; }
    .cover::after { background: linear-gradient(90deg,var(--night) 0%,#111321d6 29%,#11132124 58%,transparent 80%); }
}
@media (max-width:1050px) {
    .frame { width: 93%; }
    .mast-inner { gap: 22px; }
    .main-menu ul { gap: 15px; }
    .cover { min-height: 365px; }
    .score-lab { grid-template-columns: minmax(0,1fr); gap: 6px; }
    .shot-switch { max-width: 340px; }
    .shot-result p { min-height: 0; }
    .topic-arrow { display: none; }
    .topic-caption { padding-right: 0; }
}
@media (max-width:860px) {
    .mast-inner { min-height: 63px; flex-wrap: wrap; gap: 0; }
    .desk-login { display: none; }
    .mast-actions { gap: 8px; }
    .main-menu { order: 3; width: 100%; }
    .main-menu ul { flex-wrap: wrap; gap: 0 16px; }
    .main-menu .drawer-login { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); }
    .drawer-login .ui-icon { width: 13px; }
    .nav-ready .main-menu { display: none; }
    .nav-ready .menu-open .main-menu { display: flex; flex-wrap: wrap; gap: 15px; border-top: 1px solid var(--rule); padding-block: 5px; }
    .nav-ready .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 40px; height: 40px; padding: 0; color: var(--ivory); background: var(--raised); border: 1px solid #585568; border-radius: 5px; }
    .nav-toggle span { width: 16px; height: 2px; background: currentColor; }
    .cover { min-height: 339px; }
    .cover-copy { width: 58%; }
    .cover-brand { font-size: clamp(2.65rem,5.5vw,3.6rem); }
    .cover h1 { font-size: 1.57rem; }
    .cover-copy > p { font-size: .94rem; }
    .cover-actions .action { padding-inline: 11px; font-size: .82rem; min-height: 41px; }
    .topic-card { min-height: 141px; padding: 12px; }
    .topic-caption h3 { font-size: 1.24rem; }
    .topic-caption p { font-size: .77rem; }
    .practice-row { grid-template-columns: 1.1fr 1fr; }
    .reading { grid-template-columns: minmax(0,1fr) minmax(150px,23%); gap: 15px; }
}
@media (max-width:680px) {
    .frame { width: calc(100% - 32px); }
    .mast-inner { min-height: 57px; display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 6px; }
    .mast-inner > .wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
    .mast-actions { grid-column: 2; grid-row: 1; }
    .main-menu { grid-column: 1/-1; grid-row: 2; }
    .wordmark { gap: 6px; }
    .wordmark img { width: 26px; height: 26px; }
    .wordmark > span { font-size: 1.17rem; }
    .mast-actions { gap: 6px; }
    .mast-actions .action { min-height: 38px; font-size: .79rem; padding: 7px 10px; gap: 4px; }
    .mast-actions .ui-icon { width: 12px; }
    .nav-ready .nav-toggle { width: 37px; height: 38px; }
    .nav-ready .menu-open .main-menu { display: block; }
    .main-menu a { font-size: .86rem; }
    .cover { align-items: end; min-height: clamp(387px,105vw,560px); }
    .cover-art img { object-position: center 20%; }
    .cover::after { background: linear-gradient(0deg,#111220ff 0%,#111220ee 16%,#111220bb 40%,#11122030 67%,transparent 84%); }
    .cover-inner { padding: clamp(147px,42vw,254px) 0 26px; }
    .cover-copy { width: 100%; }
    .cover-copy::before { width: 32px; height: 4px; margin-bottom: 12px; }
    .cover-brand { font-size: clamp(1.55rem,7.95vw,3.35rem); line-height: .99; }
    .cover h1 { font-size: clamp(1.3rem,5.5vw,2.1rem); }
    .cover-copy > p { margin-top: 6px; font-size: .87rem; max-width: 30em; }
    .cover-actions { gap: 7px; margin-top: 15px; }
    .cover-actions .action { min-height: 40px; padding: 7px 10px; font-size: .8rem; gap: 4px; }
    .cover-actions .ui-icon { width: 12px; }
    .home-collection { padding-block: 22px 37px; }
    .section-heading { gap: 10px; margin-bottom: 13px; }
    .section-heading h2 { font-size: 1.25rem; }
    .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .topic-card { min-height: clamp(128px,37vw,227px); border-radius: 7px; padding: 10px; }
    .topic-caption h3 { font-size: 1.16rem; }
    .topic-caption p { font-size: .74rem; line-height: 1.42; }
    .practice-row { grid-template-columns: minmax(0,1fr); margin-top: 18px; gap: 12px; }
    .score-lab, .feature-copy { padding: 17px; }
    .shot-switch { max-width: none; }
    .score-link { margin-top: 1px; }
    .journal { margin-top: 23px; }
    .journal-list, .read-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .read-card { display: grid; grid-template-columns: minmax(79px,28%) minmax(0,1fr); }
    .read-cover { aspect-ratio: auto; min-height: 106px; height: 100%; }
    .read-body { padding: 10px 12px; }
    .read-body h2, .read-body h3 { font-size: 1rem; }
    .read-meta { font-size: .75rem; gap: 6px; }
    .read-body p { font-size: .81rem; line-height: 1.53; }
    .account-panel { grid-template-columns: minmax(80px,26%) minmax(0,1fr); margin-top: 17px; }
    .account-body { padding: 12px; }
    .account-body h2 { font-size: 1rem; }
    .account-body a { font-size: .83rem; min-height: 34px; }
    .reading { grid-template-columns: minmax(0,1fr); }
    .reading-side { display: grid; align-items: center; grid-template-columns: 28% minmax(0,1fr); padding-bottom: 0; }
    .reading-side .text-link { margin: 8px 12px; }
    .inner-head { padding-block: 23px; }
    .prose { padding: 16px 14px; font-size: .95rem; }
    .prose :is(th,td) { font-size: .83rem; padding: 5px; }
    .outbound { padding: 12px; }
    .closing-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .closing-brand { grid-column: 1/-1; }
    .colophon { flex-wrap: wrap; }
}
@media (max-width:440px) {
    .mast-inner .wordmark { gap: 5px; }
    .mast-inner .wordmark img { width: 21px; height: 21px; }
    .mast-inner .wordmark > span { font-size: clamp(.79rem,3.66vw,1rem); }
    .mast-actions { gap: 5px; }
    .mast-actions .action { padding-inline: 8px; font-size: .74rem; white-space: nowrap; }
    .mast-actions .ui-icon { display: none; }
}
@media (max-width:360px) {
    .frame { width: calc(100% - 24px); }
    .cover-actions .ui-icon { display: none; }
    .wordmark img { width: 24px; height: 24px; }
    .wordmark > span { font-size: 1.03rem; }
    .cover-actions .action { padding-inline: 7px; font-size: .74rem; }
    .cover-copy > p { font-size: .83rem; }
}
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
