/* ═══════════════════════════════════════════════════
   CalcUK — Global Stylesheet
   Precision Utility Design System
   ═══════════════════════════════════════════════════ */

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

/* ── Base typography ── */
body {
  font-family: 'Inter', sans-serif;
  min-height: max(884px, 100dvh);
}
h1, h2, h3, .headline {
  font-family: 'Manrope', sans-serif;
}

/* ── Header ── */
.calcuk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #f7f9fb;
}
.calcuk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}
.calcuk-brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  color: #00113d;
  letter-spacing: -0.05em;
  font-size: 1.25rem;
  text-decoration: none;
}

/* ── Breadcrumb ── */
.calcuk-breadcrumb {
  font-size: 11px;
  font-weight: 500;
  color: #757681;
}
.calcuk-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.calcuk-breadcrumb a {
  color: #757681;
  text-decoration: none;
  transition: color 0.15s;
}
.calcuk-breadcrumb a:hover {
  color: #00113d;
}
.calcuk-breadcrumb .current {
  color: #00113d;
  font-weight: 600;
}
.calcuk-breadcrumb .sep {
  color: rgba(117, 118, 129, 0.4);
}

/* ── SEO Content Sections ── */
.calcuk-content {
  max-width: 48rem;
}
.calcuk-content h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #00113d;
  margin-bottom: 1rem;
}
.calcuk-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #00113d;
  margin-bottom: 0.25rem;
}
.calcuk-content p {
  font-size: 0.875rem;
  color: #444650;
  line-height: 1.7;
}
.calcuk-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.calcuk-content li {
  font-size: 0.875rem;
  color: #444650;
  line-height: 1.7;
  margin-bottom: 0.375rem;
}
.calcuk-content a {
  color: #3755c3;
  font-weight: 500;
  text-decoration: none;
}
.calcuk-content a:hover {
  text-decoration: underline;
}
.calcuk-content .faq-item {
  margin-bottom: 1rem;
}
.calcuk-content .related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .calcuk-content .related-grid {
    grid-template-columns: 1fr;
  }
}
.calcuk-content .related-card {
  background: #ffffff;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(197, 198, 209, 0.15);
  text-decoration: none;
  transition: background 0.15s;
  display: block;
}
.calcuk-content .related-card:hover {
  background: #f2f4f6;
  text-decoration: none;
}
.calcuk-content .related-card h3 {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}
.calcuk-content .related-card p {
  font-size: 0.75rem;
  color: #757681;
}

/* ── Footer ── */
.calcuk-footer {
  background: #00113d;
  color: rgba(255, 255, 255, 0.7);
  width: 100%;
  padding: 4rem 0 2rem;
  margin-top: 2.5rem;
}
.calcuk-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}
.calcuk-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .calcuk-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calcuk-footer-brand {
    grid-column: span 2;
  }
}
.calcuk-footer-brand a {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}
.calcuk-footer-brand p {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}
.calcuk-footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}
.calcuk-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.calcuk-footer-col li {
  margin-bottom: 0.625rem;
}
.calcuk-footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.calcuk-footer-col a:hover {
  color: #ffffff;
}
.calcuk-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  gap: 1rem;
  flex-wrap: wrap;
}
.calcuk-footer-bottom a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.15s;
}
.calcuk-footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.6);
}
.calcuk-footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ── Page container ── */
.calcuk-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 6rem;
}

/* ── Disclaimer ── */
.calcuk-disclaimer {
  background: #f2f4f6;
  border-top: 1px solid rgba(197, 198, 209, 0.3);
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.calcuk-disclaimer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.calcuk-disclaimer-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(117, 118, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #757681;
  margin-top: 1px;
}
.calcuk-disclaimer p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: #757681;
  margin: 0;
}
.calcuk-disclaimer strong {
  color: #444650;
  font-weight: 600;
}
.calcuk-disclaimer a {
  color: #3755c3;
  text-decoration: none;
  font-weight: 500;
}
.calcuk-disclaimer a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .calcuk-disclaimer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
  .calcuk-disclaimer p {
    font-size: 0.6875rem;
  }
}

/* ═══════════════════════════════════════════════════
   MOBILE OPTIMISATIONS
   ═══════════════════════════════════════════════════ */

/* ── Touch targets — minimum 44px ── */
@media (max-width: 768px) {
  button, select, input[type="number"], input[type="text"], input[type="date"] {
    min-height: 44px;
    font-size: 16px !important; /* prevents iOS zoom on focus */
  }
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757681' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 2rem;
  }
}

/* ── Header mobile ── */
@media (max-width: 640px) {
  .calcuk-header-inner {
    padding: 0.625rem 1rem;
  }
  .calcuk-brand {
    font-size: 1.125rem;
  }
}

/* ── Breadcrumb overflow ── */
@media (max-width: 640px) {
  .calcuk-breadcrumb {
    font-size: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Content sections mobile ── */
@media (max-width: 640px) {
  .calcuk-content {
    max-width: 100%;
  }
  .calcuk-content h2 {
    font-size: 1.25rem;
  }
  .calcuk-content h3 {
    font-size: 0.875rem;
  }
}

/* ── Footer mobile ── */
@media (max-width: 480px) {
  .calcuk-footer {
    padding: 2.5rem 0 1.5rem;
  }
  .calcuk-footer-inner {
    padding: 0 1rem;
  }
  .calcuk-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .calcuk-footer-brand {
    grid-column: span 1;
  }
  .calcuk-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .calcuk-footer-legal {
    justify-content: center;
  }
}

/* ── Smooth scrolling & safe areas ── */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-x: hidden;
}

/* ── Number input — hide spinners on mobile ── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
