/* Federal Tax Controversies — federaltaxcontroversies.com
   Brand: Navy #0F2A44, Gold #B9975B, Slate #334155, White.
   Clean, calm, professional. Works on phones. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #1a2a3a;
  background: #ffffff;
  line-height: 1.6;
}

/* ---------- Header / navigation ---------- */

header { background: #0f2a44; padding: 0.6rem 1.5rem; }
header nav { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
header nav a { color: #ffffff; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: 0.95rem; }
header nav a:hover { text-decoration: underline; }
header nav a.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: bold; font-size: 1.05rem; margin-right: auto; }
header nav a.logo:hover { text-decoration: none; }
header nav a.logo img { height: 40px; width: 40px; border-radius: 4px; }
header nav a.nav-cta { background: #b9975b; color: #0f2a44; padding: 0.4rem 0.8rem; border-radius: 4px; font-weight: bold; }
header nav a.nav-cta:hover { text-decoration: none; background: #c9ad7a; }
header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Layout ---------- */

main { max-width: 960px; margin: 0 auto; padding: 0 1.5rem 2rem; }
section { padding: 2rem 0; border-bottom: 1px solid #e0e0e0; }
section:last-child { border-bottom: none; }

.hero { background: #f2f5f8; margin: 0 -1.5rem; padding: 2.5rem 1.5rem; border-bottom: 3px solid #b9975b; }
.hero h1 { font-size: 2rem; line-height: 1.25; margin-top: 0; color: #0f2a44; }
.hero-contact { font-family: Arial, Helvetica, sans-serif; }

.page-intro { border-bottom: 3px solid #b9975b; }
.page-intro h1 { color: #0f2a44; font-size: 1.9rem; line-height: 1.25; margin-bottom: 0.5rem; }
.page-intro p { font-size: 1.05rem; }

h2 { color: #0f2a44; font-size: 1.5rem; }
h3 { color: #0f2a44; margin-bottom: 0.25rem; }

a { color: #0f2a44; }

.button, button[type="submit"] {
  display: inline-block;
  background: #0f2a44;
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
}
.button:hover, button[type="submit"]:hover { background: #1b3f61; }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.cards li { border: 1px solid #d5dde6; border-radius: 6px; padding: 1rem 1.25rem; background: #ffffff; }
.cards p { margin-top: 0.25rem; }

.article-list { list-style: none; padding: 0; }
.article-list li { border: 1px solid #d5dde6; border-radius: 6px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.article-list h3 { margin-top: 0; }
.article-list .byline { font-family: Arial, Helvetica, sans-serif; font-size: 0.9rem; color: #334155; }

/* ---------- Articles (full text) ---------- */

.article { max-width: 760px; }
.article h1 { color: #0f2a44; font-size: 1.8rem; line-height: 1.3; margin-bottom: 0.5rem; }
.article .byline { font-family: Arial, Helvetica, sans-serif; font-size: 0.95rem; color: #334155; margin-top: 0; padding-bottom: 1rem; border-bottom: 3px solid #b9975b; }
.article h2 { font-size: 1.35rem; margin-top: 2rem; }
.article sup a { text-decoration: none; color: #0f2a44; font-family: Arial, Helvetica, sans-serif; }
.article sup a:hover { text-decoration: underline; }

.endnotes { margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid #0f2a44; font-size: 0.9rem; }
.endnotes h2 { font-size: 1.2rem; }
.endnotes ol { padding-left: 1.5rem; }
.endnotes li { margin-bottom: 0.5rem; overflow-wrap: break-word; }
.endnotes li:target { background: #f2f5f8; }
.backref { text-decoration: none; font-family: Arial, Helvetica, sans-serif; margin-left: 0.25rem; }

/* ---------- Forms ---------- */

form label { display: block; margin-bottom: 1rem; font-family: Arial, Helvetica, sans-serif; }
form input, form textarea { display: block; width: 100%; max-width: 480px; margin-top: 0.25rem; padding: 0.5rem; border: 1px solid #999; border-radius: 4px; font-size: 1rem; font-family: Arial, Helvetica, sans-serif; }
.form-note, footer p { font-size: 0.9rem; color: #555; }
#formMsg { font-family: Arial, Helvetica, sans-serif; }

/* ---------- Footer ---------- */

footer { max-width: 960px; margin: 0 auto; padding: 1.5rem; border-top: 3px solid #b9975b; }
footer .footer-logo { max-width: 300px; height: auto; display: block; margin-bottom: 1rem; }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .hero h1, .page-intro h1 { font-size: 1.6rem; }
  header nav a.logo { font-size: 0.95rem; }
  .article h1 { font-size: 1.5rem; }
}
