/* ============================================
   LP TANK PERMIT GUIDE — Main Stylesheet
   Aesthetic: Industrial-utilitarian, county-office clarity
   Palette: Cream / Deep Navy / Propane Amber
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600;700;900&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&family=Roboto+Mono:wght@400;500&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy:      #12253a;
  --navy-mid:  #1c3a58;
  --navy-light:#2a5275;
  --amber:     #e8820c;
  --amber-lite:#f4a33a;
  --amber-pale:#fff3e0;
  --cream:     #f7f3ec;
  --cream-dark:#ede8df;
  --white:     #ffffff;
  --gray-100:  #f0ece5;
  --gray-300:  #c8c0b2;
  --gray-500:  #8a7f72;
  --gray-700:  #4a4237;
  --text:      #1e1a14;
  --text-light:#5c5248;
  --green:     #2d7d46;
  --red:       #b92b2b;
  --border:    #d4cdc2;

  --font-head: 'Roboto Slab', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  --radius:    4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(18,37,58,0.12);
  --shadow-md: 0 4px 12px rgba(18,37,58,0.15);
  --shadow-lg: 0 8px 32px rgba(18,37,58,0.18);

  --max-width: 1100px;
  --content-width: 780px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-mid); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber); }
ul, ol { padding-left: 1.4rem; }

/* ---- Header ---- */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}
.logo-flame {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px var(--amber-lite));
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1.2;
}
.logo-text span {
  color: var(--amber-lite);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.site-nav .nav-cta {
  background: var(--amber);
  color: var(--navy);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
}
.site-nav .nav-cta:hover { background: var(--amber-lite); color: var(--navy); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--white); font-size: 1.4rem; }

/* ---- Hero ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232,130,12,0.12) 0%, transparent 60%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255,255,255,0.025) 80px
    );
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-lite);
  background: rgba(232,130,12,0.15);
  border: 1px solid rgba(232,130,12,0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 780px;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber-lite);
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-300);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  transition: all 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-lite);
  border-color: var(--amber-lite);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,130,12,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.hero-trust {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-300);
}
.trust-item svg, .trust-item .ti { color: var(--amber-lite); font-size: 1rem; }

/* ---- Quick Answer Bar ---- */
.quick-bar {
  background: var(--amber-pale);
  border-top: 3px solid var(--amber);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.quick-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.qb-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.qb-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.qb-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); line-height: 1; margin-bottom: 0.2rem; }
.qb-val { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--navy); line-height: 1.3; }

/* ---- Page Layout ---- */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.page-wrap.full-width {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
}
.main-content { min-width: 0; }
.sidebar { position: sticky; top: 84px; }

/* ---- Typography ---- */
.main-content h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}
.main-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-mid);
  margin: 1.75rem 0 0.5rem;
}
.main-content h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.25rem 0 0.35rem;
}
.main-content p { margin-bottom: 1rem; }
.main-content ul, .main-content ol { margin-bottom: 1rem; }
.main-content li { margin-bottom: 0.3rem; }

