/* Gracie Foundation Jiu-Jitsu Network - black, yellow, white. */
:root {
  --black: #0a0a0a;
  --ink: #161616;
  --yellow: #f5e900;      /* logo yellow, slightly toned for screens */
  --yellow-deep: #d9ce00;
  --grey: #e0e0e8;        /* logo light grey */
  --text: #1b1b1b;
  --muted: #5f6368;
  --bg: #f4f4f6;
  --white: #fff;
  --line: #dcdde2;
  --ok: #1a8f3a;
  --err: #c62828;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --head: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 900; letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 1.2em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 1em 0 0.4em; }
h4 { font-size: 1rem; margin: 0.8em 0 0.3em; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2rem); margin: 0 auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 100; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.kicker { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--yellow-deep); margin: 0 0 0.4em; }
.dark .kicker { color: var(--yellow); }
.lead { font-size: 1.15rem; color: #333; }
.dark .lead { color: #d8d8d8; }
.center { text-align: center; }
section { padding: 3.5rem 0; }
.dark { background: var(--black); color: #e8e8e8; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark a { color: #fff; }
.yellow-band { background: var(--yellow); color: var(--black); }
.yellow-band h2 { color: var(--black); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.section-head h2 { margin-top: 0; }
.rule { width: 72px; height: 5px; background: var(--yellow); margin: 0.6rem auto 0; }
.rule.left { margin-left: 0; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; text-decoration: none; text-transform: uppercase; font-family: var(--head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: transform 0.1s, filter 0.15s, background 0.15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-black { background: var(--black); color: #fff; border-color: var(--black); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; width: 100%; }

/* Header */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--yellow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo img { width: 52px; height: 52px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--head); text-transform: uppercase; }
.wordmark strong { font-size: 1.1rem; font-weight: 900; letter-spacing: 0.02em; }
.wordmark small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; color: var(--yellow); margin-top: 3px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 11px; color: #fff; text-decoration: none; font-weight: 500; font-size: 0.93rem; border-radius: 6px; white-space: nowrap; }
.main-nav a:hover { color: var(--yellow); }
.main-nav a.active { color: var(--yellow); }
.main-nav .caret { display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.main-nav .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow); min-width: 250px; flex-direction: column; gap: 0; padding: 6px 0; border-radius: 8px; border-top: 3px solid var(--yellow); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: flex; }
.main-nav .sub li { width: 100%; }
.main-nav .sub a { padding: 8px 16px; font-weight: 500; text-align: left; color: var(--ink); border-radius: 0; }
.main-nav .sub a small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.main-nav .sub a:hover { background: #fffbd6; color: var(--ink); }
.main-nav .sub .linkbtn { padding: 8px 16px; color: var(--ink); }
.main-nav .sub .linkbtn:hover { background: #fffbd6; }
.main-nav .cta a { background: var(--yellow); color: var(--black); font-family: var(--head); font-weight: 700; text-transform: uppercase; margin-left: 8px; padding: 10px 16px; }
.main-nav .cta a:hover { background: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; }
@media (max-width: 1080px) {
  .main-nav a { padding: 10px 8px; font-size: 0.88rem; }
  .wordmark strong { font-size: 1rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); box-shadow: var(--shadow); padding: 8px 0 16px; max-height: calc(100vh - 75px); overflow: auto; }
  body.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 20px; font-size: 1rem; white-space: normal; }
  .main-nav .sub { display: flex; position: static; box-shadow: none; padding-left: 12px; background: #161616; border-top: 0; border-left: 3px solid var(--yellow); margin: 0 20px; }
  .main-nav .sub a, .main-nav .sub .linkbtn { color: #fff; }
  .main-nav .sub a small { color: #aaa; }
  .main-nav .sub a:hover, .main-nav .sub .linkbtn:hover { background: #222; color: var(--yellow); }
  .main-nav .cta a { margin: 10px 20px 0; text-align: center; }
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--black) url('/img/photos/hero-still.jpg') center/cover no-repeat; color: #fff; padding: 4rem 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .hero-video.ready { display: block; } }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)); z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; padding: 0 1rem; }
.hero-logo { width: clamp(150px, 22vw, 230px); height: auto; margin: 0 auto 1.2rem; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4.2rem); margin: 0 0 0.4em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 720px; margin: 0 auto 1.6rem; color: #eee; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-strip { background: var(--yellow); color: var(--black); font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.hero-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2.2rem; padding: 12px 0; }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.card-img { position: relative; background: #111; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-img.logo-card img { object-fit: contain; padding: 10px; background: #000; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card p { margin: 0; color: #444; font-size: 0.95rem; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-block; background: var(--black); color: var(--yellow); border-radius: 4px; padding: 2px 9px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--head); font-weight: 700; }
.tag.grey { background: var(--grey); color: var(--ink); }
.tag.ok { background: var(--ok); color: #fff; }
.price { font-family: var(--head); font-weight: 900; font-size: 1.3rem; }
.dark .card { background: #161616; color: #eee; }
.dark .card h3 a, .dark .card p { color: #eee; }

/* Audience tiles on the home page */
.audience { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; background: #222 center/cover no-repeat; }
.audience::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.9)); }
.audience div { position: relative; padding: 22px; }
.audience h3 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; }
.audience h3 span { color: var(--yellow); }
.audience p { margin: 0 0 10px; color: #ddd; }
.audience .more { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow); font-size: 0.85rem; }

/* Why / feature list */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 5px solid var(--yellow); }
.feature h3 { margin-top: 0; font-size: 1.05rem; }
.feature p { margin: 0; color: #444; font-size: 0.95rem; }
.dark .feature { background: #161616; }
.dark .feature p { color: #ccc; }
.num { font-family: var(--head); font-weight: 900; font-size: 2.4rem; color: var(--yellow-deep); line-height: 1; }

/* Split section (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } .split.rev > :first-child { order: 0; } }
.lineage { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lineage li { background: var(--black); color: #fff; padding: 6px 12px; border-radius: 4px; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.lineage li:last-child { background: var(--yellow); color: var(--black); }
.lineage li + li::before { content: ''; }
.dark .lineage li { background: #222; }
.dark .lineage li:last-child { background: var(--yellow); }

/* Page title bar */
.page-title { background: var(--black); color: #fff; padding: 2.5rem 0; border-bottom: 5px solid var(--yellow); }
.page-title h1 { color: #fff; margin: 0; }
.page-title p { margin: 0.5em 0 0; color: #ccc; max-width: 760px; font-size: 1.1rem; }
.page-title.with-img { padding: 0; }
.page-title.with-img .wrap { display: flex; align-items: center; gap: 2rem; }
.page-title.with-img img { width: 200px; height: auto; }

/* Prose */
.prose { background: #fff; padding: 2rem 2.4rem 2.4rem; border-radius: var(--radius); box-shadow: var(--shadow); margin: 2rem auto; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2::after { content: ''; display: block; width: 48px; height: 4px; background: var(--yellow); margin-top: 6px; }
.prose img { margin: 1rem auto; border-radius: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--black); color: #fff; font-family: var(--head); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.prose tr:nth-child(even) td { background: #fafafa; }
.prose blockquote { border-left: 5px solid var(--yellow); margin: 1rem 0; padding: 4px 18px; color: #444; background: #fffdf0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.25em 0; }
.prose iframe, .prose video { max-width: 100%; }
.prose .video-wrap { position: relative; padding-top: 56.25%; margin: 1rem 0; background: #000; border-radius: 6px; overflow: hidden; }
.prose .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .prose { padding: 1.2rem 1.2rem 1.6rem; } }

/* Curriculum tables inside programme pages */
.curriculum { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.curriculum th { background: var(--black); color: var(--yellow); text-align: left; padding: 10px 14px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.curriculum td { padding: 9px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.curriculum td:first-child { font-family: var(--head); font-weight: 900; width: 60px; color: var(--yellow-deep); font-size: 1.1rem; }
.curriculum tr:nth-child(even) td { background: #fafafa; }

/* FAQ */
.faq details { background: #fff; border-radius: 6px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 0; }
.faq summary { cursor: pointer; padding: 14px 18px; font-family: var(--head); font-weight: 700; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--yellow-deep); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 18px 16px; margin: 0; color: #333; }

/* Forms */
form label { display: block; margin-bottom: 12px; font-weight: 500; font-size: 0.95rem; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=password], form input[type=number], form input[type=date], form input[type=url], form select, form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #c9cbd2; border-radius: 6px; font: inherit; background: #fff; }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--yellow); border-color: var(--yellow-deep); }
form textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.err { color: var(--err); font-size: 0.85rem; font-weight: 400; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 1rem; }
.alert-ok { background: #e7f6ea; color: #14602a; border: 1px solid #b9e2c3; }
.alert-error { background: #fdeaea; color: #8f1b1b; border: 1px solid #f2c1c1; }
.alert-info { background: #fffbd6; color: #5a5200; border: 1px solid #f0e68c; }
.form-box { background: #fff; padding: 1.6rem 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 640px; margin: 1.5rem auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.account-box { max-width: 460px; margin: 3rem auto; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.account-box h1 { font-size: 1.7rem; }

/* CTA band */
.cta-band { background: var(--yellow); color: var(--black); text-align: center; padding: 3rem 0; }
.cta-band h2 { color: var(--black); margin: 0 0 0.4em; }
.cta-band p { max-width: 700px; margin: 0 auto 1.2rem; font-size: 1.1rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.review { background: #161616; border-radius: var(--radius); padding: 20px; border-left: 4px solid var(--yellow); }
.review p { color: #ddd; font-size: 0.95rem; margin: 0 0 10px; }
.review cite { font-style: normal; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--yellow); }
.stars { color: var(--yellow); letter-spacing: 2px; }

/* Instructors */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }
.person { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.person img.face { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 4px solid var(--black); }
.person h3 { font-size: 1.05rem; margin: 6px 0 2px; }
.person .role { color: var(--muted); font-size: 0.85rem; }
.person .rank { font-weight: 600; font-size: 0.9rem; margin-top: 4px; }
.person img.belt { height: 16px; width: auto; margin: 8px auto 0; }
.person.hq { border-top: 5px solid var(--yellow); }

/* Academies */
.academy-card { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.academy-card img { width: 100%; height: 100%; object-fit: cover; }
.academy-card .body { padding: 22px 26px; }
.academy-card h3 { margin-top: 0; font-size: 1.4rem; }
.academy-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0; font-size: 0.95rem; }
.academy-card dt { font-weight: 600; color: var(--muted); }
.academy-card dd { margin: 0; }
@media (max-width: 720px) { .academy-card { grid-template-columns: 1fr; } .academy-card img { max-height: 220px; } }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Video library */
.course-card .card-img img { aspect-ratio: 300 / 146; object-fit: cover; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.lesson-list li:first-child { border-radius: 8px 8px 0 0; }
.lesson-list li:last-child { border-bottom: 0; border-radius: 0 0 8px 8px; }
.lesson-list .n { font-family: var(--head); font-weight: 900; color: var(--yellow-deep); width: 34px; flex: none; }
.lesson-list a { text-decoration: none; color: var(--ink); font-weight: 500; flex: 1; }
.lesson-list a:hover { color: var(--yellow-deep); }
.lesson-list .lock { color: #aaa; flex: 1; }
.lesson-list .dur { color: var(--muted); font-size: 0.85rem; }
.lesson-list .done { color: var(--ok); font-weight: 700; }
.lesson-list li.current { background: #fffbd6; }
.section-name { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; color: #fff; background: var(--black); padding: 8px 14px; border-radius: 6px 6px 0 0; margin-top: 1.2rem; }
.course-hero { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .course-hero { grid-template-columns: 1fr; } }
.buy-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 90px; }
.buy-box .head { background: var(--black); color: #fff; padding: 14px 18px; }
.buy-box .head .price { color: var(--yellow); font-size: 1.8rem; }
.buy-box .body { padding: 16px 18px; }
.buy-box .body ul { padding-left: 1.2em; margin: 0 0 1em; font-size: 0.92rem; }
.player-page { background: var(--black); color: #eee; padding: 1.5rem 0 3rem; min-height: 70vh; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; }
@media (max-width: 960px) { .player-layout { grid-template-columns: 1fr; } }
.player { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; }
.player-page h1 { color: #fff; font-size: 1.6rem; margin: 1rem 0 0.2em; }
.player-page .notes { color: #ccc; }
.player-nav { display: flex; gap: 10px; justify-content: space-between; margin: 1rem 0; flex-wrap: wrap; }
.side-list { background: #161616; border-radius: var(--radius); max-height: 70vh; overflow: auto; }
.side-list .lesson-list li { background: transparent; border-color: #2a2a2a; }
.side-list .lesson-list a { color: #ddd; }
.side-list .lesson-list li.current { background: #2a2a10; }
.side-list .lesson-list li.current a { color: var(--yellow); }
.side-list .section-name { border-radius: 0; margin-top: 0; background: #000; }
.notice { background: #1f1f1f; border-left: 4px solid var(--yellow); padding: 12px 16px; border-radius: 6px; color: #ddd; }

/* News */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .no-img { aspect-ratio: 16 / 9; background: var(--black) url('/img/brand/logo-192.png') center/80px no-repeat; }
.post-card div { padding: 14px 16px 16px; }
.post-card h3 { font-size: 1.05rem; margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.post-card p { font-size: 0.9rem; color: #555; margin: 0; }
.post-card time { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* Footer */
.site-footer { background: var(--black); color: #bbb; padding: 3rem 0 1.5rem; margin-top: 3rem; border-top: 5px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: var(--yellow); font-size: 0.85rem; letter-spacing: 0.12em; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand img { width: 80px; margin-bottom: 10px; }
.footer-brand p { margin: 0 0 8px; }
.copyright { border-top: 1px solid #222; margin-top: 2rem; padding-top: 1rem; font-size: 0.8rem; color: #888; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* Admin */
.admin-top { background: #161616; color: #fff; padding: 10px 0; }
.admin-top .wrap { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-top a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 0.9rem; }
.admin-top a.active, .admin-top a:hover { background: var(--yellow); color: var(--black); }
.admin-top strong { margin-right: 10px; color: var(--yellow); font-family: var(--head); text-transform: uppercase; }
.table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
.table th { background: var(--black); color: #fff; text-align: left; padding: 9px 12px; font-family: var(--head); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.table td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: #fffbd6; }
.table form { display: inline; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1rem 0 2rem; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-top: 4px solid var(--yellow); }
.stat b { display: block; font-family: var(--head); font-size: 1.8rem; font-weight: 900; }
.stat span { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { margin: 0; }
.inline-form input, .inline-form select { margin-top: 2px; }
.lesson-row { display: grid; grid-template-columns: 34px 1.2fr 2fr 2.4fr 80px auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lesson-row input { margin: 0; padding: 6px 8px; font-size: 0.88rem; }
.lesson-row .missing { border-color: var(--err); background: #fff5f5; }
@media (max-width: 900px) { .lesson-row { grid-template-columns: 1fr 1fr; } }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; background: #f0f0f2; padding: 1px 5px; border-radius: 3px; }
