/* TN Stone — Resources section stylesheet
   Palette: dark charcoal (#1C1C1C) + warm brass/gold accent
   Drop this file at /assets/resources.css on the live server
*/

:root{
  --charcoal: #1c1c1c;
  --charcoal-alt: #232323;
  --panel: #262626;
  --border: #3a3a3a;
  --ink: #ece7df;
  --ink-muted: #b7b0a4;
  --brass: #c9a227;
  --brass-light: #e0c15a;
}

*{ box-sizing: border-box; }

body.tn-resources{
  margin: 0;
  background: var(--charcoal);
  color: var(--ink);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
}

.tn-wrap{
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.tn-header{
  background: var(--charcoal);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.tn-header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tn-logo{
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--brass);
  text-decoration: none;
  font-weight: bold;
}
.tn-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
}
.tn-nav a{
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.tn-nav a:hover, .tn-nav a.active{
  color: var(--brass-light);
}

/* ---------- Breadcrumb ---------- */
.tn-breadcrumb{
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 28px 0 6px;
}
.tn-breadcrumb a{ color: var(--brass); text-decoration: none; }
.tn-breadcrumb a:hover{ text-decoration: underline; }

/* ---------- Typography ---------- */
.tn-article h1{
  font-size: 2rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 6px 0 18px;
  border-bottom: 2px solid var(--brass);
  padding-bottom: 14px;
}
.tn-article h2{
  font-size: 1.4rem;
  color: var(--brass-light);
  margin-top: 44px;
  margin-bottom: 14px;
}
.tn-article h3{
  font-size: 1.12rem;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
  border-left: 3px solid var(--brass);
  padding-left: 10px;
}
.tn-article p{ color: var(--ink); margin: 0 0 16px; }
.tn-article ul, .tn-article ol{ margin: 0 0 16px; padding-left: 22px; }
.tn-article li{ margin-bottom: 8px; }
.tn-article strong{ color: var(--brass-light); }
.tn-article a{ color: var(--brass-light); }
.tn-article hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Article images */
.tn-article figure{
  margin: 24px 0;
}
.tn-article figure img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.tn-article figcaption{
  color: var(--ink-muted);
  font-size: 0.82rem;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* Key takeaways box */
.tn-callout{
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brass);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
}
.tn-callout h2, .tn-callout p{ margin-top: 0; }
.tn-callout ul{ margin-bottom: 0; }

/* Table */
.tn-table-wrap{ overflow-x: auto; margin: 20px 0; }
.tn-article table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--panel);
}
.tn-article th, .tn-article td{
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.tn-article th{
  background: #2f2b1c;
  color: var(--brass-light);
  font-weight: normal;
}

/* CTA block */
.tn-cta{
  background: linear-gradient(135deg, #2a2418, #1c1c1c);
  border: 1px solid var(--brass);
  border-radius: 6px;
  padding: 26px 28px;
  margin: 36px 0;
  text-align: center;
}
.tn-cta p{ margin-bottom: 18px; color: var(--ink); }
.tn-btn{
  display: inline-block;
  background: var(--brass);
  color: #1c1c1c;
  padding: 12px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}
.tn-btn:hover{ background: var(--brass-light); }

/* Resource cards (hub page) */
.tn-card-group{ margin: 18px 0 8px; }
.tn-card{
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 16px 20px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.tn-card:hover{ border-color: var(--brass); }
.tn-card-title{
  color: var(--brass-light);
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.tn-card-desc{ color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

/* Footer */
.tn-footer{
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 30px 0 50px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
}
.tn-footer a{ color: var(--brass); text-decoration: none; }

/* Related guides section */
.related-guides{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 26px;
  margin: 36px 0;
}
.related-guides h2{
  color: var(--brass-light);
  font-size: 1.1rem;
  margin: 0 0 14px;
  border-bottom: none;
}
.related-guides ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.related-guides li{ margin: 0; }
.related-guides a{
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  border-left: 2px solid var(--brass);
  padding-left: 10px;
  display: block;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.related-guides a:hover{
  color: var(--brass-light);
  border-color: var(--brass-light);
}
@media (max-width: 640px){
  .related-guides ul{ grid-template-columns: 1fr; }
}

/* ---------- New hub layout: hero, topic cards, featured guides ---------- */
.resources-hero{
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 10px;
  text-align: center;
}
.resources-hero h1{
  font-size: 2rem;
  color: var(--ink);
  margin: 0 0 14px;
  border-bottom: none;
}
.resources-hero p{
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

.resources-topic-cards{
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.topic-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}
.topic-card h2{
  color: var(--brass-light);
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.topic-card > p{
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}
.topic-card ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-card li{
  margin-bottom: 8px;
}
.topic-card li a{
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 2px solid var(--brass);
  padding-left: 10px;
  display: block;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.topic-card li a:hover{
  color: var(--brass-light);
  border-color: var(--brass-light);
}

.featured-guides, .latest-guides{
  max-width: 1100px;
  margin: 50px auto 0;
  padding: 0 24px;
}
.featured-guides h2, .latest-guides h2{
  color: var(--brass-light);
  font-size: 1.4rem;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--brass);
  padding-bottom: 12px;
}
.guide-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.guide-grid article{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 18px 20px;
  transition: border-color 0.15s ease;
}
.guide-grid article:hover{
  border-color: var(--brass);
}
.guide-grid h3{
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.guide-grid h3 a{
  color: var(--brass-light);
  text-decoration: none;
}
.guide-grid h3 a:hover{
  text-decoration: underline;
}
.guide-grid p{
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin: 0;
}

.latest-guides p{
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.resources-cta{
  max-width: 860px;
  margin: 50px auto 0;
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(135deg, #2a2418, #1c1c1c);
  border: 1px solid var(--brass);
  border-radius: 6px;
}
.resources-cta h2{
  color: var(--ink);
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.resources-cta p{
  color: var(--ink-muted);
  margin: 0 0 6px;
}
.resources-cta a{
  color: var(--brass-light);
  font-weight: bold;
  text-decoration: none;
}
.resources-cta a:hover{
  text-decoration: underline;
}

@media (max-width: 900px){
  .resources-topic-cards, .guide-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .tn-header-inner{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .tn-nav{ gap: 12px; font-size: 0.85rem; }
  .tn-article h1{ font-size: 1.6rem; }
}

/* Common questions module (guide -> homepage FAQ deep link) */
.common-questions{
  background: #2f2b1c;
  border: 1px solid var(--brass);
  border-radius: 6px;
  padding: 20px 26px;
  margin: 28px 0;
}
.common-questions h2{
  color: var(--brass-light);
  font-size: 1.05rem;
  margin: 0 0 12px;
  border-bottom: none;
}
.common-questions h2::before{
  content: "❓ ";
}
.common-questions ul{
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.common-questions li{ margin-bottom: 8px; }
.common-questions a{
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
}
.common-questions a:hover{ color: var(--brass-light); }
.see-all-faqs{
  display: inline-block;
  color: var(--brass-light) !important;
  font-size: 0.88rem;
  font-weight: bold;
  text-decoration: none;
}
.see-all-faqs:hover{ text-decoration: underline; }

/* Hub-level FAQ teaser (Module C) */
.hub-faq-teaser{
  text-align: center;
  padding: 20px 24px;
  margin: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hub-faq-teaser h2{ border-bottom: none; margin-bottom: 8px; }
.hub-faq-teaser p{ color: var(--ink-muted); margin: 0; }
.hub-faq-teaser a{ color: var(--brass-light); }