/* ---- Callout boxes ---- */
.callout {
  border-left: 4px solid var(--amber);
  background: var(--amber-pale);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout.info { border-color: var(--navy-mid); background: #eef3f8; }
.callout.warning { border-color: var(--amber); background: var(--amber-pale); }
.callout.success { border-color: var(--green); background: #edf7f0; }
.callout.danger { border-color: var(--red); background: #fdf0f0; }
.callout-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.callout.info .callout-title { color: var(--navy); }
.callout.warning .callout-title { color: var(--amber); }
.callout.success .callout-title { color: var(--green); }
.callout.danger .callout-title { color: var(--red); }
.callout p:last-child { margin-bottom: 0; }

/* ---- Data Tables ---- */
.data-table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  background: var(--white);
}
.data-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.data-table tbody tr:nth-child(even) { background: var(--gray-100); }
.data-table tbody tr:hover { background: var(--amber-pale); }
.data-table tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-yes { background: #d4edda; color: var(--green); }
.tag-no  { background: #fde8e8; color: var(--red); }
.tag-varies { background: var(--amber-pale); color: #a05c00; }
.tag-always { background: #fde8e8; color: var(--red); }

/* ---- Section Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
  transform: translateY(-2px);
  color: inherit;
}
.card-icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
.card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.card-desc { font-size: 0.875rem; color: var(--text-light); line-height: 1.5; }

/* ---- State Grid ---- */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}
.state-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.12s;
  text-align: center;
}
.state-link:hover {
  background: var(--navy);
  color: var(--amber-lite);
  border-color: var(--navy);
}

/* ---- Sidebar Widgets ---- */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--amber);
}
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget ul li { border-bottom: 1px solid var(--border); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  color: var(--navy-mid);
  text-decoration: none;
}
.sidebar-widget ul li a:hover { color: var(--amber); padding-left: 0.35rem; }
.sidebar-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.sidebar-cta h3 { color: var(--amber-lite); border-bottom-color: var(--amber); }
.sidebar-cta p { font-size: 0.875rem; color: var(--gray-300); margin-bottom: 0.75rem; }

/* ---- FAQ Accordion ---- */
.faq-list { margin: 1rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.12s;
}
.faq-question:hover { background: var(--gray-100); }
.faq-question.active { background: var(--navy); color: var(--white); }
.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.faq-question.active .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 1rem 1.25rem 1.1rem;
  font-size: 0.925rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer.open { display: block; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
}
.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.breadcrumb-inner a { color: var(--navy-mid); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--amber); }
.breadcrumb-sep { color: var(--gray-300); }

/* ---- Article Meta ---- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  font-size: 0.825rem;
  color: var(--gray-500);
}
.meta-item { display: flex; align-items: center; gap: 0.3rem; }

/* ---- Page Header ---- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 3px solid var(--amber);
}
.page-header-inner { max-width: var(--max-width); margin: 0 auto; }
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.page-header .page-sub {
  color: var(--gray-300);
  font-size: 1.05rem;
  max-width: 680px;
}

/* ---- Hub Sections ---- */
.hub-section { padding: 3rem 1.5rem; }
.hub-section:nth-child(even) { background: var(--cream-dark); }
.hub-section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { margin-bottom: 1.75rem; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.4rem;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.section-header p { color: var(--text-light); font-size: 1rem; max-width: 580px; }

/* ---- Tool Widget ---- */
.tool-widget {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
}
.tool-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tool-header h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.tool-body { padding: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-700);
}
.form-group select, .form-group input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  appearance: none;
  -webkit-appearance: none;
}
.form-group select:focus, .form-group input:focus {
  outline: 2px solid var(--amber);
  outline-offset: -1px;
  border-color: var(--amber);
}
.tool-result {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
}
.tool-result.show { display: block; }
.result-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-lite);
  margin-bottom: 0.75rem;
}
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; }
.result-item { }
.result-label { font-size: 0.75rem; color: var(--gray-300); margin-bottom: 0.2rem; }
.result-val { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.result-val.highlight { color: var(--amber-lite); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: 3rem 1.5rem 1.5rem;
  border-top: 3px solid var(--amber);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo-text { font-size: 1.05rem; }
.footer-brand p { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.75rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--amber-lite);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col ul li a { color: var(--gray-500); text-decoration: none; font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.disclaimer {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gray-300);
  padding: 0.875rem 1.125rem;
  font-size: 0.825rem;
  color: var(--text-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0 1rem;
}
.disclaimer strong { color: var(--gray-700); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1rem; border-bottom: 2px solid var(--amber); }
  .nav-hamburger { display: block; }
  .header-inner { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .quick-bar-inner { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ---- Ads.txt placeholder ---- */
/* Analytics placeholder in head: see individual pages */

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .sidebar, .breadcrumb { display: none; }
  .page-wrap { display: block; }
  body { background: white; }
}
