/* georgewyrd — component styles. Every value comes from tokens.css. */

body.gw { margin: 0; }
.gw { background: var(--canvas); color: var(--ink); font-family: var(--font-text); font-size: 17px; line-height: 27px; font-variant-numeric: oldstyle-nums; }
.gw a { color: var(--union); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gw a:hover { color: var(--leather-strong); }
.gw :focus-visible { outline: var(--border-focus) solid var(--focus); outline-offset: 2px; }
.gw-eyebrow { font-family: var(--font-label); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: lowercase; color: var(--leather); margin: 0 0 var(--space-2); }

/* Masthead */
.gw-masthead { background: var(--canvas-sunken); border-bottom: var(--border-double) double var(--rule-strong); }
.gw-masthead__inner { max-width: var(--page-max); margin: 0 auto; padding: var(--space-3) var(--space-4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); }
.gw .gw-brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.gw-logo { display: block; width: 44px; height: 44px; }
.gw-wordmark { font-family: var(--font-display); font-size: 28px; line-height: 34px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--leather); }
.gw-nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0; padding: 0; list-style: none; }
.gw .gw-nav a { font-family: var(--font-label); font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: .04em; text-transform: lowercase; color: var(--ink-muted); text-decoration: none; padding: var(--space-1) 0; border-bottom: 2px solid transparent; }
.gw .gw-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.gw .gw-nav a[aria-current="page"] { color: var(--leather); border-bottom-color: var(--leather); }

/* Button */
.gw-btn { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-label); font-size: 14px; line-height: 18px; font-weight: 700; letter-spacing: .04em; text-transform: lowercase; padding: 10px var(--space-4); border-radius: var(--radius-sm); border: var(--border-hairline) solid transparent; cursor: pointer; text-decoration: none; }
.gw .gw-btn--primary, .gw-btn--primary { background: var(--leather); color: var(--on-fill); border-color: var(--leather-strong); text-decoration: none; }
.gw .gw-btn--primary:hover, .gw-btn--primary:hover { background: var(--leather-strong); color: var(--on-fill); }
.gw .gw-btn--secondary, .gw-btn--secondary { background: transparent; color: var(--leather); border-color: var(--rule-strong); text-decoration: none; }
.gw .gw-btn--secondary:hover, .gw-btn--secondary:hover { border-color: var(--leather); color: var(--leather-strong); background: var(--leather-tint); }
.gw-btn[disabled] { opacity: 1; background: var(--canvas-sunken); color: var(--ink-muted); border-color: var(--rule); cursor: not-allowed; }

/* Tag */
.gw-tag { display: inline-block; font-family: var(--font-label); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: lowercase; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: var(--leather-tint); color: var(--leather); white-space: nowrap; }
.gw-tag--info { background: var(--union-tint); color: var(--union); }
.gw-tag--reviewed { background: var(--rifle-tint); color: var(--rifle); }
.gw-tag--warning { background: var(--madder-tint); color: var(--madder); }

/* Collection card */
.gw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.gw .gw-card { display: flex; flex-direction: column; gap: var(--space-2); background: var(--canvas-raised); border: var(--border-hairline) solid var(--rule-strong); border-radius: var(--radius-md); padding: var(--space-6); color: var(--ink); text-decoration: none; }
.gw .gw-card:hover { border-color: var(--leather); }
.gw-card__title { font-family: var(--font-display); font-size: 28px; line-height: 34px; margin: 0; color: var(--ink); }
.gw-card__body { margin: 0; font-size: 17px; line-height: 27px; }
.gw-card__count { margin: auto 0 0; padding-top: var(--space-3); border-top: var(--border-hairline) solid var(--rule); font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: lining-nums tabular-nums; }

/* Dated list (scenarios, battles) */
.gw-list { list-style: none; margin: 0; padding: 0; border-top: var(--border-double) double var(--rule-strong); }
.gw-list__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); padding: var(--space-3) 0; border-bottom: var(--border-hairline) solid var(--rule); }
.gw-list__title { flex: 1 1 260px; font-size: 17px; line-height: 27px; }
.gw-list__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: lining-nums; }

/* Order of battle table */
.gw-table-wrap { overflow-x: auto; }
.gw-table { width: 100%; border-collapse: collapse; background: var(--canvas-raised); font-size: 15px; line-height: 22px; font-variant-numeric: lining-nums tabular-nums; }
.gw-table caption { caption-side: top; text-align: left; font-weight: 600; font-size: 18px; line-height: 26px; padding-bottom: var(--space-2); color: var(--ink); }
.gw-table th { font-family: var(--font-label); font-size: 14px; line-height: 18px; font-weight: 700; letter-spacing: .04em; text-transform: lowercase; text-align: left; color: var(--ink-muted); background: var(--canvas-sunken); padding: var(--space-2) var(--space-3); border-bottom: var(--border-double) double var(--rule-strong); }
.gw-table td { padding: var(--space-2) var(--space-3); border-bottom: var(--border-hairline) solid var(--rule); vertical-align: top; }
.gw-table .num { text-align: right; }
.gw-table .loss { color: var(--madder); }
.gw-table .sub td:first-child { padding-left: var(--space-8); }
.gw-table tr.formation td { font-weight: 600; }

/* Page: the layout every georgewyrd page shares (container, intro, section titles, footer). */
.gw-page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 720px) { .gw-page, .gw-masthead__inner, .gw-footer__inner { padding-left: var(--space-8); padding-right: var(--space-8); } }
.gw-intro { padding: var(--space-12) 0 var(--space-8); border-bottom: var(--border-hairline) solid var(--rule); }
.gw-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 7vw, 56px); line-height: 1.07; letter-spacing: -0.01em; }
.gw-lede { margin: var(--space-6) 0 0; max-width: var(--measure); font-size: 19px; line-height: 30px; }
.gw-section { padding: var(--space-12) 0 0; }
.gw-section__title { margin: 0 0 var(--space-6); font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 46px; }
.gw-section__title a { color: inherit; text-decoration: none; }
.gw-section__more { margin: var(--space-4) 0 0; }
.gw-footer { margin-top: var(--space-16); border-top: var(--border-double) double var(--rule-strong); background: var(--canvas-sunken); }
.gw-footer__inner { max-width: var(--page-max); margin: 0 auto; padding: var(--space-8) var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.gw-footer__inner p { margin: 0; flex: 1 1 400px; max-width: 600px; }
.gw-footer__logo { display: block; width: 32px; height: 32px; }
