/*
Theme Name: Livesportsz Pavilion
Description: ธีมคู่มือกีฬาและคาสิโนภาษาไทยสำหรับ livesportsz.online
Version: 1.0.0
Author: Livesportsz
Text Domain: livesportsz-pavilion
License: GNU General Public License v2 or later
*/
:root {
    --pine: #123e2f;
    --deep: #0e3025;
    --moss: #245641;
    --grass: #52704b;
    --ink: #172921;
    --muted: #4e5c52;
    --gold: #efd18c;
    --ochre: #765421;
    --paper: #faf7ed;
    --sand: #eee8d8;
    --white: #fffdf6;
    --rule: #c5c7ae;
    --space: clamp(48px, 6vw, 95px);
    --gutter: clamp(20px, 5.5vw, 85px);
    --wide: 1290px;
    --body-font: "Fahkwang", "Leelawadee UI", Tahoma, Arial, sans-serif;
    --display: "DM Serif Text", Georgia, "Times New Roman", serif;
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 400 16px/1.75 var(--body-font);
    text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.35; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 3px solid #ab680b; outline-offset: 4px; }
.cover :focus-visible, .closing :focus-visible, .member-copy :focus-visible { outline-color: #ffe8a2; }
.screen-reader-text, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10000; top: 8px; left: 8px; padding: 12px; background: white; }
.frame { width: min(calc(100% - 2 * var(--gutter)), var(--wide)); margin-inline: auto; }
.mast { position: relative; z-index: 2; background: var(--paper); border-top: 4px solid var(--pine); border-bottom: 1px solid var(--rule); }
.mast-inner, .mast-actions, .wordmark, .main-menu ul, .cover-actions, .section-head, .colophon { display: flex; align-items: center; }
.mast-inner { min-height: 71px; justify-content: space-between; gap: 16px; }
.wordmark { flex: none; gap: 9px; color: var(--pine); }
.wordmark .symbol { width: 36px; height: 36px; }
.wordmark span { font: 700 italic clamp(1.55rem,2.2vw,2.25rem)/1 var(--display); letter-spacing: -.065em; }
.main-menu ul, .closing nav ul { margin: 0; padding: 0; list-style: none; }
.main-menu ul { flex-wrap: wrap; gap: 0 clamp(12px,2.25vw,36px); }
.main-menu a, .desk-login { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; }
.mast-actions { flex: none; gap: clamp(12px,1.9vw,25px); }
.main-menu .drawer-login, .nav-toggle { display: none; }
.main-menu a:hover, .desk-login:hover, .text-link:hover, .closing a:hover { text-decoration: underline; text-underline-offset: .25em; }
.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75em;
    min-height: 46px;
    max-width: 100%;
    padding: .62em 1.3em;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: .96rem;
    line-height: 1.5;
    font-weight: 650;
    text-align: center;
}
.action span, .text-link span, .member-link b { font: 400 1.05em/1 Arial,sans-serif; }
.ink-action { color: var(--white); background: var(--pine); }
.ink-action:hover { background: #255b43; }
.gold-action { color: #172a1b; background: var(--gold); }
.gold-action:hover { background: #ffe5a5; }
.outline-action { color: var(--white); background: rgba(14,36,27,.63); border-color: #d4d1b4; }
.outline-action:hover { background: #294735; border-color: white; }
.cover { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--deep); border-bottom: 5px solid #bd9653; }
.cover-art, .cover-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art { z-index: -2; }
.cover-art img { object-fit: cover; object-position: 60% 56%; }
.cover::before {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background: linear-gradient(90deg, rgba(7,31,20,.8), rgba(9,33,22,.58) 40%, rgba(12,34,23,.07) 70%, transparent 85%);
}
.cover-inner { display: grid; align-items: center; min-height: clamp(460px,40.5vw,665px); padding-block: clamp(45px,5.7vw,90px); }
.cover-copy { width: min(55%,47rem); }
.cover-copy h1 { line-height: 1.2; font-weight: 550; font-size: clamp(1.6rem,2.5vw,2.6rem); }
.cover-brand { display: block; margin-left: -.052em; font: 500 clamp(4.25rem,8.1vw,9rem)/.98 var(--display); letter-spacing: -.092em; color: #fff7db; white-space: nowrap; }
.cover-brand i { color: #f4d591; font-weight: 500; letter-spacing: -.085em; }
.cover-subjects { display: block; margin-top: .59em; font-size: clamp(1.38rem,2.26vw,2.25rem); line-height: 1.5; }
.cover-copy p { max-width: 34rem; margin-top: .82em; color: #eff2de; font-size: clamp(1rem,1.22vw,1.15rem); }
.cover-actions { flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.guidebooks, .journal, .member-section, .faq-section { padding-block: var(--space); }
.section-head { justify-content: space-between; gap: 20px; margin-bottom: clamp(19px,2.2vw,32px); padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.section-head h2, .member-copy h2, .faq-section h2 { font-size: clamp(1.7rem,3.2vw,3rem); font-weight: 620; }
.text-link { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; color: var(--pine); font-weight: 600; }
.topic-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px clamp(14px,2.4vw,34px); }
.topic-card { min-width: 0; display: grid; grid-template-columns: minmax(75px,.56fr) minmax(0,1fr); gap: 16px; align-items: center; grid-column: span 4; border-top: 1px solid var(--rule); padding-top: 20px; }
.topic-photo, .read-cover { overflow: hidden; background: #c6c3ab; }
.topic-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.topic-card:hover .topic-photo img { transform: scale(1.025); }
.topic-card:hover h3, .read-body a:hover, .member-link:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.topic-photo { height: 100%; min-height: 112px; }
.topic-label { display: inline-block; color: var(--ochre); font-size: .82rem; font-weight: 700; }
.topic-copy h3 { margin-top: .2em; font-size: clamp(1.11rem,1.46vw,1.45rem); }
.topic-copy p { margin-top: .42em; font-size: .92rem; color: var(--muted); }
.topic-sports, .topic-casino { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; border: 0; padding: 0; }
.topic-sports { grid-column: span 7; }
.topic-casino { grid-column: span 5; }
.topic-sports .topic-photo, .topic-casino .topic-photo { min-height: 0; height: clamp(210px,21vw,330px); }
.topic-sports .topic-copy, .topic-casino .topic-copy { flex: 1; padding: clamp(14px,1.75vw,26px) clamp(16px,2.0vw,32px); }
.topic-sports .topic-copy { background: var(--pine); color: var(--paper); }
.topic-sports .topic-label { color: #f5d795; }
.topic-sports .topic-copy p { color: #e4eddd; }
.topic-casino .topic-copy { background: var(--sand); }
.topic-sports h3, .topic-casino h3 { font-size: clamp(1.4rem,2.25vw,2.3rem); }
.journal { background: var(--sand); border-block: 1px solid var(--rule); }
.journal-grid, .read-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px,2.8vw,40px); }
.read-card { display: grid; grid-template-columns: minmax(0,.68fr) minmax(0,1fr); gap: clamp(12px,1.5vw,22px); min-width: 0; align-items: start; }
.read-cover img { width: 100%; aspect-ratio: 1.36; object-fit: cover; }
.read-meta, .article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: .3em 1em; font-size: .8rem; color: var(--ochre); }
.read-meta span { font-weight: 650; }
.read-body h2, .read-body h3 { margin: .28em 0 .45em; font-size: clamp(1.13rem,1.58vw,1.52rem); }
.read-body p { color: var(--muted); font-size: .92rem; }
.member-section { display: grid; grid-template-columns: minmax(0,.97fr) minmax(0,1.03fr); align-items: stretch; }
.member-photo { background: var(--sand); }
.member-photo img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.member-copy { display: grid; align-content: center; background: var(--pine); color: var(--white); padding: clamp(22px,4.2vw,65px); }
.member-copy h2 { margin-bottom: .6em; }
.member-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #69917a; }
.member-link:last-child { border-bottom: 1px solid #69917a; }
.member-link span, .member-link strong, .member-link small { display: block; }
.member-link small { color: #e2eadc; font-size: .89rem; }
.member-link b { color: var(--gold); }
.faq-section { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.3fr); gap: clamp(30px,7vw,100px); border-top: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; min-height: 58px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { flex: none; content: "+"; font: 400 1.45em/1 var(--display); color: var(--pine); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-bottom: 1em; color: var(--muted); }
.faq a, .prose a:not(.action), .crumb a, .article-byline a { color: var(--pine); text-decoration: underline; text-underline-offset: .2em; }

.inner-head { background: var(--sand); padding-block: clamp(36px,5vw,80px); border-bottom: 1px solid var(--rule); }
.inner-head h1 { max-width: 23em; font-size: clamp(1.95rem,3.85vw,4rem); }
.inner-head p { max-width: 45rem; margin-top: .85em; color: var(--muted); font-size: clamp(1rem,1.4vw,1.2rem); }
.crumb { display: flex; flex-wrap: wrap; gap: .65em; margin-bottom: 19px; font-size: .87rem; color: var(--muted); }
.article-byline { margin-bottom: .7em; }
.reading { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,.86fr); gap: clamp(32px,6vw,92px); align-items: start; padding-block: var(--space); }
.prose { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.02rem,1.2vw,1.13rem); line-height: 1.86; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose li + li { margin-top: .3em; }
.prose h2, .prose h3 { margin: 1.45em 0 .6em; }
.prose h2 { font-size: clamp(1.42rem,2.2vw,2.18rem); }
.prose h3 { font-size: clamp(1.2rem,1.65vw,1.65rem); }
.prose > :first-child { margin-top: 0; }
.prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; margin: 1.15em 0; border-collapse: collapse; }
.prose caption { text-align: start; font-weight: 600; margin-bottom: .45em; }
.prose td, .prose th { border: 1px solid var(--rule); padding: .56em .8em; text-align: start; }
.prose th { background: #ebe8d6; }
.prose blockquote { padding: .65em 1em; border-left: 3px solid var(--pine); background: var(--white); }
.reading-side { border: 1px solid var(--rule); background: var(--white); }
.reading-side img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.reading-side .text-link { padding: 16px 20px; }
.outbound { margin-bottom: 1.6em; border-left: 3px solid var(--pine); padding: clamp(18px,2vw,30px); background: #eee8d5; }
.outbound p { margin: .6em 0 0; color: var(--muted); font-size: .92rem; }
.post-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); }
.archive-body, .missing { padding-block: var(--space); }
.archive-intro { max-width: 48rem; margin-bottom: clamp(25px,4vw,58px); }
.missing p, .missing .action { margin-top: 15px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.pagination .page-numbers { border: 1px solid var(--rule); padding: 5px 10px; }
.pagination .current { color: white; background: var(--pine); }
.closing { background: var(--deep); color: #fbf8e8; padding-top: clamp(45px,5.4vw,84px); }
.closing-grid { display: grid; grid-template-columns: 1.35fr .73fr 1fr; gap: clamp(26px,4.4vw,72px); }
.closing-brand p { max-width: 34ch; margin-top: .9rem; color: #d1ddc9; }
.closing .wordmark span { font-size: clamp(1.95rem,3.6vw,3.6rem); }
.closing nav h2 { margin-bottom: .65em; font-size: 1.06rem; }
.closing nav a { display: inline-block; padding-block: .2em; color: #e8ebd9; font-size: .94rem; }
.colophon { flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-top: 40px; padding-block: 20px; border-top: 1px solid #54715f; color: #c4d4c2; font-size: .83rem; }
.closing .wordmark { color: var(--white); }
.closing .wordmark .symbol { border-radius: 28%; box-shadow: 0 0 0 1px #93a890; }
@media (max-width: 1050px) {
    .cover-copy { width: 62%; }
    .topic-card:not(.topic-sports):not(.topic-casino) { display: block; }
    .topic-card:not(.topic-sports):not(.topic-casino) .topic-photo { height: auto; aspect-ratio: 1.85; min-height: 0; }
    .topic-card:not(.topic-sports):not(.topic-casino) .topic-copy { margin-top: .6rem; }
    .journal-grid .read-card { grid-template-columns: minmax(0,.58fr) minmax(0,1fr); }
}
@media (max-width: 860px) {
    .mast-inner { display: grid; grid-template-columns: auto 1fr; gap: 0 9px; min-height: 62px; }
    .mast-actions { justify-self: end; grid-row: 1; grid-column: 2; gap: 8px; }
    .mast-actions .desk-login { display: none; }
    .main-menu { grid-row: 2; grid-column: 1 / -1; width: 100%; }
    .main-menu .drawer-login { display: inline-flex; }
    .nav-ready .main-menu { display: none; }
    .nav-ready .menu-open .main-menu { display: block; border-top: 1px solid var(--rule); padding-block: 8px; }
    .nav-ready .nav-toggle { display: inline-grid; place-content: center; gap: 5px; width: 44px; height: 43px; color: var(--pine); background: transparent; border: 1px solid #8a9988; border-radius: 3px; }
    .nav-toggle span { width: 17px; height: 2px; background: currentColor; }
    .menu-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .menu-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .journal-grid, .read-grid { gap: 25px 16px; }
    .journal-grid .read-card, .read-grid .read-card { display: block; }
    .read-cover img { aspect-ratio: 1.8; }
    .read-body { padding-top: 12px; }
}
@media (max-width: 680px) {
    :root { --gutter: clamp(16px,4.8vw,30px); --space: 49px; }
    .mast-inner { min-height: 60px; }
    .wordmark { gap: 6px; }
    .wordmark .symbol { width: 29px; height: 29px; }
    .wordmark span { font-size: 1.68rem; }
    .mast .action { min-height: 43px; gap: .4em; padding-inline: .82em; font-size: .86rem; }
    .cover-inner { min-height: clamp(545px,120vw,700px); align-items: end; padding-top: clamp(205px,52vw,335px); padding-bottom: clamp(26px,5.5vw,45px); }
    .cover-art img { object-position: center 38%; }
    .cover::before { background: linear-gradient(180deg,transparent 20%,rgba(14,40,25,.08) 39%,rgba(8,32,22,.63) 64%,rgba(6,29,18,.90) 91%); }
    .cover-copy { width: 100%; max-width: 35rem; }
    .cover-brand { font-size: clamp(3.7rem,14.5vw,6rem); }
    .cover-subjects { margin-top: .55em; font-size: clamp(1.31rem,4.7vw,1.9rem); }
    .cover-copy p { margin-top: .65em; font-size: .97rem; }
    .cover-actions { gap: 8px; margin-top: 1.05rem; }
    .cover-actions .action { min-height: 44px; gap: .42em; padding: .55em .8em; font-size: .91rem; }
    .section-head { align-items: center; margin-bottom: 18px; padding-bottom: 13px; }
    .section-head .text-link { font-size: .87rem; }
    .topic-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .topic-card, .topic-sports, .topic-casino { grid-column: 1; }
    .topic-card:not(.topic-sports):not(.topic-casino) { display: grid; grid-template-columns: minmax(86px,.5fr) minmax(0,1fr); gap: 15px; padding-top: 18px; }
    .topic-card:not(.topic-sports):not(.topic-casino) .topic-copy { margin-top: 0; }
    .topic-card:not(.topic-sports):not(.topic-casino) .topic-photo { height: 100%; min-height: 98px; aspect-ratio: auto; }
    .topic-sports .topic-photo, .topic-casino .topic-photo { height: auto; aspect-ratio: 1.95; }
    .topic-sports h3, .topic-casino h3 { font-size: 1.5rem; }
    .journal-grid, .read-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .journal-grid .read-card, .read-grid .read-card { display: grid; grid-template-columns: minmax(80px,.64fr) minmax(0,1fr); gap: 13px; }
    .read-body { padding: 0; }
    .read-cover img { aspect-ratio: 1.1; }
    .member-section, .faq-section, .reading { grid-template-columns: minmax(0,1fr); }
    .member-photo img { height: auto; min-height: 0; aspect-ratio: 2.25; }
    .member-copy { padding: 22px; }
    .reading, .faq-section { gap: 24px; }
    .closing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
    .closing-brand { grid-column: 1 / -1; }
    .closing-brand p { max-width: none; }
    .closing .wordmark span { font-size: 2.3rem; }
    .colophon { margin-top: 26px; }
}
@media (max-width: 360px) {
    :root { --gutter: 13px; }
    .wordmark .symbol { width: 26px; height: 26px; }
    .wordmark span { font-size: 1.47rem; }
    .mast .action { padding-inline: .58em; font-size: .8rem; }
    .nav-ready .nav-toggle { width: 37px; height: 42px; }
    .cover-actions .action { font-size: .81rem; padding-inline: .65em; }
    .journal-grid .read-card, .read-grid .read-card { grid-template-columns: minmax(74px,.53fr) minmax(0,1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; }
}

