/* MEDIA MAJESTIC LTD — The Post
   Custom stylesheet layered on top of the Tailwind CDN build.
   Keep this file small: structural layout lives in Tailwind utility
   classes inline on the markup; this file only holds things Tailwind
   utilities can't express cleanly (fonts, focus rings, components
   that need custom shapes, the accordion, the cookie banner). */

:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background-color: #ffffff;
  color: #14201a;
}

h1, h2, h3, .font-display {
  font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* Visible focus states everywhere, keyboard and mouse alike */
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #14261f;
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background-color: #cfe6d9;
  color: #14261f;
}

/* ---------- Ad ribbon (first visible element, advertorial only) ---------- */
.ribbon {
  background-color: #14261f;
  color: #eaf4ee;
}

/* ---------- Header / nav ---------- */
.site-logo {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
}

.nav-panel {
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.nav-panel[data-open="false"] {
  display: none;
}

@media (min-width: 768px) {
  .nav-panel[data-open="false"] {
    display: flex;
  }
}

.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: #14261f;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.hamburger-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background-color: #14261f;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Promo / CTA banner (mint, mirrors reference announcement bar) --- */
.cta-banner {
  background-color: #e7f2ec;
  border: 1px solid #bfe0ce;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #14261f;
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  min-height: 44px;
  transition: transform 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover {
  background-color: #234939;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #14261f;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid #14261f;
  padding: 0.8rem 1.65rem;
  min-height: 44px;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  text-align: center;
}

.btn-secondary:hover {
  background-color: #14261f;
  color: #ffffff;
}

/* ---------- Section kicker / eyebrow ---------- */
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- In-article jump dropdown ---------- */
.jump-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2314261f' stroke-width='2'><path d='M5 7l5 6 5-6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  appearance: none;
  -webkit-appearance: none;
}

/* ---------- Media frames ---------- */
.media-frame {
  overflow: hidden;
  background-color: #eef1ee;
  position: relative;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Callout / quote box ---------- */
.quote-box {
  background-color: #f3f7f4;
  border-left: 4px solid #14261f;
}

/* ---------- Checklists ---------- */
.check-item, .limit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.check-icon, .limit-icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.check-icon {
  background-color: #dff3e7;
  color: #1f8a54;
}

.limit-icon {
  background-color: #fbead2;
  color: #b45309;
}

/* ---------- Steps list ---------- */
.step-item {
  counter-increment: step;
}

.step-list {
  counter-reset: step;
}

.step-number {
  font-family: "Space Grotesk", sans-serif;
}

/* ---------- FAQ accordion (shape borrowed from accent reference) ---------- */
.accordion-item {
  background-color: #ffffff;
  border: 1px solid #e4e8e5;
  border-radius: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.accordion-item:hover {
  border-color: #bfe0ce;
}

.accordion-item summary {
  cursor: pointer;
  list-style: none;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-chevron {
  transition: transform 0.2s ease;
  flex: none;
}

.accordion-item[open] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-item[open] {
  box-shadow: 0 8px 24px -12px rgba(20, 38, 31, 0.25);
  border-color: #bfe0ce;
}

/* ---------- Legal / small print ---------- */
.small-print {
  background-color: #f3f7f4;
  border-top: 1px solid #e4e8e5;
  border-bottom: 1px solid #e4e8e5;
}

.small-print a {
  color: #14261f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer colophon ---------- */
.colophon {
  background-color: #14261f;
  color: #d9e6df;
}

.colophon a {
  color: #eaf4ee;
  text-decoration: none;
}

.colophon a:hover,
.colophon a:focus-visible {
  text-decoration: underline;
}

.colophon__meta-links a {
  display: inline-block;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background-color: #14261f;
  color: #eaf4ee;
  box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.35);
}

.cookie-banner[hidden] {
  display: none;
}

/* Keep the fixed cookie banner from covering the last content on the page */
body.has-cookie-banner {
  padding-bottom: 7.5rem;
}

@media (min-width: 640px) {
  body.has-cookie-banner {
    padding-bottom: 4.5rem;
  }
}

.cookie-banner .btn-primary {
  background-color: #eaf4ee;
  color: #14261f;
}

.cookie-banner .btn-primary:hover {
  background-color: #ffffff;
}

.cookie-banner .btn-secondary {
  border-color: #eaf4ee;
  color: #eaf4ee;
}

.cookie-banner .btn-secondary:hover {
  background-color: #eaf4ee;
  color: #14261f;
}

/* Prevent any accidental horizontal overflow from long unbroken strings */
.prose-body {
  overflow-wrap: break-word;
  word-break: break-word;
}
