/*
Theme Name: HoopSpeak
Theme URI: https://hoopspeak.com/
Author: HoopSpeak
Author URI: https://hoopspeak.com/
Description: A court playbook layout for useful links, updated addresses, replay notes, media context, culture posts, source checks, and safe browsing.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: hoopspeak-com
*/

:root {
  --hs-ink: #17140f;
  --hs-muted: #70695f;
  --hs-line: #c9b99d;
  --hs-paper: #fffaf0;
  --hs-floor: #f2d09a;
  --hs-paint: #204b3f;
  --hs-orange: #d75f22;
  --hs-sky: #dbeffd;
  --hs-cream: #fff6df;
  --hs-chalk: rgba(255, 255, 255, 0.76);
}

* {
  box-sizing: border-box;
}

body.hs-theme-body {
  margin: 0;
  min-height: 100vh;
  color: var(--hs-ink);
  background:
    repeating-linear-gradient(90deg, rgba(23, 20, 15, 0.035) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #fff9eb 0, #f4dfba 48%, #fffaf0 100%);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
}

body.hs-theme-body a {
  color: inherit;
  text-decoration: none;
}

body.hs-theme-body img {
  max-width: 100%;
  height: auto;
}

.hs-app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.hs-rail {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  border-right: 3px solid var(--hs-ink);
  background: var(--hs-paper);
}

body.admin-bar .hs-rail {
  top: 32px;
}

.hs-brand {
  display: grid;
  gap: 14px;
  padding: 24px 20px;
  border-bottom: 3px solid var(--hs-ink);
  background: #ffffff;
}

.hs-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(8px 8px 0 #f0c078);
}

.hs-brand strong {
  display: block;
  color: var(--hs-ink);
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: 0;
}

.hs-brand small {
  display: block;
  margin-top: 8px;
  color: var(--hs-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hs-nav {
  display: grid;
  align-content: start;
  gap: 0;
}

.hs-nav a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  min-width: 0;
  border-bottom: 1px solid var(--hs-line);
  background: var(--hs-paper);
  color: var(--hs-ink);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hs-nav a span {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid var(--hs-line);
  background: #f6d08b;
  font-size: 12px;
}

.hs-nav a b {
  min-width: 0;
  padding: 12px 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hs-nav a:nth-child(2) span { background: #d8efe4; }
.hs-nav a:nth-child(3) span { background: #dbeffd; }
.hs-nav a:nth-child(4) span { background: #ffe0c9; }
.hs-nav a:nth-child(5) span { background: #f7e9a9; }
.hs-nav a:nth-child(6) span { background: #e7ded1; }

.hs-rail-note {
  margin: 0;
  padding: 18px 20px;
  border-top: 3px solid var(--hs-ink);
  color: var(--hs-muted);
  font-size: 13px;
  font-weight: 800;
}

.hs-main {
  min-width: 0;
}

.hs-scorebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0;
  border-bottom: 3px solid var(--hs-ink);
  background: var(--hs-ink);
  color: #ffffff;
}

.hs-scorebar span {
  min-width: 0;
  padding: 12px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hs-court {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 3px solid var(--hs-ink);
  background:
    linear-gradient(90deg, rgba(23, 20, 15, 0.08) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(180deg, #f5d49f 0, #eebb74 100%);
}

.hs-court::before,
.hs-court::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 4px solid var(--hs-chalk);
}

.hs-court::before {
  right: -180px;
  top: 70px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
}

.hs-court::after {
  right: 58px;
  top: 190px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  border-width: 3px;
}

.hs-paint {
  position: absolute;
  right: 0;
  top: 138px;
  width: 245px;
  height: 390px;
  border: 4px solid var(--hs-chalk);
  border-right: 0;
  background: rgba(32, 75, 63, 0.18);
}

.hs-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(34px, 7vw, 86px) clamp(24px, 6vw, 78px);
}

.hs-kicker {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 11px;
  border: 2px solid var(--hs-ink);
  border-radius: 999px;
  background: var(--hs-paper);
  color: var(--hs-paint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hs-hero-copy h1,
.hs-page-article h1 {
  margin: 0;
  max-width: 780px;
  color: var(--hs-ink);
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hs-hero-copy p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #493e32;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 700;
}

.hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hs-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border: 2px solid var(--hs-ink);
  border-radius: 999px;
  background: var(--hs-paint);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.hs-actions a + a {
  background: var(--hs-paper);
  color: var(--hs-ink);
}

.hs-playcards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 0 clamp(20px, 6vw, 78px) 40px;
}

.hs-play {
  min-width: 0;
  min-height: 132px;
  padding: 17px;
  border: 2px solid var(--hs-ink);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  overflow-wrap: anywhere;
}

.hs-play small,
.hs-category small,
.hs-archive-list small {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--hs-orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hs-play b {
  display: block;
  color: var(--hs-ink);
  font-size: 18px;
  line-height: 1.2;
}

.hs-play p {
  margin: 9px 0 0;
  color: var(--hs-muted);
  font-size: 14px;
  font-weight: 700;
}

.hs-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  border-bottom: 3px solid var(--hs-ink);
  background: var(--hs-paper);
}

.hs-section-intro {
  padding: 28px 24px;
  border-right: 3px solid var(--hs-ink);
  background: var(--hs-paint);
  color: #ffffff;
}

.hs-section-intro h2 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 0.96;
  letter-spacing: 0;
}

.hs-section-intro p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 700;
}

.hs-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hs-category {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 158px;
  min-width: 0;
  border-right: 1px solid var(--hs-line);
  border-bottom: 1px solid var(--hs-line);
  background: var(--hs-paper);
  overflow-wrap: anywhere;
}

.hs-category:nth-child(2n) {
  border-right: 0;
}

.hs-category:nth-last-child(-n+2) {
  border-bottom: 0;
}

.hs-num {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid var(--hs-line);
  background: #f6d08b;
  color: var(--hs-ink);
  font-size: 22px;
  font-weight: 900;
}

.hs-category:nth-child(2) .hs-num { background: #d8efe4; }
.hs-category:nth-child(3) .hs-num { background: #dbeffd; }
.hs-category:nth-child(4) .hs-num { background: #ffe0c9; }
.hs-category:nth-child(5) .hs-num { background: #f7e9a9; }
.hs-category:nth-child(6) .hs-num { background: #e7ded1; }

.hs-category-body {
  min-width: 0;
  padding: 20px;
}

.hs-category h2 {
  margin: 0;
  color: var(--hs-ink);
  font-size: 23px;
  line-height: 1.12;
}

.hs-category p {
  margin: 10px 0 0;
  color: var(--hs-muted);
  font-size: 14px;
  font-weight: 700;
}

.hs-inline-posts {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.hs-inline-posts a {
  padding-top: 8px;
  border-top: 1px solid var(--hs-line);
  color: #204b3f;
  font-size: 13px;
  font-weight: 900;
}

.hs-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 3px solid var(--hs-ink);
  background: #ffffff;
}

.hs-bottom article {
  min-height: 132px;
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--hs-line);
  overflow-wrap: anywhere;
}

.hs-bottom article:last-child {
  border-right: 0;
}

.hs-bottom b {
  display: block;
  margin-bottom: 9px;
  color: var(--hs-ink);
  font-size: 17px;
  line-height: 1.2;
}

.hs-bottom span {
  color: var(--hs-muted);
  font-size: 14px;
  font-weight: 700;
}

.hs-page-main {
  display: grid;
  gap: 22px;
  padding: 32px;
}

.hs-page-article,
.hs-related-posts {
  border: 2px solid var(--hs-ink);
  border-radius: 8px;
  background: var(--hs-paper);
  box-shadow: 10px 10px 0 rgba(215, 95, 34, 0.16);
}

.hs-page-article {
  padding: clamp(28px, 5vw, 58px);
}

.hs-page-article h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
}

.hs-page-body {
  max-width: 820px;
  margin-top: 24px;
  color: var(--hs-muted);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 700;
}

.hs-page-body h2,
.hs-page-body h3 {
  margin: 30px 0 10px;
  color: var(--hs-ink);
  line-height: 1.2;
}

.hs-page-body p {
  margin: 0 0 16px;
}

.hs-related-posts {
  padding: 24px;
}

.hs-related-posts h2 {
  margin: 0 0 16px;
  color: var(--hs-ink);
  font-size: 22px;
}

.hs-archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hs-archive-list article {
  min-height: 154px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--hs-ink);
  border-radius: 8px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.hs-archive-list h2,
.hs-archive-list h3 {
  margin: 8px 0 0;
  color: var(--hs-ink);
  font-size: 20px;
  line-height: 1.22;
}

.hs-archive-list h3 {
  font-size: 18px;
}

.hs-archive-list p {
  margin: 10px 0 0;
  color: var(--hs-muted);
  font-size: 14px;
  font-weight: 700;
}

.hs-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--hs-ink);
  border-radius: 8px;
  background: #ffffff;
  color: var(--hs-muted);
  font-weight: 800;
}

.hs-single-meta {
  margin-top: 14px;
  color: var(--hs-paint);
  font-size: 13px;
  font-weight: 900;
}

.hs-featured-image {
  margin: 24px 0 0;
}

.hs-featured-image img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--hs-ink);
}

.hs-pagination {
  display: flex;
  gap: 10px;
}

.hs-pagination a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--hs-ink);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 900;
}

.hs-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 34px;
  color: var(--hs-muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .hs-app {
    grid-template-columns: 1fr;
  }

  .hs-rail {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 3px solid var(--hs-ink);
  }

  body.admin-bar .hs-rail {
    top: 0;
  }

  .hs-brand {
    display: flex;
  }

  .hs-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hs-rail-note {
    border-top: 1px solid var(--hs-line);
  }

  .hs-section {
    grid-template-columns: 1fr;
  }

  .hs-section-intro {
    border-right: 0;
    border-bottom: 3px solid var(--hs-ink);
  }
}

@media (max-width: 720px) {
  .hs-scorebar,
  .hs-nav,
  .hs-playcards,
  .hs-categories,
  .hs-bottom,
  .hs-archive-list {
    grid-template-columns: 1fr;
  }

  .hs-scorebar span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .hs-court {
    min-height: auto;
  }

  .hs-court::before,
  .hs-court::after,
  .hs-paint {
    opacity: 0.38;
  }

  .hs-hero-copy {
    padding: 32px 20px;
  }

  .hs-hero-copy h1 {
    font-size: 44px;
  }

  .hs-playcards {
    margin: 0 14px 26px;
  }

  .hs-category,
  .hs-category:nth-child(2n),
  .hs-category:nth-last-child(-n+2),
  .hs-bottom article {
    border-right: 0;
    border-bottom: 1px solid var(--hs-line);
  }

  .hs-category:last-child,
  .hs-bottom article:last-child {
    border-bottom: 0;
  }

  .hs-page-main {
    padding: 20px 14px;
  }
}
