/* =============================================================
   Rotary District 9660 IT Help Portal
   Style: Warm and Friendly, top-nav layout
   Australian English comments throughout
   ============================================================= */

/* ---------------------------------------------------------------
   CSS VARIABLES
--------------------------------------------------------------- */
:root {
  --navy:        #17458f;
  --navy-dark:   #0f2f63;
  --gold:        #f7a81b;
  --cranberry:   #d41367;
  --bg:          #faf9f7;
  --card-bg:     #ffffff;
  --border:      #e8e6e2;
  --text:        #1a1a1a;
  --muted:       #555555;
  --radius:      12px;
  --radius-sm:   8px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --topnav-h:    56px;
}

/* ---------------------------------------------------------------
   RESET AND BOX-SIZING
--------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
img.inline, .topnav img, .topnav-mobile-panel img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 0;
}
.topic-card-icon img,
.guide-card-icon img {
  border-radius: 0;
}

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

a:hover {
  color: var(--navy-dark);
}

ul,
ol {
  list-style: none;
}

.main-content > ul,
.main-content > ol,
.main-content > * > ul,
.main-content > * > ol,
.card ul,
.card ol {
  list-style: revert;
  padding-left: 24px;
  margin-bottom: 14px;
}

.main-content ul ul,
.main-content ol ul {
  list-style-type: disc;
}

.main-content > ul > li,
.main-content > ol > li,
.main-content > * > ul > li,
.main-content > * > ol > li,
.card li {
  margin-bottom: 4px;
}

.guide-list,
.guide-list li,
.section-sidebar-links,
.section-sidebar-links li,
.section-mobile-links,
.section-mobile-links li,
.popular-pills,
.popular-pills li,
.anchor-nav ul {
  list-style: none;
  padding-left: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------------------------------------------------------------
   BASE
--------------------------------------------------------------- */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  /* Push content below fixed top nav */
  padding-top: var(--topnav-h);
}

/* ---------------------------------------------------------------
   SKIP LINK (accessibility)
--------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* ---------------------------------------------------------------
   TOP NAVIGATION
--------------------------------------------------------------- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topnav-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Brand: logo and site name */
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.topnav-brand img {
  height: 32px;
  width: auto;
}

.topnav-brand span {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Primary nav links - horizontal row */
.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 16px;
}

/* Reset link styling inside dropdown panels */
.topnav-dd-panel a {
  color: var(--text);
  text-decoration: none;
}

/* Per-topic dropdown items */
.topnav-dd {
  position: relative;
  flex-shrink: 0;
}

.topnav-dd-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.topnav-dd-btn img { width: 16px; height: 16px; }
.topnav-dd-btn > svg,
.topnav-dd-btn > i[data-lucide]:not(.topnav-dd-chevron) { width: 14px; height: 14px; }

.topnav-dd-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topnav-dd-btn.active {
  background: rgba(247, 168, 27, 0.22);
  color: #fff;
}

.topnav-dd-chevron {
  width: 12px !important;
  height: 12px !important;
  opacity: 0.6;
  transition: transform 0.2s;
}

.topnav-dd.open .topnav-dd-chevron {
  transform: rotate(180deg);
}

.topnav-dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  min-width: 260px;
  padding: 8px;
  display: none;
  z-index: 1001;
}

.topnav-dd-panel-right {
  left: auto;
  right: 0;
}

.topnav-dd.open .topnav-dd-panel {
  display: block;
}

.topnav-dd-overview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}

.topnav-dd-overview:hover {
  background: var(--bg);
}

.topnav-dd-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.topnav-dd-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}

.topnav-dd-link:hover {
  background: var(--bg);
  color: var(--navy);
}

.topnav-dd-link svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.topnav-dd-link:hover svg {
  color: var(--navy);
}

.topnav-dd-rich {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}

.topnav-dd-rich:hover {
  background: var(--bg);
}

.topnav-dropdown-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(23, 69, 143, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topnav-dropdown-icon svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
}

.topnav-dropdown-icon img {
  width: 18px;
  height: 18px;
}

.topnav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.topnav-dropdown-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.topnav-dropdown-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

/* Nav search */
.topnav-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.topnav-search-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.topnav-search-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topnav-search-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.topnav-search-field {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;
  transition: width 0.25s ease;
}

.topnav-search.open .topnav-search-field {
  width: 280px;
}

.topnav-search.open .topnav-search-btn {
  display: none;
}

.topnav-search-input {
  width: 100%;
  padding: 7px 12px;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}

