/* =========================================================
   Travel Procurement Guide — Shared Stylesheet
   ========================================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  background: #FFFFFF;
  color: #2C2C2C;
  line-height: 1.7;
}

/* --- Typography ------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1A2744;
  line-height: 1.3;
}

h1 { font-size: 2rem;    margin-bottom: 1rem; }
h2 { font-size: 1.5rem;  margin-top: 2.5rem; margin-bottom: 0.75rem; border-bottom: 2px solid #E8EDF3; padding-bottom: 0.4rem; }
h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.5rem; color: #2D6A9F; }
h4 { font-size: 1rem;    margin-top: 1.25rem; margin-bottom: 0.4rem; }

p  { margin-bottom: 1.1rem; }
ul, ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }
strong { color: #1A2744; }

a { color: #2D6A9F; text-decoration: underline; }
a:hover { color: #1A2744; }

/* --- Site Header ----------------------------------------- */
.site-header {
  background: #1A2744;
  color: #FFFFFF;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-brand { text-decoration: none; }
.site-brand .brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFFFFF;
  display: block;
  line-height: 1.2;
}
.site-brand .brand-tagline {
  font-size: 0.72rem;
  color: #A8BDD0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a {
  color: #CBD8E8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.site-nav a:hover { color: #FFFFFF; }

/* --- Breadcrumb ------------------------------------------ */
.breadcrumb-bar {
  background: #F0F4F8;
  border-bottom: 1px solid #DDE4ED;
  padding: 0.5rem 1.5rem;
}
.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #5A6A7E;
}
.breadcrumb-inner a { color: #2D6A9F; text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner span { margin: 0 0.4rem; color: #9AABBE; }

/* --- Page Wrapper ---------------------------------------- */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* --- Two-Column Layout ----------------------------------- */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* --- Main Article Content -------------------------------- */
.main-content {
  min-width: 0;
}

.article-meta {
  font-size: 0.8rem;
  color: #7A8A9E;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Sidebar --------------------------------------------- */
.sidebar {
  position: sticky;
  top: 80px;
}

.on-this-page {
  background: #F0F4F8;
  border: 1px solid #DDE4ED;
  border-left: 4px solid #2D6A9F;
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.on-this-page h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5A6A7E;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.on-this-page nav { display: flex; flex-direction: column; gap: 0.1rem; }
.on-this-page nav a {
  font-size: 0.82rem;
  color: #2D6A9F;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid #E8EDF3;
  line-height: 1.4;
}
.on-this-page nav a:last-child { border-bottom: none; }
.on-this-page nav a:hover { color: #1A2744; text-decoration: underline; }

/* --- Callout / Info Boxes -------------------------------- */
.callout {
  background: #F0F4F8;
  border-left: 4px solid #2D6A9F;
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.callout.callout-warning {
  background: #FFF8E6;
  border-left-color: #D4860A;
}
.callout.callout-success {
  background: #EBF5F0;
  border-left-color: #2A8A5A;
}
.callout strong { display: block; margin-bottom: 0.3rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* --- Tables --------------------------------------------- */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #FFFFFF;
}
thead th {
  background: #1A2744;
  color: #FFFFFF;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  padding: 0.65rem 0.9rem;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
tbody tr:nth-child(even) { background: #F7F9FC; }
tbody tr:hover { background: #EEF3F9; }
tbody td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: top;
}
.score-high   { color: #1E7E34; font-weight: 600; }
.score-medium { color: #856404; font-weight: 600; }
.score-low    { color: #C0392B; font-weight: 600; }

/* --- Numbered Framework / Scored Rubrics ----------------- */
.framework-item {
  border: 1px solid #DDE4ED;
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: #FFFFFF;
}
.framework-item .fi-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.fi-number {
  background: #1A2744;
  color: #FFFFFF;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.fi-title { font-weight: 700; color: #1A2744; font-size: 0.95rem; }
.fi-weight { margin-left: auto; font-size: 0.78rem; background: #2D6A9F; color: #FFF; padding: 0.15rem 0.55rem; border-radius: 12px; flex-shrink: 0; }

/* --- Score Badges --------------------------------------- */
.score-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.badge-blue   { background: #E8F0F9; color: #1A5276; }
.badge-green  { background: #EAFAF1; color: #1E7E34; }
.badge-amber  { background: #FEF9E7; color: #7E5009; }
.badge-red    { background: #FDEDEC; color: #922B21; }

/* --- FAQ Section ---------------------------------------- */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 { color: #1A2744; }

.faq-item {
  border-bottom: 1px solid #E2E8F0;
  padding: 1rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: bold;
  color: #1A2744;
  margin-bottom: 0.5rem;
}
.faq-answer { font-size: 0.92rem; color: #3C4A5C; }

/* --- Further Reading ------------------------------------ */
.further-reading {
  background: #1A2744;
  color: #CBD8E8;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.88rem;
}
.further-reading h3 {
  color: #FFFFFF;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: -apple-system, sans-serif;
}
.further-reading ul { padding-left: 1.25rem; margin: 0; }
.further-reading li { margin-bottom: 0.4rem; }
.further-reading a { color: #7FAFD8; }
.further-reading a:hover { color: #FFFFFF; }

/* --- Guide Cards (Homepage) ------------------------------ */
.hero-section {
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 2.5rem 1.5rem 0;
}
.hero-section h1 {
  font-size: 2.1rem;
  color: #1A2744;
  margin-bottom: 1.25rem;
}
.hero-section p { font-size: 1.02rem; color: #3C4A5C; }

.guides-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.guides-section h2 {
  font-size: 1.25rem;
  color: #1A2744;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #E8EDF3;
  padding-bottom: 0.4rem;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.guide-card {
  border: 1px solid #DDE4ED;
  border-top: 4px solid #2D6A9F;
  border-radius: 0 0 6px 6px;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #FFFFFF;
  transition: box-shadow 0.2s, border-top-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.guide-card:hover {
  box-shadow: 0 4px 16px rgba(26,39,68,0.1);
  border-top-color: #1A2744;
  text-decoration: none;
}
.card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2D6A9F;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.guide-card h3 {
  font-size: 0.98rem;
  color: #1A2744;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}
.guide-card p {
  font-size: 0.82rem;
  color: #5A6A7E;
  margin: 0;
  line-height: 1.5;
}

/* --- Site Footer ---------------------------------------- */
.site-footer {
  background: #F0F4F8;
  border-top: 1px solid #DDE4ED;
  padding: 1.75rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #7A8A9E;
}
.site-footer strong { color: #1A2744; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.footer-links a { color: #2D6A9F; text-decoration: none; font-size: 0.78rem; }
.footer-links a:hover { text-decoration: underline; }

/* --- Responsive ----------------------------------------- */
@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .on-this-page { margin-bottom: 2rem; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .header-inner { padding: 0.6rem 1rem; }
  .page-wrapper { padding: 1.5rem 1rem 3rem; }
  .guide-cards { grid-template-columns: 1fr; }
  .hero-section { padding: 1.5rem 1rem 0; }
  .guides-section { padding: 0 1rem 3rem; }
}
