/*
Theme Name: Gladius & Shield
Theme URI: https://gladiusandshield.com/
Author: Gladius & Shield
Description: A clean case-library theme for civil-rights litigation, news, timelines, and downloadable court documents.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: gladius-shield
*/

:root {
    --gs-navy: #082846;
    --gs-navy-deep: #041b31;
    --gs-blue: #1d4f7a;
    --gs-red: #9c292d;
    --gs-gold: #d7a84e;
    --gs-gold-soft: #fff8e8;
    --gs-text: #142235;
    --gs-muted: #667181;
    --gs-border: #dce2e8;
    --gs-surface: #ffffff;
    --gs-bg: #f6f8fa;
    --gs-shadow: 0 12px 30px rgba(8, 40, 70, 0.08);
    --gs-radius: 8px;
    --gs-max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--gs-bg);
    color: var(--gs-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.62;
}
a { color: var(--gs-blue); }
a:hover { color: var(--gs-navy-deep); }
img { max-width: 100%; height: auto; }
.gs-container { width: min(calc(100% - 40px), var(--gs-max)); margin-inline: auto; }
.gs-site-main { min-height: 65vh; }

.gs-header { background: linear-gradient(115deg, var(--gs-navy-deep), var(--gs-navy)); color: #fff; }
.gs-header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.gs-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
/* Keep the header brand readable on hover/focus. The global a:hover rule otherwise
   changes this link to --gs-navy-deep, which nearly matches the header background. */
.gs-header .gs-brand:hover,
.gs-header .gs-brand:focus,
.gs-header .gs-brand:visited {
    color: #fff;
    text-decoration: none;
}
.gs-mark { width: 44px; height: 52px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50% 50% 45% 45% / 35% 35% 65% 65%; font-weight: 800; }
.gs-brand-title { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 25px; letter-spacing: .02em; }
.gs-brand-subtitle { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; opacity: .9; }
.gs-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.gs-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.gs-nav .current-menu-item > a { border-bottom: 3px solid #fff; padding-bottom: 9px; }
.gs-support { display: inline-flex; padding: 12px 18px; background: var(--gs-red); border-radius: 4px; }
.gs-menu-button { display: none; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; padding: 8px 12px; border-radius: 4px; }

.gs-hero { padding: 72px 0; color: #fff; background: linear-gradient(110deg, rgba(4,27,49,.98), rgba(8,40,70,.9)); }
.gs-hero-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; align-items: center; }
.gs-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; color: #b9d6ec; }
.gs-hero h1 { max-width: 780px; margin: 10px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; }
.gs-hero p { max-width: 720px; font-size: 20px; color: #e6eef5; }
.gs-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--gs-navy); border-radius: 5px; background: var(--gs-navy); color: #fff; text-decoration: none; font-weight: 700; }
.gs-button:hover { background: var(--gs-navy-deep); color: #fff; }
.gs-button-outline { background: transparent; color: var(--gs-navy); }
.gs-button-light { border-color: #fff; background: #fff; color: var(--gs-navy); }
.gs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.gs-section { padding: 58px 0; }
.gs-section-white { background: #fff; }
.gs-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.gs-section h2, .gs-page-title { margin-top: 0; font-family: Georgia, "Times New Roman", serif; color: var(--gs-navy); }
.gs-page-title { font-size: clamp(36px, 5vw, 58px); line-height: 1.1; }
.gs-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gs-card { padding: 24px; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius); box-shadow: var(--gs-shadow); }
.gs-card h3 { margin-top: 0; color: var(--gs-navy); }
.gs-card-meta { color: var(--gs-muted); font-size: 14px; }

/* Case-card camel watermark v0.1.9 — flat silhouette only, no internal detail. */
.post-type-archive-gs_case .gs-card { position:relative; overflow:hidden; }
.post-type-archive-gs_case .gs-card::after { content:""; position:absolute; right:-10px; bottom:-4px; width:185px; height:135px; background:url("assets/images/camel-silhouette-watermark.png") right bottom / contain no-repeat; opacity:.16; pointer-events:none; z-index:0; }
.post-type-archive-gs_case .gs-card > * { position:relative; z-index:1; }
.gs-status { display: inline-flex; padding: 5px 9px; border-radius: 4px; background: #fde4aa; color: #5f3b00; font-size: 13px; font-weight: 800; }

.gs-breadcrumbs { padding: 26px 0 8px; color: var(--gs-muted); font-size: 14px; }
.gs-breadcrumbs a { color: inherit; text-decoration: none; }
.gs-case-header { padding: 18px 0 25px; background: #fff; }
.gs-case-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 38px; align-items: start; }
.gs-case-title { margin: 8px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 62px); line-height: 1.08; color: var(--gs-navy); }
.gs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.gs-tag { display: inline-flex; padding: 5px 10px; border: 1px solid var(--gs-border); border-radius: 4px; background: #f2f4f6; color: var(--gs-text); text-decoration: none; font-size: 13px; }
.gs-lead { font-size: 19px; }
.gs-alert { margin: 24px 0; padding: 20px 22px; border: 1px solid #efd28f; border-radius: var(--gs-radius); background: var(--gs-gold-soft); }
.gs-alert strong { display: block; color: #6b3c00; text-transform: uppercase; }
.gs-panel { margin-bottom: 24px; padding: 24px; border: 1px solid var(--gs-border); border-radius: var(--gs-radius); background: #fff; }
.gs-panel h2, .gs-panel h3 { margin-top: 0; color: var(--gs-navy); }
.gs-facts { margin: 0; }
.gs-fact { display: grid; grid-template-columns: 135px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid #edf0f3; }
.gs-fact:last-child { border-bottom: 0; }
.gs-fact dt { font-weight: 750; }
.gs-fact dd { margin: 0; }
.gs-content > *:first-child { margin-top: 0; }
.gs-content h2 { margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--gs-border); color: var(--gs-navy); }
.gs-pdf-frame { width: 100%; height: 560px; border: 1px solid var(--gs-border); background: #f0f2f5; }
.gs-pdf-actions { display: flex; gap: 10px; margin-top: 12px; }
.gs-timeline { margin: 0; padding: 0; list-style: none; }
.gs-timeline li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 15px; padding: 10px 0 10px 22px; }
.gs-timeline li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; background: var(--gs-navy); border-radius: 50%; }
.gs-timeline li::after { content: ""; position: absolute; left: 5px; top: 28px; bottom: -9px; width: 2px; background: #cbd5df; }
.gs-timeline li:last-child::after { display: none; }
.gs-timeline time { font-weight: 750; color: var(--gs-navy); }

/* Compact case timeline: recent six entries remain visible; older history is collapsible. */
.gs-timeline-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 4px; }
.gs-timeline-heading h2 { margin-bottom: 0; }
.gs-timeline-heading > span { color: var(--gs-muted); font-size: 13px; white-space: nowrap; }
.gs-timeline-disclosure { margin: 16px 0 8px; border: 1px solid var(--gs-border); border-radius: 10px; background: #f8fafc; }
.gs-timeline-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; color: var(--gs-navy); font-weight: 800; cursor: pointer; user-select: none; }
.gs-timeline-disclosure summary::marker { color: var(--gs-blue); }
.gs-timeline-disclosure summary:hover { background: #f1f5f8; }
.gs-timeline-disclosure summary:focus-visible { outline: 3px solid rgba(29,79,122,.25); outline-offset: 2px; }
.gs-timeline-count { color: var(--gs-muted); font-size: 12px; font-weight: 650; }
.gs-timeline-disclosure[open] summary { border-bottom: 1px solid var(--gs-border); }
.gs-timeline-older { padding: 8px 14px 10px; }
.gs-timeline-recent { margin-top: 8px; }
.gs-document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gs-document-card { display: flex; flex-direction: column; min-height: 250px; padding: 20px; border: 1px solid var(--gs-border); border-radius: var(--gs-radius); background: #fff; }
.gs-document-card h3 { font-size: 18px; }
.gs-document-card .gs-actions { margin-top: auto; }

.gs-court-badge { display: inline-flex; align-items: center; margin-right: 8px; padding: 2px 7px; border: 1px solid #b9c8d6; border-radius: 999px; background: #eef3f7; color: var(--gs-navy); font-size: 11px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.gs-document-description { margin: 8px 0 12px; color: var(--gs-text); }
.gs-document-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0 16px; color: var(--gs-muted); font-size: 14px; }
.gs-document-meta span:not(:last-child)::after { content: "·"; margin-left: 12px; color: #a2acb7; }
.gs-document-card h3 a { color: var(--gs-navy); text-decoration: none; }
.gs-document-card h3 a:hover { text-decoration: underline; }
.gs-filter-note { margin: -8px 0 26px; color: var(--gs-muted); }
.gs-empty { padding: 28px; border: 1px dashed var(--gs-border); background: #fff; color: var(--gs-muted); }

.gs-footer { margin-top: 60px; padding: 42px 0 20px; background: var(--gs-navy-deep); color: #dce7f0; }
.gs-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.gs-footer a { color: #fff; }
.gs-footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: #b8c7d3; }

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

@media (max-width: 960px) {
    .gs-case-grid, .gs-hero-grid { grid-template-columns: 1fr; }
    .gs-card-grid, .gs-document-grid { grid-template-columns: repeat(2, 1fr); }
    .gs-nav { display: none; width: 100%; }
    .gs-nav.is-open { display: block; }
    .gs-nav ul { flex-direction: column; align-items: stretch; padding: 12px 0 22px; }
    .gs-header-inner { flex-wrap: wrap; padding: 14px 0; }
    .gs-menu-button { display: inline-flex; }
}
@media (max-width: 650px) {
    .gs-container { width: min(calc(100% - 24px), var(--gs-max)); }
    .gs-card-grid, .gs-document-grid, .gs-footer-grid { grid-template-columns: 1fr; }
    .gs-fact, .gs-timeline li { grid-template-columns: 1fr; gap: 3px; }
    .gs-case-title { font-size: 38px; }
    .gs-pdf-frame { height: 430px; }
}


/* Mobile PDF compatibility v0.1.7
   Do not embed PDFs into mobile WebViews. Some mobile browsers can promote an
   iframe PDF request to a top-level navigation instead of keeping the case page open. */
.gs-mobile-pdf-notice { display: none; margin: 12px 0; padding: 16px; border: 1px solid var(--gs-border); border-radius: 6px; background: #f7f9fb; color: var(--gs-muted); }
.gs-mobile-pdf-notice strong { display: block; margin-bottom: 4px; color: var(--gs-navy); }
@media (max-width:650px) {
    .gs-pdf-frame[data-pdf-src] { display: none; }
    .gs-mobile-pdf-notice { display: block; }
}


/* Homepage launch layout v0.1.5 */
.gs-home-hero {
    padding: 82px 0 76px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 24%, rgba(215,168,78,.18), transparent 26%),
        linear-gradient(112deg, var(--gs-navy-deep), var(--gs-navy));
}
.gs-home-hero-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:54px; align-items:center; }
.gs-home-hero h1 { max-width:760px; margin:10px 0 18px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(44px,6vw,76px); line-height:1.02; }
.gs-home-hero p { max-width:760px; margin:0; font-size:20px; color:#e7eff6; }
.gs-home-hero-note { padding:24px; border:1px solid rgba(255,255,255,.22); border-radius:var(--gs-radius); background:rgba(255,255,255,.075); backdrop-filter:blur(4px); }
.gs-home-hero-note .gs-kicker { color:#f2d59c; }
.gs-home-hero-note h2 { margin:8px 0 8px; color:#fff; font-size:26px; }
.gs-home-hero-note p { font-size:15px; color:#e2ebf3; }

.gs-featured-cases { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.gs-featured-case { position:relative; min-height:310px; padding:30px; overflow:hidden; border:1px solid var(--gs-border); border-radius:12px; background:#fff; box-shadow:var(--gs-shadow); }
.gs-featured-case::after { content:""; position:absolute; right:-8px; bottom:-16px; width:220px; height:248px; background:url("assets/images/camel-silhouette-watermark.png") right bottom / contain no-repeat; opacity:.18; pointer-events:none; z-index:0; }
.gs-featured-case h3 { position:relative; z-index:1; margin:14px 0 12px; font-family:Georgia,"Times New Roman",serif; font-size:30px; line-height:1.15; color:var(--gs-navy); }
.gs-featured-case h3 a { color:inherit; text-decoration:none; }
.gs-featured-case p { position:relative; z-index:1; color:#334356; }
.gs-case-card-meta { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:8px 14px; margin:16px 0 18px; color:var(--gs-muted); font-size:13px; }
.gs-case-card-tags { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:7px; margin:14px 0; }
.gs-case-card-tags .gs-tag { background:#f7f9fb; }
.gs-text-link { position:relative; z-index:1; display:inline-flex; margin-top:8px; font-weight:800; text-decoration:none; }

.gs-home-news-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr); gap:24px; align-items:stretch; }
.gs-news-feature { padding:30px; border:1px solid var(--gs-border); border-radius:12px; background:#fff; box-shadow:var(--gs-shadow); }
.gs-news-feature h3 { margin:8px 0 12px; font-family:Georgia,"Times New Roman",serif; font-size:32px; line-height:1.16; color:var(--gs-navy); }
.gs-news-feature h3 a { color:inherit; text-decoration:none; }
.gs-news-side { display:grid; gap:14px; }
.gs-news-mini { padding:20px; border:1px solid var(--gs-border); border-radius:10px; background:#fff; }
.gs-news-mini h3 { margin:5px 0 8px; font-size:18px; line-height:1.3; }
.gs-news-mini h3 a { color:var(--gs-navy); text-decoration:none; }
.gs-news-type { display:inline-flex; padding:4px 8px; border-radius:999px; background:#eef3f7; color:var(--gs-navy); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }

.gs-work-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.gs-work-card { padding:24px; border-top:4px solid var(--gs-navy); background:#fff; box-shadow:0 8px 22px rgba(8,40,70,.05); }
.gs-work-card h3 { margin:0 0 8px; color:var(--gs-navy); }
.gs-work-card p { margin:0; color:#536173; }

@media (max-width:960px) {
    .gs-home-hero-grid, .gs-home-news-grid { grid-template-columns:1fr; }
    .gs-featured-cases { grid-template-columns:1fr; }
    .gs-featured-case::after { width:170px; height:192px; right:-14px; bottom:-12px; opacity:.15; }
}
@media (max-width:650px) {
    .gs-home-hero { padding:58px 0 50px; }
    .gs-work-grid { grid-template-columns:1fr; }
    .gs-featured-case { min-height:0; padding:24px; }
}

@media (max-width: 640px) {
    .gs-timeline-heading { display: block; }
    .gs-timeline-heading > span { display: block; margin-top: 5px; white-space: normal; }
    .gs-timeline-disclosure summary { align-items: flex-start; }
}
