:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4eaf2;
  --page: #f6f8fb;
  --white: #ffffff;
  --blue: #e11b22;
  --blue-dark: #bf141b;
  --blue-pale: #fff0f0;
  --font: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.site-header { width: min(100% - 48px, 1120px); height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 21px; font-weight: 800; letter-spacing: -1.45px; }
.logo span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { padding: 8px 0; color: #596579; font-size: 11px; font-weight: 600; transition: color .15s ease; }
.nav a:hover, .nav a.active { color: var(--blue); }
.header-cta { min-height: 40px; display: inline-flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; transition: background .15s ease; }
.header-cta:hover, .button-blue:hover { background: var(--blue-dark); }
.header-cta span { font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle { width: 32px; height: 32px; display: inline-grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease; }
.theme-toggle:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.page-wrap { width: min(100% - 48px, 1120px); margin: 0 auto; }
.home-page { padding-top: 22px; }
.hero { min-height: 400px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 38px 5%; border: 1px solid #e6edf6; border-radius: 24px; background: var(--white); }
.hero-content { position: relative; z-index: 1; flex: 0 0 47%; }
.hero-image { display: block; width: 51%; height: auto; object-fit: contain; }
.eyebrow { margin: 0 0 15px; color: #58667a; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.blue-dot { display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--blue); }
.hero h1 { margin: 0; font-size: clamp(53px, 7.1vw, 76px); line-height: 1.03; letter-spacing: -.07em; font-weight: 800; }
.hero h1 span { color: var(--blue); }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 27px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 23px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-blue { background: var(--blue); color: var(--white); }
.button-blue span { color: #ffd8d8; font-size: 13px; }
.button-white { border-color: #d9e1ec; background: var(--white); color: #293548; }
.button-white:hover { border-color: #efc5c8; background: #fffafa; }
.home-section { padding: 67px 0 83px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.05em; }
.section-index { color: #98a2b3; font-size: 9px; font-weight: 700; }
.destination-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.destination-card { position: relative; min-height: 155px; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 2px 5px rgba(16,24,40,.02); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.destination-card:hover { transform: translateY(-2px); border-color: #c6d8fa; box-shadow: 0 9px 24px rgba(16,24,40,.06); }
.destination-icon { position: absolute; top: 18px; right: 18px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font-size: 13px; }
.card-label { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.destination-title { max-width: 350px; margin-top: 20px; font-size: 16px; font-weight: 800; letter-spacing: -.035em; }
.site-footer { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e3e9f1; }
.site-footer .logo { font-size: 15px; }
.site-footer > span { color: #7c8798; font-size: 9px; }

.inner-page { padding-top: 56px; }
.page-intro { padding: 10px 0 29px; }
.page-intro .eyebrow { margin-bottom: 10px; }
.page-intro h1 { margin: 0; font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.065em; }
.article-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; padding-bottom: 78px; }
.article-card { min-height: 225px; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 2px 5px rgba(16,24,40,.02); }
.article-card-top, .tool-card-top { display: flex; align-items: center; justify-content: space-between; color: #7a8798; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.article-card-top span:first-child { padding: 6px 8px; border-radius: 999px; background: var(--blue-pale); color: var(--blue); }
.article-card h2 { margin: 22px 0 8px; font-size: 17px; font-weight: 800; line-height: 1.35; letter-spacing: -.04em; }
.article-card details { margin-top: auto; padding-top: 16px; }
.article-card summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--blue); font-size: 10px; font-weight: 800; list-style: none; }
.article-card summary::-webkit-details-marker { display: none; }
.article-card summary span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-pale); font-size: 13px; font-weight: 500; }
.article-body { padding: 11px 0 2px; color: #5f6b7c; font-size: 10px; line-height: 1.75; }
.article-body p { margin: 0; }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 14px; padding-bottom: 78px; }
.tool-card { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 2px 5px rgba(16,24,40,.02); }
.tool-card-top { margin-bottom: 21px; }
.tool-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font-size: 12px; letter-spacing: 0; }
.tool-card h2 { margin: 0 0 7px; font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.field-grid, .field-stack { display: grid; gap: 12px; }
.field-grid { grid-template-columns: 1fr 1fr; }
.field-stack { grid-template-columns: 1fr; }
.field-grid label, .field-stack label { display: flex; flex-direction: column; gap: 7px; color: #586579; font-size: 9px; font-weight: 700; }
.field-grid input, .field-grid select, .field-stack input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfcfe; color: var(--ink); font-size: 10px; }
.field-grid input::placeholder, .field-stack input::placeholder { color: #a4adba; }
.field-grid select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23667589' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; padding-right: 25px; }
.tool-card .button { margin-top: 14px; }
.tool-action-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-action-row .button { flex: 0 0 auto; }
.save-status { color: #667085; font-size: 9px; }
.tool-result { margin-top: 15px; padding: 12px; border-radius: 11px; background: #f5f8fe; }
.result-heading { display: flex; justify-content: space-between; margin-bottom: 8px; color: #53627a; font-size: 8px; font-weight: 800; letter-spacing: .05em; }
.routine-item { display: grid; grid-template-columns: 42px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid #e2e8f0; }
.routine-time { color: var(--blue); font-size: 8px; font-weight: 700; }
.routine-item strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 9px; font-weight: 800; }
.routine-item span:last-child { color: #5f6b7c; font-size: 9px; line-height: 1.5; }
.review-list { margin-top: 12px; }
.saved-review { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #e7edf5; color: #566274; font-size: 9px; line-height: 1.55; }
.saved-review strong { display: block; color: var(--ink); font-weight: 800; }
.saved-review time { flex: 0 0 auto; color: #8b96a6; font-size: 8px; }
.published-section { padding: 0 0 70px; }
.editor-page { padding-top: 46px; }
.editor-heading { margin-bottom: 22px; }
.editor-heading h1 { margin: 0; font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -.065em; }
.editor-heading > p:last-child { max-width: 520px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.editor-card { max-width: 760px; display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 2px 8px rgba(16,24,40,.025); }
.editor-grid { grid-template-columns: 1fr 220px; }
.editor-field { display: flex; flex-direction: column; gap: 7px; color: #586579; font-size: 10px; font-weight: 700; }
.editor-field input, .editor-field select, .editor-field textarea { width: 100%; padding: 10px 11px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfcfe; color: var(--ink); font-family: var(--font); font-size: 11px; font-weight: 500; }
.editor-field input, .editor-field select { height: 39px; }
.editor-field textarea { min-height: 220px; resize: vertical; line-height: 1.65; }
.editor-field input::placeholder, .editor-field textarea::placeholder { color: #a4adba; }
.editor-submit-row { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.editor-submit-row .button { margin: 0; }
.editor-submit-row button:disabled { cursor: wait; opacity: .65; }
.editor-status { color: #59677b; font-size: 10px; line-height: 1.5; }

@media (max-width: 850px) {
  .site-header, .page-wrap { width: min(100% - 40px, 700px); }
  .article-cards, .tools-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 360px; padding-inline: 5%; }
  .editor-grid { grid-template-columns: 1fr 200px; }
}
@media (max-width: 600px) {
  .site-header, .page-wrap { width: min(100% - 32px, 460px); }
  .site-header { height: 62px; }
  .nav { gap: 15px; }
  .nav a { font-size: 10px; }
  .header-cta { width: 34px; height: 34px; min-height: 34px; justify-content: center; padding: 0; overflow: hidden; font-size: 0; }
  .header-cta span { font-size: 14px; }
  .home-page { padding-top: 14px; }
  .hero { min-height: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 43px 25px 18px; border-radius: 18px; }
  .hero h1 { font-size: clamp(48px, 13vw, 64px); }
  .hero-content { flex: none; }
  .hero-image { width: 100%; max-width: 420px; align-self: center; margin-top: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; margin-top: 22px; }
  .home-section { padding: 48px 0 60px; }
  .section-heading h2 { font-size: 19px; }
  .destination-grid, .article-cards, .tools-grid { grid-template-columns: 1fr; gap: 10px; }
  .destination-card { min-height: 140px; border-radius: 13px; }
  .inner-page { padding-top: 37px; }
  .page-intro h1 { font-size: 38px; }
  .article-card { min-height: 205px; border-radius: 13px; }
  .tool-card { border-radius: 13px; }
  .editor-page { padding-top: 37px; }
  .editor-card { padding: 17px; }
  .editor-grid { grid-template-columns: 1fr; }
  .site-footer { min-height: 72px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding: 13px 0; }
  .site-footer > span { max-width: 280px; line-height: 1.5; }
}

/* Simple, site-wide dark theme */
body.theme-dark { --ink: #eef2f7; --muted: #a5afbf; --line: #303948; --page: #11151c; --white: #1b222d; --blue-pale: #382326; color-scheme: dark; }
body.theme-dark .nav a, body.theme-dark .eyebrow { color: #a5afbf; }
body.theme-dark .hero, body.theme-dark .destination-card, body.theme-dark .post-card, body.theme-dark .tool-card,
body.theme-dark .bracket-setup, body.theme-dark .bracket-result-section, body.theme-dark .tier-panel,
body.theme-dark .editor-card, body.theme-dark .post-content, body.theme-dark .post-list-card { background-color: var(--white); border-color: var(--line); }
body.theme-dark .button-white, body.theme-dark .theme-toggle { background: #242d39; border-color: #3a4554; color: var(--ink); }
body.theme-dark input, body.theme-dark textarea, body.theme-dark select { background: #151b24; border-color: #394454; color: var(--ink); color-scheme: dark; }
body.theme-dark .bracket-progress, body.theme-dark .bracket-result-actions .text-button { background: #202834; border-color: var(--line); color: var(--ink); }
body.theme-dark .bracket-workspace .bracket-match { background: #252e3a; border-color: #394454; }
body.theme-dark .bracket-workspace .bracket-player-entry, body.theme-dark .bracket-workspace .bracket-player { background: #1b222d; border-color: #394454; color: var(--ink); }

/* Refined dark palette: black canvas, quiet surfaces, clear contrast */
body.theme-dark { --ink: #f5f5f5; --muted: #a1a1aa; --line: #252525; --page: #000; --white: #0b0b0b; --blue-pale: #241012; background: #000; }
body.theme-dark .site-header, body.theme-dark .page-wrap, body.theme-dark main { color: #f5f5f5; }
body.theme-dark .hero, body.theme-dark .destination-card, body.theme-dark .article-card, body.theme-dark .tool-card,
body.theme-dark .editor-card, body.theme-dark .bracket-workspace .bracket-setup,
body.theme-dark .tool-link-card, body.theme-dark .nav-dropdown,
body.theme-dark .bracket-workspace .bracket-result-section, body.theme-dark .tier-toolbar,
body.theme-dark .tier-row, body.theme-dark .tier-pool, body.theme-dark .post-card,
body.theme-dark .post-content, body.theme-dark .post-list-card { background: #0b0b0b; border-color: #242424; box-shadow: none; }
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3, body.theme-dark h4,
body.theme-dark .destination-title, body.theme-dark .article-title, body.theme-dark .tool-title,
body.theme-dark .nav a, body.theme-dark .logo, body.theme-dark p, body.theme-dark label { color: #f0f0f0; }
body.theme-dark .nav a:hover, body.theme-dark .nav a.active, body.theme-dark .logo span { color: var(--blue); }
body.theme-dark .muted, body.theme-dark .article-meta, body.theme-dark .site-footer,
body.theme-dark .bracket-workspace p, body.theme-dark .tier-help { color: #a1a1aa; }
body.theme-dark .button-white { color: #f5f5f5; background: #111; border-color: #303030; }
body.theme-dark .theme-toggle { color: #999; }
body.theme-dark .theme-toggle:hover { color: #fff; background: #171717; }
body.theme-dark input, body.theme-dark textarea, body.theme-dark select,
body.theme-dark .bracket-progress, body.theme-dark .bracket-result-actions .text-button,
body.theme-dark .bracket-workspace #bracket-size, body.theme-dark .bracket-workspace .bracket-player-entry,
body.theme-dark .tier-toolbar select, body.theme-dark .tier-toolbar input,
body.theme-dark .tier-add-row > input { color: #f5f5f5; background: #111; border-color: #303030; }
body.theme-dark .tier-chip, body.theme-dark .tier-item-button { color: #e5e5e5; background: #151515; }
body.theme-dark .tier-chip:hover, body.theme-dark .tier-item-button:hover { background: #202020; }
body.theme-dark .tier-item-image, body.theme-dark .tier-chip-image { background: #171717; }
body.theme-dark .tier-s > strong { background: #5a171c; color: #fff; }
body.theme-dark .tier-a > strong { background: #45191d; color: #fff; }
body.theme-dark .tier-b > strong { background: #352023; color: #f5e8e9; }
body.theme-dark .tier-c > strong { background: #252222; color: #eee; }
body.theme-dark .tier-d > strong { background: #222; color: #ddd; }
body.theme-dark .bracket-workspace .bracket-match { background: #171717; border-color: #292929; box-shadow: none; }
body.theme-dark .bracket-workspace .bracket-player { color: #eee; background: #0b0b0b; }
body.theme-dark .bracket-workspace .bracket-player.is-winner,
body.theme-dark .bracket-workspace .bracket-entry-row.is-winner .bracket-player-entry { color: #fff; background: #241012; border-color: #632126; }
body.theme-dark .bracket-workspace .bracket-round h3 { color: #aaa; border-color: #292929; }
body.theme-dark .bracket-workspace .bracket-progress-track { background: #292929; }
body.theme-dark .bracket-workspace .bracket-champion { background: #0b0b0b; border-color: #572126; }
body.theme-dark .site-footer { border-color: #242424; }
body.theme-dark .nav-dropdown { box-shadow: 0 12px 30px rgb(0 0 0 / 65%); }
body.theme-dark .bracket-workspace .bracket-entry-row { background: #0b0b0b; }
body.theme-dark .bracket-workspace .bracket-bye { background: #171313; border-color: #342326; }
body.theme-dark .bracket-workspace .bracket-advance-pick { background: #111; border-color: #555; }
body.theme-dark .bracket-workspace .bracket-advance-pick[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
body.theme-dark .tier-row.tier-drop-target { background: #14090a; }
body.theme-dark .tier-pool.tier-drop-target { background: #121212; }

/* Blog and codes pages */
.blog-page { padding-top: 48px; }
.blog-heading { padding: 6px 0 30px; }
.blog-heading .eyebrow, .codes-heading .eyebrow { margin-bottom: 14px; }
.blog-heading h1 { margin: 0; font-size: clamp(42px, 6vw, 66px); line-height: 1.03; letter-spacing: -.075em; }
.blog-heading h1 span { color: var(--blue); }
.blog-heading > p:last-child, .codes-heading > p:last-child { max-width: 560px; margin: 15px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.blog-featured { position: relative; min-height: 310px; display: flex; overflow: hidden; padding: 24px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.blog-featured-label { position: relative; z-index: 1; display: flex; justify-content: space-between; align-self: flex-start; width: 100%; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.blog-featured-label span:first-child { color: var(--blue); }
.blog-featured-content { position: absolute; z-index: 1; left: 30px; bottom: 27px; width: min(62%, 610px); }
.blog-kicker { margin: 0 0 9px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.blog-featured-content h2 { max-width: 570px; margin: 0; font-size: clamp(28px, 4vw, 43px); line-height: 1.08; letter-spacing: -.065em; }
.blog-lead { max-width: 500px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.blog-read { margin-top: 18px; }
.blog-read summary { width: max-content; display: flex; align-items: center; gap: 12px; color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.blog-read summary::-webkit-details-marker { display: none; }
.blog-read summary span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.blog-read .article-body { max-width: 580px; padding-top: 12px; font-size: 12px; }
.blog-featured-mark { position: absolute; top: 40px; right: 7%; width: 230px; height: 220px; display: grid; place-items: center; }
.blog-featured-mark span { position: relative; z-index: 1; color: var(--blue); font-size: 176px; line-height: .8; font-weight: 800; letter-spacing: -.14em; }
.blog-featured-mark i { position: absolute; width: 150px; height: 150px; border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent); border-radius: 50%; }
.blog-featured-mark i:nth-child(2) { width: 190px; height: 190px; }
.blog-featured-mark i:nth-child(3) { width: 230px; height: 230px; }
.blog-latest { padding: 46px 0 8px; }
.blog-section-heading, .codes-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.blog-section-heading .eyebrow, .codes-section-heading .eyebrow { margin: 0 0 7px; color: var(--blue); }
.blog-section-heading h2, .codes-section-heading h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.055em; }
.blog-section-heading > span, .codes-section-heading > span { padding-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding-bottom: 30px; }
.blog-card { min-height: 220px; padding: 20px; }
.blog-card h2 { margin: 18px 0 0; font-size: 20px; }
.blog-card-intro { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.blog-card details { padding-top: 14px; }
.blog-card .article-body { font-size: 11px; }
.blog-community { padding-top: 24px; }
.codes-page { padding-top: 56px; }
.codes-heading { padding: 8px 0 34px; }
.codes-heading h1 { margin: 0; font-size: clamp(40px, 5vw, 54px); line-height: 1.05; letter-spacing: -.07em; }
.codes-section { min-height: 260px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.codes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.codes-empty { grid-column: 1 / -1; display: grid; justify-items: center; padding: 32px 12px 38px; text-align: center; }
.codes-empty > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font-size: 20px; }
.codes-empty h3 { margin: 13px 0 0; font-size: 15px; letter-spacing: -.03em; }
.codes-empty p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.code-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--page); }
.code-status { display: inline-block; padding: 5px 8px; border-radius: 99px; background: var(--blue-pale); color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.code-card h3 { margin: 10px 0 4px; font-size: 18px; letter-spacing: .03em; }
.code-card p { margin: 0; color: var(--muted); font-size: 11px; }
.code-expiry { color: var(--muted); font-size: 10px; text-align: right; }
body.theme-dark .blog-featured, body.theme-dark .blog-card, body.theme-dark .codes-section { background: #0b0b0b; border-color: #242424; box-shadow: none; }
body.theme-dark .blog-featured-mark i { border-color: rgb(225 27 34 / 24%); }
body.theme-dark .code-card { background: #111; border-color: #292929; }
@media (max-width: 700px) {
  .blog-page { padding-top: 32px; }
  .blog-featured { min-height: 300px; padding: 19px; }
  .blog-featured-content { left: 19px; bottom: 22px; width: 74%; }
  .blog-featured-mark { top: 42px; right: -47px; transform: scale(.75); transform-origin: top left; opacity: .72; }
  .blog-grid { grid-template-columns: 1fr; }
  .codes-page { padding-top: 35px; }
}
@media (max-width: 460px) {
  .blog-heading h1 { font-size: 42px; }
  .blog-featured { min-height: 340px; }
  .blog-featured-content { width: calc(100% - 38px); }
  .blog-featured-mark { top: 48px; right: -74px; opacity: .32; }
  .blog-section-heading > span, .codes-section-heading > span { display: none; }
  .codes-section { padding: 17px; }
  .codes-grid { grid-template-columns: 1fr; }
  .code-card { align-items: flex-start; flex-direction: column; }
  .code-expiry { text-align: left; }
}

/* Editorial layout inspired by magazine-style gaming homepages and clean story feeds. */
.blog-page { max-width: 1040px; padding-top: 40px; }
.blog-heading { padding: 5px 0 24px; }
.blog-heading h1 { font-size: clamp(38px, 5vw, 54px); letter-spacing: -.07em; }
.blog-heading h1 span { color: var(--blue); }
.blog-heading > p:last-child { margin-top: 9px; font-size: 13px; }
.blog-featured { min-height: 345px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; padding: 0; border-radius: 16px; }
.blog-featured-visual { min-height: 345px; overflow: hidden; display: grid; place-items: center; background: var(--page); }
.blog-featured-visual img { width: 100%; height: 100%; max-height: 345px; object-fit: contain; }
.blog-featured-content { position: static; width: auto; align-self: center; padding: 30px 32px; }
.blog-featured-label { margin-bottom: 38px; font-size: 8px; }
.blog-featured-content h2 { font-size: clamp(27px, 3.2vw, 38px); }
.blog-lead { font-size: 12px; }
.blog-read { margin-top: 16px; }
.blog-section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.blog-section-heading h2 { font-size: 21px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: start; gap: 38px; }
.blog-feed { display: grid; }
.blog-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 28px; align-items: start; gap: 13px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.blog-row-number { padding-top: 1px; color: #9aa1ad; font-size: 10px; font-weight: 700; }
.blog-row-meta { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.blog-row-meta span:first-child { color: var(--blue); }
.blog-row h3 { margin: 8px 0 5px; font-size: 18px; line-height: 1.3; letter-spacing: -.045em; }
.blog-row-copy > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.blog-row details { margin-top: 11px; }
.blog-row summary { display: flex; align-items: center; gap: 8px; width: max-content; color: var(--ink); font-size: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.blog-row summary::-webkit-details-marker { display: none; }
.blog-row summary span { color: var(--blue); font-size: 13px; }
.blog-row-arrow { color: var(--blue); font-size: 16px; text-align: right; }
.blog-sidebar { position: sticky; top: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.blog-sidebar > .eyebrow { margin-bottom: 9px; color: var(--muted); font-size: 8px; }
.blog-sidebar > a { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 10px; font-weight: 650; }
.blog-sidebar > a span { color: var(--muted); font-size: 9px; }
.blog-sidebar-note { display: flex; gap: 7px; margin-top: 10px; padding: 10px; border-radius: 8px; background: var(--blue-pale); }
.blog-sidebar-note .blue-dot { flex: 0 0 7px; margin-top: 4px; }
.blog-sidebar-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.blog-community { padding-top: 28px; }
body.theme-dark .blog-sidebar { background: #0b0b0b; border-color: #242424; }
body.theme-dark .blog-featured-content { background: #0b0b0b; }
body.theme-dark .blog-featured-visual { background: #080808; }
@media (max-width: 700px) {
  .blog-page { padding-top: 29px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-visual { min-height: 215px; max-height: 215px; }
  .blog-featured-visual img { max-height: 215px; }
  .blog-featured-content { padding: 22px; }
  .blog-featured-label { margin-bottom: 25px; }
  .blog-layout { grid-template-columns: 1fr; gap: 20px; }
  .blog-sidebar { position: static; }
}
@media (max-width: 460px) {
  .blog-heading h1 { font-size: 38px; }
  .blog-row { grid-template-columns: 25px minmax(0, 1fr) 20px; gap: 8px; }
  .blog-row h3 { font-size: 16px; }
}

/* Keep the blog focused on its stories. */
.blog-page { max-width: 1060px; padding-top: 45px; }
.blog-heading { padding-bottom: 25px; }
.blog-heading h1 { font-size: clamp(36px, 4.5vw, 48px); }
.blog-heading > p:last-child { margin-top: 8px; }
.blog-featured { grid-template-columns: 43% 57%; min-height: 300px; border-radius: 14px; }
.blog-featured { display: block; min-height: 0; padding: 0; }
.blog-featured-content { max-width: 780px; padding: 27px 30px; }
.blog-featured-label { margin-bottom: 18px; }
.blog-featured-content h2 { font-size: clamp(25px, 3vw, 34px); }
.blog-layout { grid-template-columns: 1fr; }
.blog-section-heading { margin-bottom: 0; }
.blog-row { grid-template-columns: 32px minmax(0, 1fr) 22px; padding: 20px 2px; }
.blog-row h3 { font-size: 19px; }
.blog-community .article-cards { grid-template-columns: 1fr; }
.blog-community .article-card { min-height: 0; border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
body.theme-dark .blog-community .article-card { background: transparent; border-color: #242424; }
@media (max-width: 700px) {
  .blog-page { padding-top: 30px; }
  .blog-featured-content { padding: 20px; }
  .blog-featured-label { margin-bottom: 17px; }
}

/* Full article reading layout */
.article-page { max-width: 900px; padding-top: 35px; }
.article-back { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 650; }
.article-back:hover { color: var(--blue); }
.article-back span { font-size: 16px; }
.full-article { max-width: 720px; margin: 48px auto 60px; }
.full-article-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.full-article-meta { margin: 0 0 14px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.full-article-header h1 { margin: 0; font-size: clamp(36px, 6vw, 58px); line-height: 1.06; letter-spacing: -.065em; }
.full-article-intro { margin: 17px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.full-article-body { padding-top: 12px; }
.full-article-body section { margin-top: 28px; }
.full-article-body h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; letter-spacing: -.04em; }
.full-article-body p { margin: 0 0 14px; color: #525d6d; font-size: 15px; line-height: 1.85; }
.article-next { max-width: 720px; display: flex; flex-direction: column; gap: 8px; margin: 0 auto 55px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-next > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.article-next a { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 750; }
.article-next b { color: var(--blue); font-weight: 500; }
.blog-featured-content h2 a, .blog-row h3 a, .blog-community .article-card h2 a { color: inherit; }
.blog-featured-content h2 a:hover, .blog-row h3 a:hover, .blog-community .article-card h2 a:hover { color: var(--blue); }
.blog-read-link, .blog-row-link { width: max-content; display: inline-flex; align-items: center; gap: 9px; margin-top: 15px; color: var(--blue); font-size: 11px; font-weight: 750; }
.blog-row-link { margin-top: 10px; font-size: 10px; }
body.theme-dark .full-article-body p { color: #c3c3c3; }
@media (max-width: 600px) {
  .article-page { padding-top: 25px; }
  .full-article { margin: 34px auto 44px; }
  .full-article-intro { font-size: 15px; }
  .full-article-body p { font-size: 14px; }
}
@media (max-width: 380px) {
  .site-header, .page-wrap { width: min(100% - 24px, 350px); }
  .nav { gap: 9px; }
  .nav a { font-size: 9px; }
  .header-cta { display: none; }
  .hero { padding-inline: 20px; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Bracket and tier-list tools */
.tool-wide { grid-column: 1 / -1; }
.tool-description { margin: 0 0 16px; max-width: 650px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.tool-label, .tier-controls label { display: flex; flex-direction: column; gap: 7px; color: #586579; font-size: 10px; font-weight: 700; }
.tool-textarea { display: block; width: 100%; min-height: 100px; margin-top: 7px; padding: 12px; resize: vertical; border: 1px solid #e2e8f0; border-radius: 12px; background: #fbfcfe; color: var(--ink); font: 500 12px/1.6 var(--font); }
.tool-textarea::placeholder { color: #a4adba; }
.bracket-controls { margin-top: 13px; }
.check-label { display: inline-flex; align-items: center; gap: 7px; color: #586579; font-size: 10px; font-weight: 600; }
.check-label input { accent-color: var(--blue); }
.button-dark, .button-white { border-color: #e2e8f0; background: #101828; color: white; }
.button-white { background: white; color: #293548; }
.bracket-board { display: flex; gap: 12px; overflow-x: auto; margin-top: 21px; padding: 2px 2px 10px; }
.bracket-round { min-width: 170px; flex: 1 0 170px; }
.bracket-round h3 { margin: 0 0 10px; color: #788497; font-size: 10px; font-weight: 700; }
.bracket-match { display: grid; gap: 1px; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.bracket-player { width: 100%; min-height: 35px; padding: 8px 10px; border: 0; background: white; color: #4a5668; text-align: left; font-size: 10px; cursor: pointer; }
.bracket-player:not(:disabled):hover { background: #fff7f7; color: var(--blue); }
.bracket-player.is-winner { color: var(--blue-dark); font-weight: 800; }
.bracket-player:disabled { color: #a0a8b4; cursor: default; }
.bracket-champion { align-self: flex-end; margin: 0 0 10px; padding: 10px 14px; border: 1px solid #f2c5c7; border-radius: 999px; background: var(--blue-pale); color: var(--blue-dark); font-size: 11px; font-weight: 800; white-space: nowrap; }
.tier-controls { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 11px; margin-top: 18px; }
.tier-controls select, .tier-controls input, .tier-add-row > input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fbfcfe; color: var(--ink); font-size: 11px; }
.tier-add-row { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.tier-add-row > input { max-width: 300px; }
.tier-add-row .button { margin: 0; }
.tier-builder { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.5fr); gap: 16px; margin-top: 21px; }
.tier-pool-wrap { min-width: 0; }
.tier-pool-heading { display: flex; justify-content: space-between; margin-bottom: 8px; color: #566274; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.tier-pool-heading span { color: #98a2b3; font-weight: 500; letter-spacing: 0; }
.tier-pool { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.tier-item-button, .tier-chip { min-height: 29px; padding: 6px 10px; border: 1px solid #e4eaf2; border-radius: 999px; background: white; color: #485568; font-size: 9px; cursor: pointer; }
.tier-item-button:hover, .tier-chip:hover { border-color: #efb9bc; color: var(--blue-dark); }
.tier-empty { align-self: center; color: #98a2b3; font-size: 10px; }
.tier-list { display: grid; gap: 6px; align-content: start; }
.tier-row { min-height: 56px; display: grid; grid-template-columns: 48px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.tier-row > strong { display: grid; place-items: center; color: #3b4554; font-size: 15px; }
.tier-s > strong { background: #f6d8da; }
.tier-a > strong { background: #f9e3e4; }
.tier-b > strong { background: #f3e7e8; }
.tier-c > strong { background: #f4eeee; }
.tier-d > strong { background: #e9edf2; }
.tier-row-items { display: flex; align-items: center; align-content: center; flex-wrap: wrap; gap: 5px; padding: 7px; }
.tier-chip { min-height: 26px; font-size: 8px; }
.tier-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; color: #8b96a6; font-size: 9px; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--blue-dark); font: 700 9px var(--font); cursor: pointer; }
@media (max-width: 850px) {
  .tier-builder { grid-template-columns: 1fr; }
  .tier-pool { max-height: 190px; }
}
@media (max-width: 600px) {
  .tool-wide { grid-column: auto; }
  .tier-controls { grid-template-columns: 1fr 1fr; }
  .tier-search-label { grid-column: 1 / -1; }
  .tier-add-row { align-items: stretch; flex-wrap: wrap; }
  .tier-add-row > input { max-width: none; flex: 1 1 100%; }
  .bracket-controls .button { min-height: 40px; padding-inline: 14px; }
  .bracket-champion { align-self: flex-start; }
}

/* Tools navigation and tool selection pages */
.nav-menu { position: relative; padding: 10px 0; }
.nav-menu > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { display: inline-block; color: #98a2b3; font-size: 9px; transition: transform .15s ease; }
.nav-dropdown { position: absolute; z-index: 10; top: calc(100% + 2px); left: -14px; min-width: 155px; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 30px rgba(16,24,40,.1); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease, visibility .14s ease; }
.nav-menu:hover .nav-dropdown, .nav-menu:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu:hover .nav-caret, .nav-menu:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown a { display: block; padding: 9px 10px; border-radius: 7px; color: #596579; font-size: 10px; font-weight: 600; }
.nav-dropdown a:hover, .nav-dropdown a.current-tool { background: var(--blue-pale); color: var(--blue-dark); }
.tools-intro-copy { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.tool-links { max-width: 760px; display: grid; gap: 10px; padding-bottom: 78px; }
.tool-link-card { min-height: 84px; display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 13px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 15px; background: white; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.tool-link-card:hover { transform: translateY(-1px); border-color: #efb9bc; box-shadow: 0 8px 24px rgba(16,24,40,.05); }
.tool-link-number { color: var(--blue); font-size: 11px; font-weight: 800; }
.tool-link-card strong, .tool-link-card small { display: block; }
.tool-link-card strong { font-size: 14px; letter-spacing: -.03em; }
.tool-link-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.tool-link-arrow { color: #8b96a6; font-size: 17px; }
.standalone-tool { max-width: 900px; margin-bottom: 70px; padding: 22px; }
.tool-label span { color: #98a2b3; font-size: 9px; font-weight: 500; }
.standalone-tool .tool-textarea { min-height: 150px; }
.standalone-tool .tier-builder { grid-template-columns: minmax(220px, .75fr) minmax(0, 1.5fr); }
@media (max-width: 600px) {
  .nav-menu { padding: 8px 0; }
  .nav-dropdown { left: auto; right: -30px; }
  .standalone-tool { padding: 16px; }
  .standalone-tool .tier-builder { grid-template-columns: 1fr; }
}
.nav-caret { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); font-size: 0; }
.nav-menu:hover .nav-caret, .nav-menu:focus-within .nav-caret { transform: translateY(1px) rotate(225deg); }

/* Refined standalone tool layouts */
.bracket-setup, .bracket-result-section, .tier-workspace { max-width: 1000px; }
.bracket-setup { padding: 20px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bracket-setup-heading, .bracket-result-heading, .tier-list-heading, .tier-library-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.bracket-setup-heading h2, .bracket-result-heading h2, .tier-list-heading h2, .tier-library-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.035em; }
.bracket-setup-heading p, .bracket-result-heading p, .tier-list-heading p, .tier-library-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
#player-count, #tier-count { color: #929baa; font-size: 10px; font-variant-numeric: tabular-nums; }
#bracket-participants { display: block; width: 100%; min-height: 112px; margin-top: 14px; padding: 12px 14px; resize: vertical; border: 1px solid #e2e8f0; border-radius: 12px; background: white; color: var(--ink); font: 500 12px/1.7 var(--font); }
#bracket-participants::placeholder { color: #a4adba; }
.bracket-setup-actions { display: flex; align-items: center; gap: 15px; margin-top: 12px; }
.bracket-buttons { display: flex; gap: 8px; margin-left: auto; }
.bracket-buttons .button { min-height: 40px; padding-inline: 17px; font-size: 11px; }
.bracket-result-section { padding: 28px 0 70px; }
.bracket-result-heading { margin-bottom: 15px; }
.bracket-board { min-height: 100px; display: flex; align-items: stretch; gap: 13px; overflow-x: auto; padding: 4px 2px 14px; }
.bracket-round { min-width: 190px; flex: 1 0 190px; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.bracket-round h3 { margin: 0 0 3px; color: #8b96a6; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bracket-match { min-height: 74px; display: grid; align-content: center; gap: 1px; overflow: hidden; border: 1px solid #e6eaf0; border-radius: 11px; background: #e6eaf0; }
.bracket-player { min-height: 34px; padding: 7px 10px; border: 0; background: white; color: #475467; text-align: left; font-size: 10px; cursor: pointer; }
.bracket-player::after { content: ""; float: right; }
.bracket-player:not(:disabled):hover { background: #fff7f7; color: var(--blue-dark); }
.bracket-player.is-winner { background: #fff7f7; color: var(--blue-dark); font-weight: 800; }
.bracket-player.is-winner::after { content: "WON"; color: var(--blue); font-size: 8px; letter-spacing: .04em; }
.bracket-player:disabled { color: #9aa3b2; cursor: default; }
.bracket-bye { min-height: 74px; align-content: center; gap: 3px; padding: 10px; border-color: #f1d9da; background: #fff9f9; }
.bracket-bye strong { color: #252f3f; font-size: 11px; }
.bye-label { color: var(--blue-dark); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.bye-advance { color: #8b96a6; font-size: 8px; }
.bracket-champion { min-width: 175px; align-self: center; display: flex; flex-direction: column; gap: 5px; padding: 15px; border-left: 2px solid var(--blue); background: white; }
.bracket-champion span { color: #8b96a6; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.bracket-champion strong { color: #202a39; font-size: 14px; }
.tier-workspace { padding-bottom: 70px; }
.tier-toolbar { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; align-items: end; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.tier-toolbar label { display: flex; flex-direction: column; gap: 6px; color: #667085; font-size: 9px; font-weight: 700; }
.tier-toolbar select, .tier-toolbar input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #e5e9ef; border-radius: 9px; background: #fbfcfe; color: var(--ink); font-size: 10px; }
.tier-toolbar .button { min-height: 38px; margin: 0; padding-inline: 15px; font-size: 10px; }
.tier-list-heading, .tier-library-heading { margin: 26px 0 11px; }
.tier-list { display: grid; gap: 5px; }
.tier-row { min-height: 64px; display: grid; grid-template-columns: 58px 1fr; overflow: hidden; border: 1px solid #e7eaf0; border-radius: 11px; background: white; transition: border-color .12s ease, background .12s ease; }
.tier-row > strong { display: grid; place-items: center; color: #333c4a; font-size: 16px; }
.tier-s > strong { background: #f3cfd2; }
.tier-a > strong { background: #f8dfe1; }
.tier-b > strong { background: #f4e8e9; }
.tier-c > strong { background: #f2eff0; }
.tier-d > strong { background: #e8ebef; }
.tier-row-items { min-height: 62px; display: flex; align-items: center; align-content: center; flex-wrap: wrap; gap: 6px; padding: 8px; }
.tier-row.tier-drop-target { border-color: var(--blue); background: #fffafa; }
.tier-chip { min-height: 29px; padding: 6px 10px; border: 1px solid #e4e8ee; border-radius: 8px; background: white; color: #475467; font-size: 9px; cursor: grab; }
.tier-chip:active { cursor: grabbing; }
.tier-chip:hover { border-color: #edbfc1; color: var(--blue-dark); }
.tier-library-heading { margin-top: 28px; }
.tier-add-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.tier-add-row > input { width: min(100%, 320px); height: 38px; padding: 0 11px; border: 1px solid #e2e8f0; border-radius: 9px; background: white; font-size: 10px; }
.tier-add-row .button { min-height: 38px; margin: 0; padding-inline: 14px; font-size: 10px; }
.tier-pool { display: flex; flex-wrap: wrap; gap: 7px; min-height: 46px; max-height: 250px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.tier-item-button { min-height: 30px; padding: 6px 10px; border: 1px solid #e4e8ee; border-radius: 8px; background: #fff; color: #4b5667; font-size: 9px; cursor: pointer; }
.tier-item-button:hover { border-color: #e7aeb1; background: #fff9f9; color: var(--blue-dark); }
.tier-empty { align-self: center; color: #98a2b3; font-size: 10px; }
.tier-footer { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 700px) {
  .bracket-setup-actions { align-items: flex-start; flex-wrap: wrap; }
  .bracket-buttons { width: 100%; margin-left: 0; }
  .tier-toolbar { grid-template-columns: 1fr 1fr; }
  .tier-search-label { grid-column: 1 / -1; }
  .tier-toolbar .button { width: 100%; }
}
@media (max-width: 420px) {
  .bracket-round { min-width: 160px; flex-basis: 160px; }
  .bracket-setup-heading, .bracket-result-heading, .tier-list-heading, .tier-library-heading { align-items: flex-start; }
  .tier-toolbar { grid-template-columns: 1fr; }
  .tier-search-label { grid-column: auto; }
  .tier-add-row { flex-wrap: wrap; }
  .tier-add-row > input { width: 100%; }
}

.tier-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 3px 5px 3px 9px; border: 1px solid #e4e8ee; border-radius: 8px; background: white; color: #475467; font-size: 9px; cursor: grab; }
.tier-chip-remove { width: 18px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #9aa3b2; font: 500 12px var(--font); cursor: pointer; }
.tier-chip-remove:hover { background: var(--blue-pale); color: var(--blue-dark); }

/* Tier list imagery and readable type */
.tools-intro-copy { max-width: 650px; margin-top: 12px; color: #5d6879; font-size: 15px; font-weight: 450; line-height: 1.65; letter-spacing: -.015em; }
.tier-list-heading p, .tier-library-heading p, .bracket-setup-heading p, .bracket-result-heading p { font-size: 12px; line-height: 1.6; }
.tier-toolbar label { gap: 7px; font-size: 11px; }
.tier-toolbar select, .tier-toolbar input { height: 42px; font-size: 12px; }
.tier-toolbar .button { min-height: 42px; font-size: 11px; }
.tier-item-button { min-height: 76px; display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 11px; font-size: 11px; font-weight: 650; text-align: left; cursor: grab; }
.tier-item-button:active { cursor: grabbing; }
.tier-item-image { width: 66px; height: 54px; flex: 0 0 66px; display: block; object-fit: contain; border-radius: 7px; background: #f4f6f8; }
.tier-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); align-content: start; max-height: 420px; padding: 12px; gap: 8px; }
.tier-pool.tier-drop-target { border-color: var(--blue); background: #f2f6ff; }
.tier-chip { min-height: 42px; gap: 7px; padding: 4px 5px; font-size: 10px; }
.tier-chip > span { line-height: 1.25; }
.tier-chip-image { width: 40px; height: 32px; flex: 0 0 40px; object-fit: contain; border-radius: 5px; background: #f4f6f8; }
.tier-chip-remove { flex: 0 0 18px; font-size: 13px; }
.tier-row { min-height: 70px; }
.tier-row-items { min-height: 68px; gap: 7px; }
.tier-list-heading h2, .tier-library-heading h2 { font-size: 17px; }
.tier-add-row > input { height: 42px; font-size: 12px; }
.tier-add-row > #tier-custom-image { width: min(100%, 260px); }
.tier-add-row .button { min-height: 42px; font-size: 11px; }
.asset-credit { margin: 9px 1px 0; color: #7d8795; font-size: 11px; line-height: 1.5; }
.asset-credit a { color: #596579; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .tools-intro-copy { font-size: 14px; }
  .tier-pool { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); max-height: 480px; }
  .tier-item-button { gap: 8px; font-size: 10px; }
  .tier-item-image { width: 55px; height: 46px; flex-basis: 55px; }
  .tier-add-row > #tier-custom-image { width: 100%; }
}
.tools-intro-copy { font-size: 16px; }
.tier-list-heading p, .tier-library-heading p, .bracket-setup-heading p, .bracket-result-heading p { font-size: 14px; line-height: 1.65; }
.tier-toolbar label { font-size: 12px; }
.tier-toolbar select, .tier-toolbar input { font-size: 13px; }
.tier-toolbar .button { font-size: 12px; }
.tier-item-button { font-size: 12px; }
.tier-chip { font-size: 11px; }
.tier-count, #tier-count, #player-count { font-size: 12px; }

/* Tournament flow: clear setup, then readable round-by-round match cards. */
.bracket-setup,
.bracket-result-section { max-width: 1080px; }
.bracket-setup { padding: 25px 0 28px; }
.bracket-setup-heading h2,
.bracket-result-heading h2 { font-size: 20px; font-weight: 650; }
.bracket-setup-heading p,
.bracket-result-heading p { font-size: 14px; }
#player-count { font-size: 13px; }
#bracket-participants { min-height: 140px; padding: 15px 17px; border-radius: 16px; font-size: 14px; line-height: 1.75; }
.bracket-setup-actions { min-height: 46px; flex-wrap: wrap; }
.check-label { color: #525d6d; font-size: 13px; }
.bracket-buttons .button { min-height: 46px; padding-inline: 21px; border-radius: 999px; font-size: 13px; }
.bracket-result-section { padding-top: 35px; }
.bracket-result-heading { align-items: flex-end; margin-bottom: 20px; }
.bracket-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.bracket-result-actions .text-button { font-size: 13px; }
.bracket-board { align-items: flex-start; gap: 18px; padding: 4px 2px 18px; }
.bracket-round { min-width: 238px; flex: 1 0 238px; justify-content: flex-start; gap: 14px; }
.bracket-round h3 { margin-bottom: 0; color: #505b6b; font-size: 12px; letter-spacing: .025em; }
.bracket-round-matches { min-height: 420px; display: flex; flex: 1; flex-direction: column; justify-content: space-around; gap: 14px; }
.bracket-match { min-height: 104px; gap: 2px; border-radius: 15px; box-shadow: 0 2px 8px rgb(24 36 54 / 3%); }
.bracket-match-meta { padding: 9px 13px 3px; color: #7b8491; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.bracket-player { min-height: 39px; padding: 8px 13px; color: #2f3948; font-size: 13px; }
.bracket-player:not(:disabled):hover { background: #fff4f4; }
.bracket-player.is-winner { background: #fff1f1; color: var(--blue-dark); }
.bracket-player.is-winner::after { content: "ADVANCES"; font-size: 9px; }
.bracket-player:disabled { font-size: 12px; }
.bracket-bye { min-height: 104px; gap: 5px; padding: 14px; border-radius: 15px; }
.bracket-bye strong { font-size: 14px; }
.bye-label,
.bracket-champion span { font-size: 10px; }
.bye-advance { font-size: 11px; }
.bracket-champion { min-width: 210px; padding: 20px; border-radius: 0 15px 15px 0; }
.bracket-champion strong { font-size: 18px; }
@media (max-width: 700px) {
  .bracket-result-heading { align-items: flex-start; flex-direction: column; }
  .bracket-result-actions { justify-content: flex-start; }
  .bracket-round { min-width: 220px; flex-basis: 220px; }
  .bracket-round-matches { min-height: 360px; }
}.bracket-progress { display: flex; align-items: center; gap: 12px; max-width: 500px; margin: 0 0 18px; color: #687384; font-size: 12px; }
.bracket-progress[hidden] { display: none; }
.bracket-progress-track { height: 6px; flex: 1; overflow: hidden; border-radius: 99px; background: #eef0f3; }
.bracket-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .2s ease; }
.bracket-round h3 { min-height: 20px; }
@media print {
  .site-header, .page-intro, .bracket-setup, .bracket-result-actions, .site-footer { display: none !important; }
  .bracket-result-section { max-width: none; padding: 0; }
  .bracket-board { overflow: visible; flex-wrap: wrap; }
  .bracket-round { min-width: 160px; flex-basis: 160px; }
  .bracket-round-matches { min-height: 0; }
}

/* Tier list: compact items and full-row drop targets */
.tier-row { min-height: 70px; border-radius: 11px; }
.tier-row-items { min-height: 68px; gap: 7px; padding: 8px; }
.tier-row.tier-drop-target { border-color: #e7eaf0; background: #fbfcfe; box-shadow: none; }
.tier-chip { min-height: 42px; max-width: 220px; gap: 7px; padding: 4px 5px; border: 0; border-radius: 8px; background: #f5f6f8; box-shadow: none; cursor: grab; user-select: none; }
.tier-chip:active { cursor: grabbing; }
.tier-chip:hover { background: #eceff4; }
.tier-chip.is-dragging, .tier-item-button.is-dragging { opacity: .3; }
.tier-chip > span { overflow: hidden; color: #3d4859; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tier-chip-image { width: 40px; height: 32px; flex: 0 0 40px; border-radius: 5px; }
.tier-chip-remove { width: 18px; height: 20px; flex: 0 0 18px; border-radius: 5px; color: #98a1af; font-size: 13px; }
.tier-chip-remove:hover { background: #fff0f1; color: #b52d35; }
.tier-item-button { min-height: 62px; gap: 9px; padding: 7px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; user-select: none; }
.tier-item-button:hover { background: #f1f3f6; color: #2f3c50; }
.tier-item-image { width: 50px; height: 42px; flex-basis: 50px; border-radius: 7px; }
.tier-drag-ghost { position: fixed; z-index: 9999; display: flex; align-items: center; gap: 8px; max-width: 230px; padding: 7px 10px; border-radius: 8px; background: #202938; color: #fff; font-size: 11px; font-weight: 650; box-shadow: 0 8px 22px rgb(14 23 39 / 20%); opacity: .96; pointer-events: none; }
.tier-drag-ghost img { width: 30px; height: 26px; border-radius: 5px; object-fit: contain; background: #fff; }
.tier-drag-ghost span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-add-row { gap: 8px; }
.tier-toolbar { grid-template-columns: minmax(180px, .75fr) minmax(240px, 1.5fr) auto; }
@media (max-width: 600px) {
  .tier-row-items { gap: 6px; padding: 8px; }
}

/* Bracket maker workspace refresh */
.bracket-workspace { display: grid; grid-template-columns: minmax(260px, 310px) minmax(0, 1fr); align-items: start; gap: 28px; max-width: 1440px; margin: 24px auto 0; }
.bracket-workspace .bracket-setup,
.bracket-workspace .bracket-result-section { width: 100%; max-width: none; min-width: 0; margin: 0; }
.bracket-workspace .bracket-setup { position: sticky; top: 18px; padding: 22px; border: 1px solid #e6eaf0; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgb(26 40 62 / 4%); }
.bracket-workspace .bracket-setup-heading { align-items: flex-start; }
.bracket-workspace .bracket-setup-heading h2 { font-size: 18px; }
.bracket-workspace .bracket-setup-heading p { font-size: 12px; }
.bracket-workspace #player-count { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: #f2f5f9; color: #667085; font-size: 11px; }
.bracket-size-label { display: block; margin: 20px 0 7px; color: #525d6d; font-size: 12px; font-weight: 700; }
#bracket-size { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #e4e9f0; border-radius: 10px; background: #f9fafc; color: #253044; font: 600 13px var(--font); }
.bracket-seed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: min(48vh, 430px); overflow: auto; margin-top: 12px; padding: 2px 3px 2px 0; }
.bracket-seed-slot { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.bracket-seed-slot > span { color: #8993a2; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.bracket-seed-slot input { width: 100%; min-width: 0; height: 37px; padding: 0 9px; border: 1px solid #e4e9f0; border-radius: 8px; outline: none; background: #fbfcfd; color: #253044; font: 500 11px var(--font); }
.bracket-seed-slot input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(68 104 183 / 12%); background: #fff; }
.bracket-entry-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: 8px; min-height: 48px; padding: 5px 9px; background: #fff; }
.bracket-entry-row + .bracket-entry-row { border-top: 1px solid #edf0f4; }
.bracket-player-entry { display: block; width: 100%; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid #e5e9f0; border-radius: 10px; outline: 0; background: #f8f9fb; color: #2f3948; font: 600 12px var(--font); text-align: left; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.bracket-player-entry::placeholder { color: #a2aab6; font-weight: 450; }
.bracket-player-entry:focus { border-color: #9bb1dc; background: #fff; box-shadow: 0 0 0 3px rgb(68 104 183 / 10%); }
.bracket-entry-row.is-winner .bracket-player-entry { border-color: #bdcdec; background: #f1f5fd; color: #253d69; }
.bracket-advance-pick { position: relative; display: grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 1.5px solid #cbd2de; border-radius: 50%; background: #fff; color: #fff; font-size: 0; cursor: pointer; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.bracket-advance-pick:not(:disabled):hover { border-color: #8fa7d2; box-shadow: 0 0 0 3px rgb(68 104 183 / 9%); }
.bracket-advance-pick[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); }
.bracket-advance-pick[aria-pressed="true"]::after { content: "✓"; color: white; font: 700 12px/1 var(--font); }
.bracket-advance-pick:disabled { opacity: .35; cursor: default; }
.bracket-workspace .bracket-setup-actions { align-items: stretch; flex-direction: column; gap: 12px; }
.bracket-workspace .bracket-buttons { width: 100%; margin: 0; }
.bracket-workspace .bracket-buttons .button { flex: 1; padding-inline: 12px; border-radius: 10px; }
.bracket-workspace .bracket-result-section { overflow: hidden; padding: 24px; border: 1px solid #e6eaf0; border-radius: 18px; background: #f8f9fb; }
.bracket-workspace .bracket-result-heading { align-items: center; }
.bracket-workspace .bracket-result-heading .eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.bracket-workspace .bracket-result-heading h2 { font-size: 23px; }
.bracket-workspace .bracket-result-heading p:not(.eyebrow) { margin-top: 4px; }
.bracket-workspace .bracket-result-actions { gap: 8px; }
.bracket-workspace .bracket-result-actions .text-button { padding: 8px 10px; border: 1px solid #e3e7ed; border-radius: 8px; background: #fff; font-size: 11px; }
.bracket-workspace .bracket-progress { max-width: none; padding: 11px 13px; border: 1px solid #e6eaf0; border-radius: 10px; background: #fff; font-size: 11px; }
.bracket-workspace .bracket-board { min-height: 300px; gap: 14px; margin: 0 -4px; padding: 8px 4px 14px; }
.bracket-workspace .bracket-round { min-width: 205px; flex: 0 0 205px; gap: 11px; }
.bracket-workspace .bracket-round h3 { padding: 0 2px 8px; border-bottom: 1px solid #e3e7ed; color: #667085; font-size: 10px; letter-spacing: .08em; }
.bracket-workspace .bracket-round-matches { min-height: 370px; gap: 12px; }
.bracket-workspace .bracket-match { min-height: 88px; border-color: #e2e7ee; border-radius: 11px; background: #e2e7ee; box-shadow: 0 3px 10px rgb(30 45 67 / 4%); }
.bracket-workspace .bracket-match-meta { padding: 8px 11px 3px; font-size: 9px; }
.bracket-workspace .bracket-player { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.bracket-workspace .bracket-player.is-winner { box-shadow: inset 3px 0 var(--blue); }
.bracket-workspace .bracket-player.is-winner::after { font-size: 8px; }
.bracket-workspace .bracket-champion { min-width: 160px; align-self: center; padding: 16px; border: 1px solid #f0d2d4; border-left: 3px solid var(--blue); border-radius: 12px; box-shadow: 0 5px 15px rgb(30 45 67 / 5%); }
@media (max-width: 900px) {
  .bracket-workspace { grid-template-columns: 1fr; gap: 18px; }
  .bracket-workspace .bracket-setup { position: static; }
  .bracket-seed-grid { max-height: 340px; }
}
@media (max-width: 600px) {
  .bracket-workspace { margin-top: 16px; }
  .bracket-workspace .bracket-setup,
  .bracket-workspace .bracket-result-section { padding: 17px; border-radius: 14px; }
  .bracket-workspace .bracket-result-heading { align-items: flex-start; }
  .bracket-workspace .bracket-round { min-width: 190px; flex-basis: 190px; }
  .bracket-workspace .bracket-round-matches { min-height: 320px; }
}