.topnav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.topnav-search-input:focus {
  background: #fff;
  border-color: #fff;
  color: var(--text);
}

.topnav-search-input:focus::placeholder {
  color: #aaa;
}

.topnav-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.topnav-search-results.open {
  display: block;
}

/* Support shortcut */
.topnav-support {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.topnav-support:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topnav-support svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Hamburger button - mobile only */
.topnav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.topnav-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.topnav-hamburger svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Mobile slide-down panel */
.topnav-mobile-panel {
  display: none;
  position: fixed;
  top: var(--topnav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-dark);
  z-index: 999;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.topnav-mobile-panel.open {
  display: block;
}

/* Mobile panel search */
.mobile-panel-search {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.mobile-search-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.mobile-search-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile nav links */
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
  padding: 12px 16px;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-nav-link.active {
  border-left: 3px solid var(--gold);
  padding-left: 13px;
}

.mobile-nav-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-icon svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav-icon img {
  width: 18px;
  height: 18px;
}

.mobile-nav-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mobile-nav-label {
  font-weight: 600;
  font-size: 15px;
}

.mobile-nav-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

.mobile-nav-support {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-support .mobile-nav-icon {
  background: rgba(247, 168, 27, 0.2);
}

.mobile-nav-support .mobile-nav-icon svg {
  color: var(--gold);
}

/* ---------------------------------------------------------------
   BREADCRUMBS
--------------------------------------------------------------- */
.breadcrumbs {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.breadcrumbs-sep {
  color: #bbb;
  font-size: 12px;
}

.breadcrumbs-current {
  color: var(--text);
  font-weight: 500;
}

/* ---------------------------------------------------------------
   PAGE LAYOUT
--------------------------------------------------------------- */
.page-layout {
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  gap: 40px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
  max-width: 740px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ---------------------------------------------------------------
   SECTION SIDEBAR
--------------------------------------------------------------- */
.section-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--topnav-h) + 24px);
  max-height: calc(100vh - var(--topnav-h) - 48px);
  overflow-y: auto;
}

.section-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.section-sidebar-links {
  border-left: 2px solid var(--border);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-sidebar-links a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.12s;
  line-height: 1.4;
}

.section-sidebar-links a:hover {
  color: var(--navy);
}

.section-sidebar-links a.active {
  color: var(--navy);
  font-weight: 600;
}

/* Mobile accordion replacement for section sidebar */
.section-mobile {
  display: none;
  margin-bottom: 20px;
}

.section-mobile-toggle {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-mobile-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.section-mobile.open .section-mobile-toggle svg {
  transform: rotate(180deg);
}

.section-mobile-links {
  display: none;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 8px 0;
  background: var(--card-bg);
}

.section-mobile.open .section-mobile-links {
  display: block;
}

.section-mobile-links a {
  display: block;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  transition: background 0.1s;
}

.section-mobile-links a:hover,
.section-mobile-links a.active {
  background: var(--bg);
  color: var(--navy);
  font-weight: 500;
}

/* ---------------------------------------------------------------
   PAGE ELEMENTS
--------------------------------------------------------------- */
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   CARDS
--------------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Two-column topic grid */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.topic-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-card:hover {
  border-color: #c5c2bc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
  color: var(--text);
}

.topic-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(23, 69, 143, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.topic-card-icon img { width: 24px; height: 24px; }
.topic-card-icon svg { width: 20px; height: 20px; color: var(--navy); }

.topic-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  padding: 0;
  border: none;
}

.topic-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.topic-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

.topic-card-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* Guide list and guide cards */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.guide-card:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(23, 69, 143, 0.1);
  color: var(--text);
}

.guide-card-text {
  flex: 1;
}

.guide-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.guide-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.guide-card-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(23, 69, 143, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-card-icon svg { width: 18px; height: 18px; color: var(--navy); }

.guide-card-arrow {
  color: var(--muted);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ---------------------------------------------------------------
   CALLOUT BOXES
--------------------------------------------------------------- */
.callout {
  display: flex;
  gap: 12px;
  border-left: 4px solid;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.55;
}

.callout-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.55;
}

.callout-body strong:first-child {
  display: block;
  margin-bottom: 2px;
}

/* Tip: blue tint */
.callout-tip {
  background: #eef3fc;
  border-color: var(--navy);
  color: #1a2f5a;
}

/* Warning: gold tint */
.callout-warning {
  background: #fef9ec;
  border-color: var(--gold);
  color: #5a3e00;
}

/* Info: grey tint */
.callout-info {
  background: #f4f3f1;
  border-color: #aaa;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   PLATFORM EXPANDER
--------------------------------------------------------------- */
.platform-group {
  margin-bottom: 28px;
}

.platform-group-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.platform-btn {
  background: var(--card-bg);
  border: 2px solid var(--navy);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.platform-btn:hover {
  background: rgba(23, 69, 143, 0.06);
  box-shadow: 0 2px 6px rgba(23, 69, 143, 0.15);
}

.platform-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(23, 69, 143, 0.25);
}

.platform-content {
  display: none;
}

.platform-content.active {
  display: block;
}

/* ---------------------------------------------------------------
   FAQ ACCORDION
--------------------------------------------------------------- */
.faq-group {
  margin-bottom: 28px;
}

.faq-group-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.12s;
}

.faq-question:hover {
  color: var(--navy);
}

/* Chevron icon */
.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron,
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------------------------------------------------------------
   COMPARISON TABLE
--------------------------------------------------------------- */
.comparison-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14px;
  margin-bottom: 24px;
}

.comparison-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
}

.comparison-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) td {
  background: #f6f5f3;
}

.bordered-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14px;
  margin-bottom: 24px;
}

