/* =====================================================================
   Information pages: about, methodology, editorial policy, disclaimer,
   privacy policy, terms and contact. It'sMyZodiac gold / cream theme.
   Fully custom CSS, no utility framework. Every class is prefixed .ip-
   so nothing leaks into other pages. Document text (.article-content)
   is styled by content.css, loaded before this file.
   Tokens come from site-theme.css (--nav-space, --font-display).
   ===================================================================== */

.ip-page { --ip-w: 860px; padding-bottom: 40px; color: var(--site-ink, #252a35); }
.ip-page--wide { --ip-w: 1040px; }

/* ---- Hero --------------------------------------------------------- */
.ip-hero {
  position: relative; margin-top: calc(var(--nav-space, 74px) * -1); overflow: hidden;
  padding: calc(var(--nav-space, 74px) + 18px) 0 28px;
  background: radial-gradient(ellipse 68% 80% at 50% 0%, rgba(255, 255, 255, .98), transparent 76%),
              linear-gradient(145deg, #f8fbff 0%, #f5f8fc 55%, #fff8e7 100%);
}
.ip-hero-inner { width: min(var(--ip-w), calc(100% - 28px)); margin: 0 auto; }
.ip-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; color: #6b7280; font-size: 13px; }
.ip-breadcrumb a { color: #8a6a12; font-weight: 600; text-decoration: none; }
.ip-breadcrumb a:hover { text-decoration: underline; }
.ip-kicker { margin: 0 0 8px; color: #8a6a12; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ip-hero h1 {
  margin: 0; max-width: 780px; color: #252a35; font-family: var(--font-display, Georgia, serif);
  font-size: clamp(28px, 5.4vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance;
}
.ip-lead { max-width: 680px; margin: 16px 0 0; color: #4b5160; font-size: 15px; line-height: 1.75; }
.ip-updated { margin: 14px 0 0; color: #6b7280; font-size: 13px; font-weight: 600; }

/* ---- Layout ------------------------------------------------------- */
.ip-wrap { width: min(var(--ip-w), calc(100% - 28px)); margin: 0 auto; padding-top: 28px; }

/* ---- Document card ------------------------------------------------ */
.ip-doc {
  padding: clamp(22px, 4.5vw, 44px); border: 1px solid #e9e5db; border-radius: 22px; background: #fff;
  box-shadow: 0 10px 28px rgba(32, 42, 59, .06);
}
.ip-section { scroll-margin-top: calc(var(--nav-space, 74px) + 16px); }
.ip-section + .ip-section { margin-top: 2.2rem; }
.ip-section > h2:first-child { margin-top: 0; }
.ip-section > :last-child { margin-bottom: 0; }

/* "On this page" list for the longer legal pages */
.ip-toc { margin: 0 0 24px; padding: 18px 20px; border: 1px solid #f0dca6; border-radius: 18px; background: #fff8e7; }
.ip-toc-title { margin: 0 0 10px; color: #8a6a12; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ip-toc ol { display: grid; gap: 4px 24px; margin: 0; padding: 0; list-style: none; counter-reset: ip-toc; }
.ip-toc li { counter-increment: ip-toc; }
.ip-toc a { display: flex; gap: 10px; padding: 5px 0; color: #4b5160; font-size: 14px; font-weight: 600; line-height: 1.45; text-decoration: none; transition: color .2s ease; }
.ip-toc a::before { content: counter(ip-toc, decimal-leading-zero); flex: 0 0 auto; color: #c08a13; font-weight: 800; }
.ip-toc a:hover { color: #8a6a12; }

/* ---- Methodology steps -------------------------------------------- */
.ip-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.ip-step { padding: 18px; border: 1px solid #e9e5db; border-radius: 18px; background: #fff; box-shadow: 0 5px 14px rgba(32, 42, 59, .045); }
.ip-step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
  color: #211807; font-size: 15px; font-weight: 800; background: linear-gradient(105deg, #fcd34d, #f59e0b 68%, #ea8a0c);
}
.ip-step-title { margin: 0 0 6px; color: #252a35; font-family: var(--font-display, Georgia, serif); font-size: 18px; font-weight: 700; line-height: 1.3; }
.ip-step-text { margin: 0; color: #596274; font-size: 14px; line-height: 1.65; }

/* ---- Related page cards ------------------------------------------- */
.ip-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 32px 0 0; }
.ip-link-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 44px 18px 18px;
  border: 1px solid #e9e5db; border-radius: 18px; background: #fff; color: inherit; text-decoration: none;
  box-shadow: 0 5px 14px rgba(32, 42, 59, .045);
  transition: transform .25s var(--ease-out, ease), border-color .25s ease, box-shadow .25s ease;
}
.ip-link-card:hover { transform: translateY(-3px); border-color: #d8bd72; box-shadow: 0 14px 30px rgba(32, 42, 59, .08); }
.ip-link-title { color: #252a35; font-family: var(--font-display, Georgia, serif); font-size: 17px; font-weight: 700; line-height: 1.3; }
.ip-link-desc { color: #596274; font-size: 13px; line-height: 1.5; }
.ip-link-arrow { position: absolute; top: 50%; right: 18px; color: #c08a13; font-size: 18px; transform: translateY(-50%); transition: transform .25s ease; }
.ip-link-card:hover .ip-link-arrow { transform: translate(3px, -50%); }

/* ---- Buttons ------------------------------------------------------ */
.ip-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 99px; color: #211807; font: inherit; font-size: 15px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  background: linear-gradient(105deg, #fcd34d, #f59e0b 68%, #ea8a0c); box-shadow: 0 9px 20px rgba(216, 156, 41, .28);
  transition: transform .2s var(--ease-out, ease), box-shadow .2s ease, opacity .2s ease;
}
.ip-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(216, 156, 41, .36); }
.ip-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.ip-btn--ghost { border-color: #d8bd72; color: #6b520d; background: #fff; box-shadow: none; }
.ip-btn--ghost:hover { background: #fffaf0; box-shadow: 0 10px 22px rgba(32, 42, 59, .08); }

/* ---- Contact ------------------------------------------------------ */
.ip-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.ip-card {
  padding: clamp(20px, 4vw, 32px); border: 1px solid #e9e5db; border-radius: 22px; background: #fff;
  box-shadow: 0 10px 28px rgba(32, 42, 59, .06);
}
.ip-card-title { margin: 0 0 4px; color: #252a35; font-family: var(--font-display, Georgia, serif); font-size: 24px; font-weight: 700; line-height: 1.25; }
.ip-hint { margin: 0 0 22px; color: #6b7280; font-size: 13px; }

.ip-form { display: grid; gap: 18px; }
.ip-field { display: grid; gap: 7px; }
.ip-label { color: #252a35; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.ip-input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #ddd5c1; border-radius: 14px; background: #fffdf8;
  color: #252a35; font: inherit; font-size: 16px; line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ip-input::placeholder { color: #8a8f99; }
.ip-input:hover { border-color: #cdbf98; }
.ip-input:focus { outline: none; border-color: #d9ae4a; background: #fff; box-shadow: 0 0 0 4px rgba(217, 174, 74, .22); }
.ip-input[aria-invalid="true"] { border-color: #d92d20; background: #fffbfa; }
.ip-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, .14); }
textarea.ip-input { min-height: 150px; resize: vertical; line-height: 1.65; }
select.ip-input {
  padding-right: 42px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a6a12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.ip-error { margin: 0; color: #b42318; font-size: 13px; font-weight: 600; line-height: 1.45; }
.ip-error[hidden] { display: none; }
.ip-field-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ip-count { flex: 0 0 auto; margin-left: auto; color: #6b7280; font-size: 12px; font-weight: 600; }
.ip-count.is-near { color: #b54708; }

.ip-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ip-status { display: none; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.ip-status.is-visible { display: block; }
.ip-status.is-success { border-color: #abefc6; background: #ecfdf3; color: #05603a; }
.ip-status.is-error { border-color: #fecdca; background: #fef3f2; color: #912018; }
.ip-status:focus { outline: 3px solid rgba(217, 174, 74, .5); outline-offset: 2px; }
.ip-status ul { margin: 6px 0 0; padding-left: 18px; }

.ip-side { display: grid; gap: 16px; }
.ip-side-card { padding: 20px; border: 1px solid #e9e5db; border-radius: 18px; background: #fff; box-shadow: 0 5px 14px rgba(32, 42, 59, .045); }
.ip-side-card--gold { border-color: #f0dca6; background: #fff8e7; }
.ip-side-title { margin: 0 0 12px; color: #8a6a12; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ip-side-text { margin: 0 0 14px; color: #4b5160; font-size: 14px; line-height: 1.65; }
.ip-side-text:last-child { margin-bottom: 0; }
.ip-email { color: #6b520d; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; text-underline-offset: 3px; }
.ip-email:hover { color: #8a6a12; }
.ip-side-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ip-side-list a { display: block; padding: 8px 0; border-bottom: 1px dashed #eee6cf; color: #4b5160; font-size: 14px; font-weight: 600; line-height: 1.45; text-decoration: none; transition: color .2s ease; }
.ip-side-list li:last-child a { border-bottom: 0; }
.ip-side-list a:hover { color: #8a6a12; }
.ip-side-list span { display: block; margin-top: 2px; color: #6b7280; font-size: 12px; font-weight: 500; }

.ip-btn:focus-visible, .ip-link-card:focus-visible, .ip-toc a:focus-visible, .ip-side-list a:focus-visible, .ip-email:focus-visible {
  outline: 3px solid rgba(217, 174, 74, .6); outline-offset: 3px;
}

/* ---- Responsive --------------------------------------------------- */
@media (min-width: 640px) {
  .ip-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ip-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ip-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ip-contact { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
}
@media (max-width: 639px) {
  .ip-btn--block { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ip-link-card, .ip-btn, .ip-link-arrow { transition: none; }
  .ip-link-card:hover, .ip-btn:hover { transform: none; }
  .ip-link-card:hover .ip-link-arrow { transform: translateY(-50%); }
}
