/* AFQ X's and O's — magazine-style, same navy/gold as americanfootballquarterly.com */
:root { --xo-navy: #1e3c64; --xo-navy-dark: #15294a; --xo-gold: rgb(228,184,79); --xo-ink: #1f2430; --xo-muted: #6b7280; --xo-line: #e4e7ee; --xo-bg: #f4f5f8; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.xo { margin: 0; font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; color: var(--xo-ink); background: var(--xo-bg); }
a { color: var(--xo-navy); }
img { max-width: 100%; height: auto; }
.xo-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: Oswald, Roboto, sans-serif; font-weight: 600; line-height: 1.2; color: var(--xo-navy); margin: 0 0 .5em; }

/* header */
.xo-header { background: #fff; border-bottom: 3px solid var(--xo-gold); }
.xo-masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; flex-wrap: wrap; }
.xo-brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.xo-brand-x { font-family: Oswald, sans-serif; font-weight: 700; font-size: 34px; color: var(--xo-navy); letter-spacing: .01em; }
.xo-brand-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--xo-muted); margin-top: 2px; }
.xo-search { display: flex; }
.xo-search input { width: 260px; max-width: 60vw; padding: 9px 12px; border: 1px solid #c8d0dc; border-right: none; border-radius: 4px 0 0 4px; font-size: 15px; }
.xo-search button { padding: 0 14px; border: 1px solid var(--xo-navy); background: var(--xo-navy); color: #fff; border-radius: 0 4px 4px 0; font-size: 18px; cursor: pointer; }
.xo-nav { background: var(--xo-navy); }
.xo-nav .xo-wrap { display: flex; flex-wrap: wrap; gap: 0 4px; }
.xo-nav a { color: #fff; text-decoration: none; font-family: Oswald, sans-serif; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 11px 12px; border-bottom: 3px solid transparent; }
.xo-nav a:hover, .xo-nav a.active { border-bottom-color: var(--xo-gold); color: var(--xo-gold); }
.xo-nav .xo-nav-ext { margin-left: auto; opacity: .85; }
.xo-nav .xo-nav-ext + .xo-nav-ext { margin-left: 0; }

/* lists */
.xo-main { padding: 28px 20px 40px; }
.xo-hero { text-align: center; padding: 10px 0 26px; }
.xo-hero h1 { font-size: 40px; }
.xo-hero p { max-width: 760px; margin: 0 auto; color: #444; font-size: 17px; }
.xo-listhead h1 { font-size: 32px; }
.xo-intro { max-width: 820px; color: #444; }
.xo-muted { color: var(--xo-muted); font-size: 14px; }
.xo-grid-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.xo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.xo-card { background: #fff; border: 1px solid var(--xo-line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.xo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.xo-card-img { display: block; aspect-ratio: 16 / 10; background: var(--xo-navy-dark); overflow: hidden; text-decoration: none; }
.xo-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xo-card-x, .xo-noimg::before { display: flex; align-items: center; justify-content: center; height: 100%; font-family: Oswald, sans-serif; font-weight: 700; font-size: 34px; line-height: 1; color: var(--xo-gold); text-align: center; }
.xo-noimg::before { content: "X's & O's"; }
.xo-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.xo-card h2 { font-size: 18px; margin: 0; }
.xo-card h2 a { text-decoration: none; }
.xo-card h2 a:hover { text-decoration: underline; }
.xo-card p { margin: 0; font-size: 14px; color: #444; flex: 1; }
.xo-meta { font-size: 13px; color: var(--xo-muted); }
.xo-meta a { color: var(--xo-muted); text-decoration: none; }
.xo-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; font-weight: 500; }
.xo-pager a { background: #fff; border: 1px solid #c8d0dc; border-radius: 4px; padding: 8px 14px; text-decoration: none; }

/* sidebar */
.xo-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.xo-box { background: #fff; border: 1px solid var(--xo-line); border-radius: 8px; padding: 16px 18px; }
.xo-box h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--xo-gold); padding-bottom: 6px; margin-bottom: 10px; }
.xo-box ul { list-style: none; margin: 0; padding: 0; }
.xo-cats li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #f0f1f4; font-size: 15px; }
.xo-cats li.child { padding-left: 14px; font-size: 14px; }
.xo-cats a { text-decoration: none; }
.xo-count { color: var(--xo-muted); font-size: 12px; }
.xo-related li { padding: 7px 0; border-bottom: 1px solid #f0f1f4; }
.xo-related a { display: block; font-weight: 500; text-decoration: none; line-height: 1.35; }
.xo-box-afq { background: var(--xo-navy); color: #fff; border-color: var(--xo-navy); }
.xo-box-afq h3 { color: #fff; }
.xo-box-afq p { font-size: 14px; margin: 0 0 12px; }
.xo-btn { display: inline-block; background: var(--xo-gold); color: #1a1a1a; font-weight: 700; text-decoration: none; padding: 9px 18px; border-radius: 40px; font-size: 14px; }

/* post */
.xo-post-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.xo-post { background: #fff; border: 1px solid var(--xo-line); border-radius: 8px; padding: 28px 34px 34px; }
.xo-crumbs { font-size: 13px; color: var(--xo-muted); margin-bottom: 10px; }
.xo-crumbs a { text-decoration: none; }
.xo-post h1 { font-size: 34px; }
.xo-byline { color: var(--xo-muted); font-size: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--xo-line); }
.xo-byline a { text-decoration: none; font-weight: 500; }
.xo-featured { border-radius: 6px; margin-bottom: 18px; }
.xo-content { font-size: 17px; line-height: 1.75; color: #222; }
.xo-content p { margin: 0 0 1.1em; }
.xo-content h2, .xo-content h3, .xo-content h4 { margin-top: 1.4em; }
.xo-content img { height: auto; }
.xo-content img.alignright, .xo-content figure.alignright { float: right; margin: 4px 0 12px 20px; }
.xo-content img.alignleft, .xo-content figure.alignleft { float: left; margin: 4px 20px 12px 0; }
.xo-content img.aligncenter, .xo-content figure.aligncenter { display: block; margin: 12px auto; }
.xo-content figure.wp-caption { max-width: 100%; margin: 12px 0; }
.xo-content figure.wp-caption img { display: block; width: 100%; height: auto; }
.xo-content .wp-caption-text { font-size: 13px; color: var(--xo-muted); text-align: center; padding: 6px 4px 0; }
.xo-content iframe { max-width: 100%; }
.xo-content table { border-collapse: collapse; max-width: 100%; }
.xo-content td, .xo-content th { border: 1px solid #ddd; padding: 4px 8px; }
.xo-content ul, .xo-content ol { padding-left: 1.4em; }
.xo-content::after { content: ""; display: block; clear: both; }
.xo-tags { margin-top: 20px; font-size: 14px; color: var(--xo-muted); }
.xo-authorbox { margin-top: 26px; padding: 16px 18px; background: var(--xo-bg); border-left: 4px solid var(--xo-gold); border-radius: 4px; font-size: 15px; }
.xo-authorbox p { margin: 6px 0 8px; }
.xo-authorbox .xo-more { font-weight: 500; text-decoration: none; }
.xo-faq { margin-top: 32px; }
.xo-faq h2 { font-size: 22px; }
.xo-faq details { background: var(--xo-bg); border: 1px solid var(--xo-line); border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; }
.xo-faq summary { cursor: pointer; font-weight: 700; color: var(--xo-navy); }
.xo-faq .xo-a { padding-top: 8px; color: #333; }

/* footer */
.xo-footer { background: var(--xo-navy-dark); color: #c7cfdd; margin-top: 40px; padding: 36px 0 22px; font-size: 14px; }
.xo-footer a { color: #e9eef7; }
.xo-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.xo-footer strong { color: #fff; font-family: Oswald, sans-serif; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.xo-footer ul { list-style: none; margin: 0; padding: 0; }
.xo-footer li { padding: 3px 0; }
.xo-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 14px; font-size: 12px; color: #9aa6ba; }

@media (max-width: 900px) {
  .xo-grid-wrap, .xo-post-wrap { grid-template-columns: 1fr; }
  .xo-side { position: static; }
  .xo-footer-cols { grid-template-columns: 1fr; }
  .xo-nav .xo-nav-ext { margin-left: 0; }
}
@media (max-width: 600px) {
  .xo-masthead { padding: 12px 16px; }
  .xo-brand-x { font-size: 28px; }
  .xo-search input { width: 100%; max-width: none; }
  .xo-search { width: 100%; }
  .xo-nav a { font-size: 13px; padding: 9px 8px; }
  .xo-hero h1 { font-size: 30px; }
  .xo-post { padding: 20px 18px 26px; }
  .xo-post h1 { font-size: 26px; }
  .xo-content img.alignright, .xo-content img.alignleft, .xo-content figure.alignright, .xo-content figure.alignleft { float: none; display: block; margin: 12px auto; }
}