.bordered-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
}

.bordered-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.bordered-table tbody tr:nth-child(even) td {
  background: #f6f5f3;
}

/* Two-column comparison card grid */
.comparison-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.comparison-card-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.comparison-card-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------
   STEP LIST
--------------------------------------------------------------- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.step-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-list-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.step-list-body {
  flex: 1;
  padding-top: 6px;
}

.step-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.step-list-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------------------------------------------------------------
   TEAM GRID
--------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #dde4f0;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 36px;
  font-weight: 700;
}

.team-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.team-card-role {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.team-card-contact {
  font-size: 13px;
}

/* ---------------------------------------------------------------
   PROGRESS STEPPER
--------------------------------------------------------------- */
.progress-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 80px;
}

/* Connector line between steps */
.progress-step + .progress-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(-50%);
  right: 50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress-step.completed + .progress-step::before,
.progress-step.active + .progress-step::before {
  background: var(--navy);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  z-index: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.progress-step.completed .step-circle {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.progress-step.active .step-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.step-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

.progress-step.active .step-label {
  color: var(--navy);
  font-weight: 700;
}

.progress-step.completed .step-label {
  color: var(--navy);
}

/* ---------------------------------------------------------------
   SCREENSHOT PLACEHOLDERS
--------------------------------------------------------------- */
.screenshot-placeholder {
  background: #f4f3f1;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.screenshot-placeholder-label {
  font-weight: 600;
  color: #888;
}

/* ---------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  line-height: 1;
}

.btn:hover {
  background: var(--navy-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(23, 69, 143, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: #e09610;
  color: var(--navy-dark);
  box-shadow: 0 2px 8px rgba(247, 168, 27, 0.3);
}

.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
}

/* ---------------------------------------------------------------
   LANDING PAGE
--------------------------------------------------------------- */
.landing-hero {
  background: var(--navy);
  padding: 48px 24px 40px;
  text-align: center;
  color: #fff;
}
.landing-hero > img {
  height: 40px;
  width: auto;
  margin: 0 auto 16px;
  display: block;
}
.landing-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.landing-hero > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-support {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
}
.landing-hero-support a {
  color: #fff;
  font-weight: 600;
}

/* Search wrapper */
.search-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  background: #fff;
  border-color: #fff;
  color: var(--text);
}

.search-input:focus::placeholder {
  color: #aaa;
}

/* Search icon positioned inside input */
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: color 0.2s;
}

.search-wrap:focus-within .search-icon {
  color: var(--muted);
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  text-align: left;
}

.search-results.open {
  display: block;
}

.search-results-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px 4px;
}

.search-result-item {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background 0.1s;
}

.search-result-item:first-of-type {
  border-top: none;
}

.search-result-item:hover {
  background: var(--bg);
}

.search-result-item-title {
  font-weight: 500;
}

.search-result-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

/* Popular guides section below hero */
.popular-guides {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 0;
  text-align: center;
}

.popular-guides-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}

.popular-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.popular-pills a {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  transition: border-color 0.15s, background 0.15s;
}

.popular-pills a:hover {
  border-color: var(--navy);
  background: rgba(23, 69, 143, 0.04);
  color: var(--navy);
}

/* Landing body - constrained content below hero */
.landing-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.landing-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 40px;
}
.site-footer img {
  height: 32px;
  width: auto;
  margin: 0 auto 8px;
  display: block;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--navy);
}

