/* GiftsCardMalls supplemental styles beyond Tailwind. */

:root {
  color-scheme: light;
  --mgm-ink: #0f172a;
  --mgm-teal: #0f766e;
  --mgm-teal-soft: #ccfbf1;
  --mgm-gold: #d99a24;
  --mgm-red: #b42318;
  --mgm-line: #d9e2ec;
}

.eyebrow {
  color: var(--mgm-teal);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  max-width: 760px;
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-title span,
.hero-title strong {
  display: block;
}

.hero-title span {
  font-size: clamp(2rem, 4.6vw, 4.1rem);
}

.hero-title strong {
  margin: 0.08em 0;
  color: var(--mgm-teal);
  font-size: clamp(2.35rem, 5.3vw, 4.9rem);
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.keyword-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  color: #115e59;
  font-size: 0.83rem;
  font-weight: 750;
  line-height: 1.2;
}

.review-note {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 650;
}

.answer-summary {
  background: #f8fafc;
  border-bottom: 1px solid var(--mgm-line);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.answer-grid article {
  min-height: 100%;
  padding: 1.1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
}

.answer-grid span {
  display: inline-flex;
  color: var(--mgm-teal);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.answer-grid h3 {
  margin-top: 0.55rem;
  color: var(--mgm-ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.3;
}

.answer-grid p {
  margin-top: 0.6rem;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.58;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px solid var(--mgm-line);
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.hero-visual img {
  width: min(100%, 520px);
  height: auto;
  display: block;
}

.quick-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--mgm-teal-soft);
  border-radius: 14px;
  background: #f0fdfa;
}

.quick-path__label {
  display: block;
  color: #115e59;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.quick-path__text {
  margin-top: 0.25rem;
  color: #134e4a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.quick-path a,
.callout a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: var(--mgm-teal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-card:focus-within,
.guide-card:focus {
  outline: 2px solid var(--mgm-teal);
  outline-offset: 2px;
}

.brand-card__description {
  min-height: 4.7rem;
  margin-top: 0.9rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

.safety-panel {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--mgm-ink);
  color: #e2e8f0;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.safety-panel h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.safety-panel ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.safety-panel li {
  margin-top: 0.55rem;
  line-height: 1.55;
}

.content-tile,
.guide-card {
  display: block;
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--mgm-line);
  border-radius: 14px;
  background: #fff;
}

.content-tile h2,
.guide-card strong {
  display: block;
  color: var(--mgm-ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.content-tile p,
.guide-card em {
  display: block;
  margin-top: 0.7rem;
  color: #475569;
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.55;
}

.guide-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.guide-card:hover {
  border-color: #5eead4;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.guide-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--mgm-teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.intent-grid,
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.intent-grid article,
.problem-grid div {
  min-height: 100%;
  padding: 1.1rem;
  border: 1px solid var(--mgm-line);
  border-radius: 12px;
  background: #fff;
}

.intent-grid h3,
.problem-grid strong {
  display: block;
  color: var(--mgm-ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.3;
}

.intent-grid p,
.problem-grid span {
  display: block;
  margin-top: 0.55rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.verification-list {
  display: grid;
  gap: 0.8rem;
}

.verification-list div {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #ccfbf1;
  border-radius: 12px;
  background: #f8fafc;
}

.verification-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--mgm-teal);
  color: #fff;
  font-weight: 850;
}

.verification-list p {
  color: #334155;
  line-height: 1.55;
}

.guide-page section {
  margin-top: 2.2rem;
}

.guide-page h2 {
  color: var(--mgm-ink);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
}

.guide-page p,
.guide-page li {
  color: #334155;
  line-height: 1.75;
}

.guide-page p {
  margin-top: 0.85rem;
}

.guide-page ol,
.guide-page ul {
  margin-top: 0.9rem;
  padding-left: 1.25rem;
}

.guide-page ol {
  list-style: decimal;
}

.guide-page ul {
  list-style: disc;
}

.callout {
  padding: 1rem;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fffbeb;
  color: #78350f;
  line-height: 1.6;
}

.callout span {
  font-weight: 800;
}

.callout a {
  margin-top: 0.8rem;
}

input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 1rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 200ms ease;
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

@media (max-width: 760px) {
  .hero-title {
    line-height: 1.08;
  }

  .hero-visual {
    min-height: 220px;
    border-radius: 14px;
  }

  .quick-path {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-path a,
  .callout a {
    width: 100%;
  }

  .brand-card__description {
    min-height: auto;
  }

  .intent-grid,
  .problem-grid,
  .answer-grid {
    grid-template-columns: 1fr;
  }
}
