/* The Career Edit: site-wide polish layer (Oct 2026).
   Loaded last in <head> on every page. Refines typography, spacing, buttons,
   cards, header and footer without changing brand colours, copy or behaviour. */

:root {
  --tce-ivory: #F7F3EA;
  --tce-ink: #183142;
  --tce-eucalyptus: #527C72;
  --tce-eucalyptus-dark: #446A62;
  --tce-sand: #D9CDBE;
  --tce-terracotta: #B4533A;
  --tce-terracotta-dark: #93442F;
  --tce-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --tce-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --tce-radius: 16px;
  --tce-btn-radius: 10px;
  --tce-shadow-sm: 0 1px 2px rgba(24, 49, 66, 0.04), 0 4px 14px rgba(24, 49, 66, 0.05);
  --tce-shadow: 0 1px 2px rgba(24, 49, 66, 0.04), 0 10px 30px rgba(24, 49, 66, 0.07);
  --tce-shadow-lift: 0 2px 4px rgba(24, 49, 66, 0.05), 0 16px 40px rgba(24, 49, 66, 0.10);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
::selection { background: rgba(180, 83, 58, 0.18); }

/* ---------- Headings: one refined serif ---------- */
h1, h2, h3 {
  font-family: var(--tce-serif) !important;
  font-weight: 600;
  letter-spacing: 0;
  word-spacing: 0.02em;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-weight: 600; letter-spacing: -0.015em; }
h3 { letter-spacing: 0; }
h4 { font-family: var(--tce-serif); font-weight: 600; }

/* ---------- Header ---------- */
.tce-header {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
.tce-header + .tce-nav-mobile { border-bottom: 1px solid rgba(217, 205, 190, 0.6); }
.tce-logo,
.navbar > a:first-child,
.navbar .brand {
  font-family: var(--tce-serif) !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
}
.tce-nav a,
.navbar > div > a,
.tce-nav-mobile a {
  font-family: var(--tce-sans) !important;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.tce-nav a:not(.tce-nav-cta):not(.cta):hover,
.navbar > div > a:not([href="/pricing#book-session"]):hover { color: var(--tce-terracotta) !important; }
.tce-nav-toggle {
  border-radius: var(--tce-btn-radius) !important;
  background: #fff !important;
  color: var(--tce-ink);
  min-width: 44px;
  min-height: 44px;
}

/* Inline-styled navbars: a single tidy row that scrolls sideways on small screens */
.navbar > a:first-child { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 860px) {
  .navbar > div:not(.nav-links-desktop) { flex-wrap: nowrap !important; gap: 2px !important; }
  .navbar > div:not(.nav-links-desktop) > a { padding: 8px 9px !important; white-space: nowrap; }
  .navbar > div:not(.nav-links-desktop) > a[href="/pricing#book-session"] { padding: 9px 16px !important; margin-left: 6px; }
}
@media (min-width: 860px) and (max-width: 1099px) {
  .navbar > div:not(.nav-links-desktop) > a { font-size: 0.78rem !important; padding: 8px 6px !important; }
}
.navbar {
  border-bottom: 1px solid rgba(217, 205, 190, 0.6);
}
.nav-links-desktop a { white-space: nowrap; }
/* Pages with a dedicated desktop nav: use the existing menu button until there is room for every link */
@media (max-width: 1199px) {
  .navbar .nav-links-desktop { display: none !important; }
  .navbar .mobile-nav-toggle { display: flex !important; }
}
@media (min-width: 1200px) {
  .nav-links-desktop { gap: 2px !important; }
  .nav-links-desktop a { padding: 8px 10px !important; letter-spacing: 0.01em !important; }
  .nav-links-desktop a.active-link { padding: 8px 14px !important; }
}
@media (max-width: 859px) {
  .navbar {
    padding: 14px 18px !important;
    row-gap: 8px !important;
  }
  .navbar > div:not(.nav-links-desktop) {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    gap: 2px !important;
    padding-bottom: 2px;
    mask-image: linear-gradient(to right, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .navbar > div::-webkit-scrollbar { display: none; }
  .navbar > div:not(.nav-links-desktop) > a { white-space: nowrap; flex: 0 0 auto; padding: 8px 10px !important; }
}

/* ---------- One consistent button style ---------- */
.tce-nav-cta,
.cta,
.btn,
.btn-primary,
.cta-btn,
.hero-cta-primary,
.hero-cta-secondary,
.rd-card a,
.rd-card button,
.rd-consult button,
.about-cta a,
.ce-btn-primary,
.tce-pay,
.navbar a[href="/pricing#book-session"],
a[style*="background:var(--clay)"],
a[style*="background: var(--clay)"],
button[style*="background:var(--clay)"] {
  border-radius: var(--tce-btn-radius) !important;
  font-family: var(--tce-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tce-nav-cta,
.cta,
.btn,
.btn-primary,
.cta-btn,
.hero-cta-primary,
.rd-card a,
.rd-card button,
.rd-consult button,
.about-cta a,
.ce-btn-primary,
.navbar a[href="/pricing#book-session"] {
  box-shadow: 0 1px 2px rgba(24, 49, 66, 0.08), 0 6px 16px rgba(180, 83, 58, 0.18);
}
.tce-nav-cta:hover,
.cta:hover,
.btn:hover:not(:disabled),
.btn-primary:hover,
.cta-btn:hover,
.hero-cta-primary:hover,
.rd-card a:hover,
.rd-card button:hover,
.rd-consult button:hover,
.about-cta a:hover,
.ce-btn-primary:hover,
.navbar a[href="/pricing#book-session"]:hover,
a[style*="background:var(--clay)"]:hover,
button[style*="background:var(--clay)"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(24, 49, 66, 0.08), 0 10px 24px rgba(180, 83, 58, 0.24);
}
.navbar a[href="/pricing#book-session"] { padding: 9px 18px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Cards: softer shadows, rounder corners ---------- */
.card,
.rd-card,
.article-card,
.cta-box,
.cta-card,
.method-card,
.wygb-card,
.form-card,
.price-box,
.status-card,
.pricing-grid > div,
.rd-consult,
.tce-testi-card {
  border-radius: var(--tce-radius) !important;
  box-shadow: var(--tce-shadow-sm);
  border-color: rgba(217, 205, 190, 0.7) !important;
}
.rd-card,
.article-card,
.pricing-grid > div,
.method-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.rd-card:hover,
.article-card:hover,
.pricing-grid > div:hover {
  box-shadow: var(--tce-shadow-lift);
}
.faq-item {
  border-radius: 12px !important;
  border-color: rgba(217, 205, 190, 0.7) !important;
  box-shadow: 0 1px 2px rgba(24, 49, 66, 0.03);
}
#faq-list { gap: 10px !important; }

/* ---------- Generous spacing for shared templates ---------- */
.rd-hero { padding-top: 40px !important; padding-bottom: 16px !important; }
.rd-hero h1 { margin-bottom: 22px !important; }
.rd-body h2 { margin-top: 48px !important; margin-bottom: 18px !important; }
.rd-body h3 { margin-top: 28px !important; }
.rd-services { gap: 22px !important; margin-top: 28px !important; }
.rd-card { padding: 30px 26px !important; }
.rd-consult { padding: 40px 30px !important; margin-top: 64px !important; }
.pricing-grid { gap: 24px !important; }
.about-hero { padding-top: 56px !important; }
.about-body { padding-top: 44px !important; }
.about-body p { line-height: 1.75; }

/* Article pages */
.article-meta { line-height: 1.6; }
.article-meta .article-updated { color: inherit; opacity: 0.85; }

/* ---------- Support pages (CV, LinkedIn, interview prep) ---------- */
.support-content {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--tce-sand);
  color: var(--tce-ink);
}
.support-content h2 {
  font-size: 1.4rem;
  color: var(--tce-ink);
  margin: 36px 0 12px;
}
.support-content h2:first-child { margin-top: 0; }
.support-content h3 {
  font-size: 1.05rem;
  color: var(--tce-ink);
  margin: 22px 0 6px;
}
.support-content p,
.support-content li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--tce-ink);
}
.support-content p { margin-bottom: 12px; }
.support-content ul,
.support-content ol { margin: 0 0 12px 22px; }
.support-content li { margin-bottom: 6px; padding-left: 2px; }
.support-content ul li::marker { color: var(--tce-terracotta); }
.support-content ol li::marker { color: var(--tce-terracotta); font-weight: 600; }
.support-content a { color: var(--tce-terracotta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
input, textarea, select { border-radius: 10px; }
input:focus, textarea:focus, select:focus { border-color: var(--tce-eucalyptus); }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Footer ---------- */
.clarity-footer {
  padding: 56px 24px 40px !important;
  margin-top: 72px !important;
}
.clarity-footer .brand { font-family: var(--tce-serif) !important; font-weight: 600; }
.clarity-footer > div[style*="margin-top"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin-top: 18px !important;
}
.clarity-footer > div[style*="margin-top"] > span { margin: 0 !important; }
.clarity-footer > div[style*="margin-top"] > a { margin: 0 !important; transition: color 0.2s ease; }
.clarity-footer a:hover { color: #fff !important; }
.clarity-footer .footer-copy { line-height: 1.6; }
.disclaimer-footer { padding-top: 32px !important; padding-bottom: 32px !important; line-height: 1.6; }
.disclaimer-footer .links { margin-top: 8px; }

/* ---------- Small screens (375px and up) ---------- */
@media (max-width: 480px) {
  .rd-hero, .rd-body { padding-left: 20px !important; padding-right: 20px !important; }
  .rd-card { padding: 26px 20px !important; }
  .rd-consult { margin-left: 16px !important; margin-right: 16px !important; padding: 32px 20px !important; }
  .pricing-grid > div { padding: 26px 20px !important; }
  .clarity-footer { padding: 44px 20px 32px !important; }
  .hero-cta-primary, .hero-cta-secondary { max-width: 100% !important; }
  table { display: block; overflow-x: auto; }
}