/* ---------------------------------------------------------------
   TYPOGRAPHY HELPERS
--------------------------------------------------------------- */
p {
  margin-bottom: 14px;
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--muted);
}

.text-navy {
  color: var(--navy);
}

.text-small {
  font-size: 13px;
}

h1, h2, h3, h4, h5 {
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}

h2 {
  font-size: 22px;
  color: var(--navy);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.main-content > h2:first-child,
.card h2,
.card h2:first-child,
.landing-hero h2,
.topic-card h2,
.page-title + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

h3 {
  font-size: 17px;
  margin-top: 28px;
}

h4 {
  font-size: 15px;
  margin-top: 24px;
}

code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  background: #f0eeea;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--cranberry);
}

pre {
  background: #1e1e1e;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin-bottom: 20px;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: #d4d4d4;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   PLATFORM PROMPT
--------------------------------------------------------------- */
.platform-prompt {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------
   FEATURE GRID (e.g. What is Teams)
--------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.feature-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------
   ANCHOR NAV (on-this-page)
--------------------------------------------------------------- */
.anchor-nav {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}

.anchor-nav strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.anchor-nav ul {
  padding-left: 18px;
  list-style: disc;
}

.anchor-nav li {
  margin-bottom: 4px;
}

.anchor-nav a {
  text-decoration: none;
}

.anchor-nav a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   RESPONSIVE: tablet and below (768px)
--------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Hide horizontal nav links, show hamburger */
  .topnav-links {
    display: none;
  }

  .topnav-search {
    margin-left: auto;
    display: none;
  }

  .topnav-support {
    display: none;
  }

  .topnav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* Single column layout */
  .page-layout {
    flex-direction: column;
    padding: 16px 16px 40px;
    gap: 0;
  }

  .main-content {
    max-width: 100%;
  }

  /* Hide sticky sidebar, show mobile accordion */
  .section-sidebar {
    display: none;
  }

  .section-mobile {
    display: block;
  }

  /* Topic grid: two columns still works on tablet but fall to one at 480 */
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Team grid: two columns on tablet */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Comparison card: single column on tablet */
  .comparison-card {
    grid-template-columns: 1fr;
  }

  /* Feature grid: two columns on tablet */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Landing hero: tighter padding */
  .landing-hero {
    padding: 40px 16px 36px;
  }

  .landing-hero h1 {
    font-size: 26px;
  }

  /* Breadcrumbs padding matches page layout */
  .breadcrumbs {
    padding: 12px 16px 0;
  }

  /* Progress stepper: smaller text */
  .step-label {
    font-size: 10px;
  }
}

/* ---------------------------------------------------------------
   RESPONSIVE: small mobile (480px)
--------------------------------------------------------------- */
@media (max-width: 480px) {

  .page-title {
    font-size: 22px;
  }

  .page-layout {
    padding: 12px 12px 32px;
  }

  /* Single column topic grid */
  .topic-grid {
    grid-template-columns: 1fr;
  }

  /* Single column team grid */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Platform tabs: allow wrapping, full-width buttons */
  .platform-tabs {
    flex-direction: column;
  }

  .platform-btn {
    border-radius: var(--radius-sm);
  }

  /* Landing hero */
  .landing-hero {
    padding: 28px 12px 28px;
  }

  .landing-hero h1 {
    font-size: 22px;
  }

  .landing-hero > p {
    font-size: 14px;
  }

  /* Tighter card padding */
  .card {
    padding: 14px 16px;
  }

  /* Step list: smaller circle */
  .step-list-num {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  /* Progress stepper: wrap to multi-line */
  .progress-stepper {
    flex-wrap: wrap;
    gap: 16px;
  }

  .progress-step::before {
    display: none;
  }

  .progress-step {
    flex: 0 0 auto;
    min-width: 64px;
  }

  .topnav-brand span {
    font-size: 13px;
  }

  code {
    font-size: 12px;
  }
}

/* Mermaid flowcharts */
pre.mermaid {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 0;
  background: none;
  border: none;
  overflow-x: auto;
  color: transparent; /* hide raw diagram text until mermaid renders the SVG */
}

pre.mermaid svg {
  max-width: 100%;
}

/* Force diagram text to the site sans font (the <pre> otherwise makes it monospace,
   which is wider than mermaid sizes its node boxes for, clipping the label text). */
pre.mermaid,
pre.mermaid svg,
pre.mermaid text,
pre.mermaid .nodeLabel,
pre.mermaid .edgeLabel,
pre.mermaid span {
  font-family: var(--font) !important;
}
