/* NoOffseason TCG — front end. Colors come from the theme's palette with fallbacks. */
:root {
	--nos-navy: var(--wp--preset--color--navy, #0E1E3F);
	--nos-navy-2: var(--wp--preset--color--navy-2, #17305F);
	--nos-gold: var(--wp--preset--color--gold, #F5B70A);
	--nos-ink: var(--wp--preset--color--ink, #0B1220);
	--nos-slate: var(--wp--preset--color--slate, #5B6478);
	--nos-line: var(--wp--preset--color--line, #E3E6EE);
	--nos-paper: var(--wp--preset--color--paper, #F5F6FA);
	--nos-good: var(--wp--preset--color--profit, #12805C);
	--nos-head: var(--wp--preset--font-family--league-spartan, sans-serif);
}

/* Page width: the plugin pages use the wide size. */
.entry-content > .nos-deals, .entry-content > .nos-table-wrap, .entry-content > .nos-filters,
.entry-content > .nos-sets, .entry-content > .nos-card, .entry-content > .nos-tabs,
.wp-block-post-content > .nos-deals, .wp-block-post-content > .nos-table-wrap, .wp-block-post-content > .nos-filters,
.wp-block-post-content > .nos-sets, .wp-block-post-content > .nos-card, .wp-block-post-content > .nos-tabs,
.wp-block-post-content > .nos-gate, .wp-block-post-content > .nos-pager, .wp-block-post-content > .nos-count,
.wp-block-post-content > .nos-note, .wp-block-post-content > .nos-empty, .wp-block-post-content > .nos-cta {
	max-width: var(--wp--style--global--wide-size, 1240px);
}

.nos-hero { padding: clamp(40px, 7vw, 88px) 16px; margin-top: 0 !important; }
.nos-hero > * { margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1240px)) / 2)) !important; margin-right: auto !important; }
.home .wp-block-post-content > .nos-hero:first-child, .home main > .wp-block-group:first-child { margin-top: 0 !important; }
.nos-hero h1 { font-size: clamp(34px, 5vw, 60px); max-width: 15ch; margin: 8px 0 16px; }
.nos-lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; color: inherit; opacity: .92; }
.nos-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }

.nos-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; }
.nos-stats div { display: flex; flex-direction: column; }
.nos-stats strong { font-family: var(--nos-head); font-size: 34px; line-height: 1; color: var(--nos-gold); }
.nos-stats span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-top: 6px; }

.nos-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nos-slate); margin: 0 0 4px; }
.nos-note { font-size: 14px; color: var(--nos-slate); }
.nos-empty { padding: 28px; background: var(--nos-paper); border-radius: 12px; color: var(--nos-slate); }
.nos-count { font-size: 14px; color: var(--nos-slate); margin: 8px 0; }

.nos-btn, .nos-filters button { display: inline-block; background: var(--nos-gold); color: var(--nos-navy) !important; font-family: var(--nos-head); font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; padding: 11px 18px; border-radius: 8px; text-decoration: none !important; border: 0; cursor: pointer; }
.nos-btn:hover, .nos-filters button:hover { background: #FFC93C; }

.nos-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--nos-paper); color: var(--nos-navy-2); white-space: nowrap; }
.nos-pill--good { background: #E3F5EE; color: var(--nos-good); }
.nos-conf { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 4px; margin-left: 4px; }
.nos-conf--high { background: #E3F5EE; color: var(--nos-good); }
.nos-conf--medium { background: #FFF5D6; color: #8A6100; }
.nos-conf--low { background: #FDECEA; color: #B42318; }

/* Home page call to action under the deal cards */
.nos-cta { text-align: center; margin: 8px auto 40px; max-width: var(--wp--style--global--wide-size, 1240px); }
.nos-btn--big { display: block; width: 100%; font-size: 18px; padding: 18px 24px; border-radius: 12px; }
.nos-section-lede { color: var(--nos-slate); margin-top: -8px; }

/* Tabs and filters */
.nos-tabs { display: flex; gap: 8px; margin: 8px 0 20px; flex-wrap: wrap; }
.nos-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--nos-line); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--nos-ink); }
.nos-tabs a.is-on { background: var(--nos-navy); border-color: var(--nos-navy); color: #fff; }
.nos-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px; background: var(--nos-paper); border-radius: 12px; margin: 12px 0; }
.nos-filters label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--nos-slate); gap: 4px; flex: 1 1 180px; }
.nos-filters input, .nos-filters select { font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; padding: 9px 10px; border: 1px solid var(--nos-line); border-radius: 8px; background: #fff; color: var(--nos-ink); min-width: 0; }

/* Deals grid */
.nos-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 12px 0 20px; }
.nos-deal { display: flex; flex-direction: column; border: 1px solid var(--nos-line); border-radius: 14px; overflow: hidden; background: #fff; }
.nos-deal__img { display: block; background: var(--nos-paper); aspect-ratio: 4 / 3; }
.nos-deal__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nos-deal__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nos-deal h3 { font-size: 20px; margin: 0; }
.nos-deal h3 a { text-decoration: none; color: var(--nos-navy); }
.nos-deal h3 small, .nos-card h1 small { font-family: var(--wp--preset--font-family--montserrat, sans-serif); font-size: 13px; font-weight: 600; color: var(--nos-slate); }
.nos-deal__title { font-size: 13px; color: var(--nos-slate); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nos-deal__meta { font-size: 13px; color: var(--nos-slate); margin: 0; }
.nos-deal .nos-btn { margin-top: auto; text-align: center; }

.nos-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.nos-figs div { background: var(--nos-paper); border-radius: 8px; padding: 8px 10px; }
.nos-figs dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--nos-slate); }
.nos-figs dd { margin: 2px 0 0; font-family: var(--nos-head); font-size: 20px; font-weight: 800; color: var(--nos-navy); }
.nos-figs dd.is-good { color: var(--nos-good); }
.nos-figs--wide { grid-template-columns: repeat(4, 1fr); }

