/* OwnershipGuide — global styles (v1) */

:root{
  --bg:#f6f7f9;
  --text:#111827;
  --muted:#4b5563;
  --link:#1d4ed8;
  --linkHover:#1e40af;
  --border:#e5e7eb;
  --card:#f9fafb;
  --max: 900px;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.6;
}
.eyebrow{
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}


.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 64px;
}

a{
  color:var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover{ color:var(--linkHover); }

small, .muted{ color:var(--muted); }

hr{
  border:none;
  border-top:1px solid var(--border);
  margin: 18px 0;
}

h1,h2,h3{
  line-height:1.25;
  margin: 18px 0 10px;
}

h1{ font-size: 34px; letter-spacing:-0.02em; }
h2{ font-size: 24px; letter-spacing:-0.01em; }
h3{ font-size: 18px; }

ul{ padding-left: 20px; }

.nav{
  font-size: 14px;
  margin-bottom: 12px;
}
.nav a{
  text-decoration:none;
}
.nav a:hover{
  text-decoration:underline;
}

.meta{
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.box{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}

input[type="text"], input[type="number"]{
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
}

button{
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #111827;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
button:hover{ opacity: 0.92; }

.btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.footer{
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.announcement{
  border:1px solid #d7d7d7;
  background:#fafafa;
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:14px;
}

.ad-slot{
  border:1px dashed #d7d7d7;
  background:#fff;
  padding:14px 12px;
  border-radius:10px;
  margin:14px 0;
}

.site-header .nav a.active{
  text-decoration: underline;
  font-weight: 700;
}

.related-box{
  border:1px solid #d7d7d7;
  background:#fafafa;
  padding:14px 14px;
  border-radius:10px;
  margin-top:16px;
}

/* Calculator CTA (injected near end of transport articles) */
.cta-box{
  border:1px solid #d7d7d7;
  background:#ffffff;
  padding:14px 14px;
  border-radius:10px;
  margin-top:16px;
}

.cta-box h3{
  margin:0 0 8px;
  font-size:18px;
}

.cta-box p{
  margin:0 0 10px;
}

.cta-button{
  display:inline-block;
  padding:10px 12px;
  border:1px solid #111;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
}

.related-box h3{
  margin:0 0 10px;
  font-size:18px;
}

.related-box ul{
  margin:0 0 0 18px;
}

/* =========================
   Header Navigation Upgrade
========================= */

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .nav {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 500;
}

.site-header .nav a {
  text-decoration: none;
  color: #1f2937;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.site-header .nav a:hover {
  color: #000;
  border-bottom: 2px solid #cbd5e1;
}

.site-header .nav a.active {
  font-weight: 600;
  border-bottom: 2px solid #111;
  color: #111;
}

/* =========================
   Typography Upgrade
========================= */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: #1f2937;
  background: #f9fafb;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  background: #ffffff;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

h2 {
  font-size: 22px;
  margin-top: 36px;
}

h3 {
  font-size: 18px;
  margin-top: 24px;
}

.meta {
  color: #6b7280;
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  font-weight: 600;
  background: #f3f4f6;
}

.related-box {
  margin-top: 40px;
  padding: 20px;
  border-radius: 10px;
  background: #f3f4f6;
}

/* =========================
   Footer Upgrade
========================= */

.footer {
  margin-top: 60px;
  padding: 40px 0;
  font-size: 0.95rem;
  text-align: center;
}

.footer-links {
  margin: 15px 0;
}

.footer-links a {
  margin: 0 8px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.small {
  font-size: 0.85rem;
}

/* =========================
   Ad slot placeholder (pre-approval friendly)
========================= */

.ad-slot{
  min-height: 120px;        /* keeps layout stable before ads fill */
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot::before{
  content: "Advertisement";
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* =========================
   Homepage cards (v0008)
   ========================= */
.card-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 18px 0;
}
@media (min-width: 860px){
  .card-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}
.card{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}
.card h2{
  margin-top: 0;
}
.button{
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(17,24,39,0.04);
  text-decoration: none;
}
.button:hover{
  text-decoration: none;
  filter: brightness(0.98);
}

/* =========================
   Homepage polish (v0008_patch2)
   Keep changes scoped to the homepage only.
========================= */

body.home{
  background: #f3f4f6;
}

body.home .container{
  background: transparent;
  max-width: 980px;
}

.home-hero{
  padding: 14px 0 6px;
}

.home-hero h1{
  margin-top: 10px;
  font-size: 42px;
  letter-spacing: -0.03em;
}

.lead{
  margin: 8px 0 8px;
  font-size: 18px;
  color: #111827;
}

body.home .meta{
  margin-top: 0;
}

body.home .card-grid{
  margin-top: 18px;
}

body.home .card{
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.home-footnav{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}
