/*
Theme Name: Teen Patti & Rummy
Theme URI: https://teenpattijoy.vip/
Author: Teen Patti & Rummy
Description: A white news-style publication theme. Latest articles, About, Contact, Privacy Policy, and colored social icons.
Version: 1.7.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teen-patti-rummy
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bg: #f4ecdf;
  --soft: #fffaf3;
  --ink: #1d2433;
  --mute: #5e564c;
  --line: #e3d4c0;
  --accent: #9c3030;
  --navy: #1b3358;
  --gold: #e4c48a;
  --shadow: 0 10px 28px rgba(27, 51, 88, 0.08);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Merriweather", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 80;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 0;
}
body.admin-bar .site-header { top: 32px; }
.entry-title,
.page-head h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 { scroll-margin-top: 7.5rem; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark,
.custom-logo-link { display: block; line-height: 0; flex: 0 0 auto; }

.brand-mark img,
.custom-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.brand-text { min-width: 0; }

.site-name {
  display: block;
  color: #f8f1e6;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.site-tagline {
  display: block;
  margin-top: 0.15rem;
  color: var(--gold);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  border: 1px solid rgba(248, 241, 230, 0.35);
  background: transparent;
  color: #f8f1e6;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #f8f1e6;
  content: "";
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.main-nav {
  border-top: 1px solid rgba(248, 241, 230, 0.16);
  background: #152848;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0.65rem;
  color: #f8f1e6;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}

.primary-menu a:hover,
.primary-menu a[aria-current="page"],
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  border-bottom-color: var(--gold);
  color: #fff;
}
.primary-menu li { position: relative; }
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  z-index: 50;
  left: 0;
  top: 100%;
  min-width: 12rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #152848;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { width: 100%; }

.search-form {
  display: flex;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.search-form input[type="search"] {
  width: 11rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 1rem;
}

.search-form button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.search-mobile { display: none; }

.site-main { padding: 1.75rem 0 3.5rem; }

.intro { max-width: 46rem; padding: 0.4rem 0 1.4rem; }
.intro h1 {
  margin: 0.2rem 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.intro p:last-child { margin: 0; color: var(--mute); font-size: 1.125rem; }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
}
.home-latest {
  position: static;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
}
.home-latest h2 { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.latest-list { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.latest-list li { border-top: 1px solid var(--line); padding: 0.75rem 0; }
.latest-list time { display: block; color: var(--mute); font-size: 0.8rem; }
.latest-list a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-list a:hover { color: var(--accent); }

.prose { font-size: 1.0625rem; line-height: 1.85; }
.prose h1,
.prose h3 { font-family: var(--serif); line-height: 1.28; letter-spacing: -0.02em; }
.prose h1 { margin: 0 0 1rem; font-size: clamp(1.85rem, 3vw, 2.55rem); text-align: center; }
.prose p,
.entry-content p { text-align: justify; hyphens: auto; }
.prose h3 { font-size: 1.22rem; }
.prose li + li { margin-top: 0.35rem; }
.prose table { margin: 0.4rem 0 1.2rem; font-size: 0.98rem; }
.prose th,
.prose td { border: 1px solid #ccc; padding: 0.65rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.welcome-article { min-width: 0; }

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-grid,
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.5rem;
  gap: 2.5rem;
  align-items: start;
}
.layout > *,
.home-grid > *,
.news-grid > * { min-width: 0; }

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 2px solid var(--ink);
  padding-top: 0.7rem;
  margin-bottom: 1.1rem;
}

.section-row h2,
.about-band h2,
.page-head h1,
.entry-title,
.prose h2,
.entry-content h2 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-row h2 { margin: 0; font-size: 1.35rem; }

.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.lead-story h3,
.story-card h3,
.post-card h2 {
  margin: 0.3rem 0 0.35rem;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead-story h3 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); }
.lead-story h3 a,
.story-card h3 a,
.post-card h2 a,
.post-card h3 a { color: inherit; text-decoration: none; }
.lead-story h3 a:hover,
.story-card h3 a:hover,
.post-card h2 a:hover,
.post-card h3 a:hover { color: var(--accent); }

.lead-story p,
.story-card p,
.post-card p { margin: 0; color: var(--mute); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
}

.story-card,
.post-card {
  min-width: 0;
}

.story-media {
  display: block;
  overflow: hidden;
  border-radius: 0.7rem;
  background: var(--soft);
  aspect-ratio: 16 / 10;
}

.story-media img,
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(145deg, #f3f1ee, #e7e4df); }

.story-card .story-media { margin-bottom: 0.65rem; }

.meta { color: var(--mute); font-size: 0.9rem; overflow-wrap: anywhere; }
.meta a { font-weight: 700; text-decoration: none; }
.author-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin-top: 1.6rem;
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.author-box h2 {
  margin: 0 0 0.35rem;
  text-align: left;
  font-size: 1.15rem;
}
.author-box p { margin: 0 0 0.45rem; text-align: left; hyphens: manual; }
.author-box p:last-child { margin-bottom: 0; }
.cat {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.about-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}

.about-band h2 { margin: 0.25rem 0 0.6rem; font-size: 1.7rem; }
.about-band p { margin: 0; color: var(--mute); }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem !important; }

.button,
.button-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button { background: var(--ink); color: #fff; }
.button:hover { background: var(--accent); color: #fff; }
.button-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.button-ghost:hover { border-color: var(--ink); color: var(--ink); }

.empty-news,
.post-card {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem;
  background: #fff;
}

.post-card + .post-card { margin-top: 0.8rem; }

.page-head { margin-bottom: 1.2rem; text-align: center; }
.page-head h1,
.entry-header h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
}
.deck { color: var(--mute); margin: 0.5rem 0 0; }

.entry-header { margin-bottom: 1rem; text-align: center; }
.featured-image {
  margin: 0 0 1.2rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 16 / 9;
}
.prose,
.entry-content {
  max-width: none;
  min-width: 0;
  overflow-wrap: break-word;
}
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content img,
.entry-content video,
.entry-content embed,
.entry-content object { max-width: 100%; height: auto; }
.entry-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}
.wp-embed-responsive .wp-block-embed__wrapper { position: relative; }
.wp-embed-responsive .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1rem; }
.wp-block-column { flex: 1 1 16rem; min-width: 0; }
.alignleft,
.alignright { max-width: 100%; }
.entry-content .alignleft { float: left; margin: 0.2rem 1rem 0.8rem 0; }
.entry-content .alignright { float: right; margin: 0.2rem 0 0.8rem 1rem; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose h2,
.entry-content h2 { margin: 1.8rem 0 0.5rem; font-size: 1.55rem; }
.prose h3,
.entry-content h3 { margin: 1.3rem 0 0.4rem; }
.prose p,
.entry-content p { margin: 0 0 1rem; }
.prose ul,
.entry-content ul,
.prose ol,
.entry-content ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.entry-content img,
.prose img { border-radius: 0.6rem; }
.entry-content table,
.prose table {
  display: table;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}
.entry-content figure.wp-block-table { max-width: 100%; overflow-x: auto; }
.entry-content th,
.entry-content td,
.prose th,
.prose td { overflow-wrap: anywhere; }
.entry-content pre { max-width: 100%; overflow-x: auto; }

.sidebar { display: grid; gap: 1rem; }
.widget {
  background: var(--soft);
  border-radius: 0.9rem;
  padding: 1rem 1rem 1.05rem;
}
.widget-title,
.widget h2 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.widget p { margin: 0 0 0.7rem; color: var(--ink); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px solid var(--line); }
.widget a { color: var(--ink); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.widget a:hover { color: var(--accent); }
.widget,
.widget li { min-width: 0; }
.widget select,
.widget img,
.widget iframe { max-width: 100%; }
.widget select { width: 100%; font: inherit; }
.widget table { width: 100%; border-collapse: collapse; }
.widget th,
.widget td { text-align: center; padding: 0.3rem 0.15rem; overflow-wrap: anywhere; }
.widget .tagcloud { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.widget .tag-cloud-link {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: #f6ecdf;
  border-radius: 999px;
  font-size: 0.85rem !important;
  line-height: 1.4;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 42rem;
}
.share-row > span { font-weight: 700; color: var(--mute); }

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.social-link svg { width: 32px; height: 32px; flex: 0 0 auto; }
.is-board .social-link {
  flex-direction: column;
  width: 5.2rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.3rem;
}
.is-compact .social-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.posts-nav,
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; width: 100%; margin-top: 1.3rem; }
.nav-links a,
.nav-links span,
.posts-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  overflow-wrap: anywhere;
}

.site-footer {
  background: var(--navy);
  border-top: 0;
  padding: 2.2rem 0 1.1rem;
  margin-top: 1rem;
  color: #f8f1e6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 0.9fr;
  gap: 1.75rem;
}
.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #f8f1e6;
  text-decoration: none;
}
.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}
.footer-name {
  color: #f8f1e6;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}
.footer-brand p { margin: 0.55rem 0 0; color: #e7d7c4; max-width: 36ch; }
.site-footer h2 {
  margin: 0.2rem 0 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 0.45rem; }
.footer-links a { color: #f8f1e6; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(248, 241, 230, 0.18);
  color: #e7d7c4;
  font-size: 0.9rem;
}
.legal p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.legal-links a { color: #f8f1e6; text-decoration: none; font-weight: 700; }
.legal-links a:hover { color: var(--accent); }

.comments-area {
  margin-top: 2rem;
  padding-top: 0.4rem;
  min-width: 0;
}
.comments-title,
.comment-reply-title {
  margin: 0 0 0.8rem;
  text-align: left;
  font-size: 1.35rem;
  scroll-margin-top: 7.5rem;
}
.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.comment-list .children {
  margin: 0 0 0.2rem 1.4rem;
  padding: 0 0 0 0.9rem;
  list-style: none;
  border-left: 2px solid var(--line);
}
.comment-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.2rem 0.75rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.comment-avatar img,
.comment-body .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.comment-main { min-width: 0; }
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.65rem;
}
.comment-author { color: var(--ink); }
.comment-permalink {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.85rem;
}
.comment-content { margin-top: 0.25rem; }
.comment-content p,
.comment-awaiting-moderation,
.comment-notes,
.comments-closed { margin: 0.35rem 0 0; text-align: left; hyphens: manual; }
.comment-awaiting-moderation { color: var(--accent); font-size: 0.9rem; }
.comment-actions { margin-top: 0.35rem; }
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.comment-form {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin-top: 1rem;
}
.comment-form p { margin: 0; text-align: left; hyphens: manual; }
.comment-form label { display: block; margin-bottom: 0.3rem; font-weight: 700; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  background: #fff;
}
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.comment-form-cookies-consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .submit,
.form-submit { margin: 0; }
.comment-form .submit {
  width: auto;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
}
#cancel-comment-reply-link { margin-left: 0.6rem; font-size: 0.9rem; }
.comments-area .nav-links { margin-top: 0.6rem; }

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 1.2rem;
}
.page-links a,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.link-opportunities,
.related-posts {
  clear: both;
  margin-top: 1.6rem;
  padding: 1rem 1rem 1.1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.link-opportunities h2,
.link-opportunities h3,
.related-posts h2,
.related-posts h3 {
  margin: 0 0 0.7rem;
  text-align: left;
  font-size: 1.25rem;
}
.link-opportunities p,
.related-posts p,
.link-opportunities li,
.related-posts li { text-align: left; hyphens: manual; }
.link-opportunities ul,
.related-posts ul { list-style: none; margin: 0; padding: 0; }
.link-opportunities li + li,
.related-posts li + li { margin-top: 0.3rem; }
.link-opportunities a {
  display: block;
  padding: 0.4rem 0.5rem;
  background: #f6ecdf;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.link-opportunities a:hover { background: var(--navy); color: #fff; }
.related-posts li a {
  display: block;
  padding: 0.45rem 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.related-card a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.related-card img { width: 100%; height: 7.5rem; object-fit: cover; border-radius: 6px; }
.related-card span { overflow-wrap: anywhere; }

.article-faq,
.article-toc,
.article-author,
.article-sources,
.article-cta,
.article-notes {
  clear: both;
  margin-top: 1.6rem;
  padding: 1rem 1rem 1.1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.article-disclaimer {
  clear: both;
  margin-top: 1.6rem;
  padding: 1rem 1rem 1.1rem;
  background: #f8efe4;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.article-faq h2,
.article-faq h3,
.article-toc h2,
.article-toc h3,
.article-author h2,
.article-author h3,
.article-sources h2,
.article-sources h3,
.article-disclaimer h2,
.article-disclaimer h3,
.article-cta h2,
.article-cta h3,
.article-notes h2,
.article-notes h3 {
  margin: 0 0 0.7rem;
  text-align: left;
  font-size: 1.25rem;
}
.entry-content .article-faq p,
.entry-content .article-toc p,
.entry-content .article-author p,
.entry-content .article-sources p,
.entry-content .article-disclaimer p,
.entry-content .article-cta p,
.entry-content .article-notes p,
.article-faq li,
.article-toc li,
.article-sources li,
.article-notes li { text-align: left; hyphens: manual; }
.article-faq ul,
.article-faq ol,
.article-toc ul,
.article-toc ol,
.article-sources ul,
.article-notes ul { margin: 0; padding-left: 1.15rem; }
.article-toc a { font-weight: 700; text-decoration: none; }

.entry-content .wp-block-gallery,
.entry-content .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.entry-content .wp-block-gallery .wp-block-image,
.entry-content .gallery-item {
  flex: 1 1 140px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  width: auto;
  float: none;
}
.entry-content .gallery-icon img,
.entry-content .wp-block-gallery img { width: 100%; height: 8.5rem; object-fit: cover; }
.entry-content figcaption {
  margin-top: 0.35rem;
  color: var(--mute);
  font-size: 0.85rem;
  text-align: center;
}
.entry-content blockquote,
.entry-content .wp-block-quote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  border-radius: 0 10px 10px 0;
}
.entry-content .wp-block-pullquote {
  margin: 1.2rem 0;
  padding: 1rem;
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  text-align: center;
}
.entry-content blockquote p,
.entry-content .wp-block-pullquote p { text-align: left; hyphens: manual; }
.entry-content .wp-block-button { margin: 0.4rem 0.4rem 0.4rem 0; }
.entry-content .wp-block-button__link,
.entry-content .wp-element-button,
.entry-content .wp-block-file__button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  font-weight: 700;
}
.entry-content .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.entry-content .wp-block-group,
.entry-content .wp-block-cover,
.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.entry-content .wp-block-cover {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}
.entry-content .wp-block-cover p { text-align: center; color: #fff; }
.entry-content audio { width: 100%; }
.entry-content hr,
.entry-content .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.4rem 0;
}
.entry-content code { overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .news-grid,
  .layout,
  .about-band,
  .home-grid { grid-template-columns: 1fr; }
  .home-latest { order: -1; }
  .lead-story { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .wrap { width: min(1120px, calc(100% - 1.5rem)); }
  .nav-toggle { display: inline-flex; }
  .search-desktop { display: none; }
  .search-mobile { display: block; margin: 0.2rem 0 0.8rem; }
  .search-mobile .search-form,
  .search-mobile .search-form input[type="search"] { width: 100%; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .nav-inner,
  .primary-menu,
  .footer-grid,
  .about-band { display: flex; flex-direction: column; align-items: stretch; }
  .primary-menu,
  .search-mobile { width: 100%; }
  .story-grid { grid-template-columns: 1fr; }
  .primary-menu a {
    width: 100%;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0.15rem;
  }
  .site-name { font-size: 1.12rem; }
  .site-tagline { display: none; }
  .brand-mark img,
  .custom-logo { width: 44px; height: 44px; }
  .intro h1 { font-size: 1.85rem; }
  .lead-story h3 { font-size: 1.45rem; }
  .is-board { justify-content: flex-start; }
  .related-grid,
  .wp-block-columns { display: flex; flex-direction: column; }
  .wp-block-column { flex: 1 1 auto; width: 100%; }
  .entry-content .alignleft,
  .entry-content .alignright { float: none; display: block; margin: 0 0 1rem; }
  .entry-title,
  .page-head h1,
  .prose h1 { overflow-wrap: anywhere; }
  .prose p,
  .entry-content p { text-align: left; hyphens: manual; }
  .primary-menu .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0.35rem 0.75rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .comment-list .children { margin-left: 0.55rem; padding-left: 0.55rem; }
  .comment-body { grid-template-columns: 40px minmax(0, 1fr); }
  .comment-avatar img,
  .comment-body .avatar { width: 40px; height: 40px; }
  .author-box { grid-template-columns: 48px minmax(0, 1fr); }
  .author-box img { width: 48px; height: 48px; }
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.news-ticker {
  display: flex;
  align-items: stretch;
  background: var(--accent);
  color: #fff;
  min-height: 2.45rem;
}
.ticker-label {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  background: #14243f;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  padding-left: 1rem;
  animation: tpr-ticker 42s linear infinite;
}
.ticker-track a,
.ticker-track span { color: #fff; text-decoration: none; white-space: nowrap; font-size: 0.92rem; }
.news-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tpr-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.crumbs { background: #efe4d4; border-bottom: 1px solid var(--line); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  list-style: none;
  margin: 0 auto;
  padding: 0.4rem 0;
  width: min(1120px, calc(100% - 2rem));
  font-size: 0.84rem;
}
.crumbs a { color: var(--navy); text-decoration: none; font-weight: 700; }
.crumbs [aria-current="page"] { color: var(--mute); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 0.4rem; color: var(--mute); }

.vscroll { overflow: hidden; }
.vscroll.is-scrolling { height: 17.4rem; }
.vscroll .latest-list { margin: 0; }
.vscroll.is-scrolling .latest-list li {
  height: 5.8rem;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.vscroll.is-scrolling .vscroll-track { animation: tpr-vscroll 16s linear infinite; }
.vscroll:hover .vscroll-track,
.vscroll:focus-within .vscroll-track { animation-play-state: paused; }
@keyframes tpr-vscroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.brand-blogroll {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem;
}
.brand-blogroll-title {
  margin: 0;
  padding: 0.35rem 0.4rem 0.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-blogroll-list {
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0.3rem;
}
.brand-blogroll a {
  display: block;
  margin: 0;
  padding: 0.22rem 0.4rem;
  background: #f6ecdf;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 700;
}
.brand-blogroll a:hover { background: var(--navy); color: #fff; }
.home-rail { display: grid; gap: 1rem; align-content: start; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track,
  .vscroll-track { animation: none; }
  .vscroll.is-scrolling { height: auto; max-height: 17.4rem; overflow: auto; }
}