/* Rankings table */
.nos-table-wrap { overflow-x: auto; border: 1px solid var(--nos-line); border-radius: 12px; }
.nos-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nos-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--nos-slate); background: var(--nos-paper); padding: 10px 12px; white-space: nowrap; }
.nos-table td { padding: 10px 12px; border-top: 1px solid var(--nos-line); vertical-align: middle; white-space: nowrap; }
.nos-cardcell a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--nos-ink); white-space: normal; min-width: 240px; }
.nos-cardcell img { width: 44px; height: 61px; object-fit: contain; border-radius: 3px; background: var(--nos-paper); }
.nos-cardcell span { display: flex; flex-direction: column; }
.nos-cardcell em { font-style: normal; font-size: 13px; color: var(--nos-slate); }
.nos-pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 20px 0; font-weight: 600; }

/* Sets */
.nos-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.nos-set { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--nos-line); border-radius: 12px; text-decoration: none; color: var(--nos-ink); }
.nos-set:hover { border-color: var(--nos-gold); }
.nos-set img { height: 56px; width: 100%; object-fit: contain; margin-bottom: 8px; }
.nos-set span { font-size: 13px; color: var(--nos-slate); }

/* Card page */
.nos-card { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 36px; margin-top: 12px; }
.nos-card__img img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 12px 30px rgba(14,30,63,.18); }
.nos-card h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 16px; }
.nos-maxbuy { background: var(--nos-navy); color: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.nos-maxbuy > span:first-child { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nos-gold); }
.nos-maxbuy strong { font-family: var(--nos-head); font-size: 52px; line-height: 1.05; margin-right: 10px; }
.nos-maxbuy p { font-size: 14px; opacity: .85; margin: 8px 0 0; }
.nos-pop { margin-top: 18px; }
.nos-pop h3 { font-size: 18px; }
.nos-bar { display: grid; grid-template-columns: 130px 1fr 56px; gap: 10px; align-items: center; font-size: 14px; margin: 6px 0; }
.nos-bar i { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--nos-gold) var(--w), var(--nos-paper) var(--w)); }
.nos-bar b { text-align: right; }

/* Member gate */
.is-blurred { filter: blur(5px); pointer-events: none; user-select: none; max-height: 420px; overflow: hidden; }
.nos-gate { position: relative; margin: -120px auto 24px; max-width: 520px; text-align: center; background: #fff; border: 1px solid var(--nos-line); border-radius: 16px; padding: 28px; box-shadow: 0 18px 40px rgba(14,30,63,.16); }
.nos-gate h3 { margin-top: 0; }
.nos-card .nos-gate { margin: 12px 0; }

.nos-steps li { margin-bottom: 10px; }

@media (max-width: 760px) {
	.nos-card { grid-template-columns: 1fr; }
	.nos-card__img { max-width: 280px; }
	.nos-figs--wide { grid-template-columns: repeat(2, 1fr); }
	.nos-maxbuy strong { font-size: 40px; }
	.nos-table thead { display: none; }
	.nos-table, .nos-table tbody, .nos-table tr, .nos-table td { display: block; width: 100%; }
	.nos-table tr { border-top: 1px solid var(--nos-line); padding: 8px 4px; }
	.nos-table td { border: 0; padding: 4px 8px; white-space: normal; }
	.nos-table td[data-label]::before { content: attr(data-label) ": "; font-size: 12px; font-weight: 700; color: var(--nos-slate); text-transform: uppercase; }
	.nos-bar { grid-template-columns: 110px 1fr 48px; }
}
