/* travelbrowsequartz.com — subpages (tokens, header and footer come from home.css) */

/* Page head: plain cream, title left, details box right */
.pg-hero-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(28px, 4vw, 48px);
  display: grid; gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
.pg-hero-copy { max-width: 680px; }
.pg-hero-copy h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.pg-lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; margin: 0; }

.pg-tag {
  background: var(--white);
  border-radius: 10px;
  padding: 18px 20px;
  max-width: 380px;
}
.pg-tag dl { margin: 0; display: grid; gap: 10px; }
.pg-tag dt { font-size: .88rem; color: var(--muted); }
.pg-tag dd { margin: 0; font-family: var(--f-head); overflow-wrap: anywhere; }
.pg-tag dd a { color: var(--teal-deep); }
@media (min-width: 900px) {
  .pg-hero-inner { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
}

/* Long legal pages: contents + reading column */
.pg-layout {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}
.pg-toc details { border-top: 1px solid var(--ink); }
.pg-toc summary {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px;
  font-family: var(--f-head); font-weight: 500; font-size: 1rem;
  cursor: pointer; list-style: none;
}
.pg-toc summary::-webkit-details-marker { display: none; }
.pg-toc summary .ico { color: var(--teal); }
.pg-toc ol { list-style: none; margin: 0; padding: 0; }
.pg-toc a {
  display: flex; align-items: center;
  min-height: 44px; padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none; line-height: 1.35;
  font-size: .98rem;
}
.pg-toc a span { display: none; }
.pg-toc a:hover { color: var(--teal); text-decoration: underline; text-decoration-color: var(--amber); }
@media (min-width: 960px) {
  .pg-layout { grid-template-columns: 240px minmax(0, 720px); gap: 72px; justify-content: center; }
  .pg-toc { position: sticky; top: 24px; align-self: start; }
}

.pg-body { max-width: 720px; min-width: 0; }
.pg-note { font-size: .92rem; color: var(--muted); margin-bottom: 4px; }
.pg-sec { padding: 24px 0 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.pg-sec:last-child { border-bottom: 0; }
.pg-sec h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.pg-num { display: none; }
.pg-sec p, .pg-sec li { color: var(--muted); }
.pg-sec ul { margin: 0 0 1em; padding-left: 1.2em; }
.pg-sec li { margin-bottom: 6px; }
.pg-sec li::marker { color: var(--teal); }
.pg-body a { color: var(--teal); overflow-wrap: anywhere; }
.pg-body a:hover { color: var(--teal-deep); }

/* About */
.pg-about {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; gap: 36px;
  grid-template-columns: minmax(0, 1fr);
}
.pg-body-solo .pg-sec:first-child { padding-top: 0; }
.pg-steps { list-style: none; margin: 4px 0 18px; padding: 0; }
.pg-steps li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}
.pg-steps .ico { width: 22px; height: 22px; color: var(--teal); margin-top: 3px; }
.pg-steps h3 { font-size: 1.05rem; margin-bottom: 2px; }
.pg-steps p { font-size: 1rem; }
.pg-glance {
  align-self: start;
  background: var(--band);
  border-radius: 12px;
  padding: 24px 22px;
}
.pg-glance h2 { font-size: 1.25rem; }
.pg-glance ul { list-style: none; margin: 0 0 20px; padding: 0; }
.pg-glance li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
  line-height: 1.4;
}
.pg-glance .ico { color: var(--teal); margin-top: 2px; }
@media (min-width: 960px) {
  .pg-about { grid-template-columns: minmax(0, 720px) 300px; gap: 72px; justify-content: center; }
  .pg-glance { position: sticky; top: 24px; }
}

/* Contact */
.pg-contact {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) var(--gutter) clamp(32px, 5vw, 56px);
  display: grid; gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
.pg-mail {
  background: var(--white);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
}
.pg-mail p { color: var(--muted); max-width: 30em; }
.pg-mail-addr { font-family: var(--f-head); font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.pg-mail-addr a { color: var(--teal-deep); text-underline-offset: 6px; overflow-wrap: anywhere; }
.pg-cards { display: grid; gap: 8px 32px; grid-template-columns: minmax(0, 1fr); }
.pg-card {
  border-top: 2px solid var(--ink);
  padding: 16px 0 8px;
  display: flex; flex-direction: column;
}
.pg-card-ico { display: none; }
.pg-card h3 { font-size: 1.12rem; }
.pg-card p { color: var(--muted); font-size: 1rem; }
.pg-card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-head); font-weight: 500; color: var(--teal-deep);
}
@media (min-width: 720px) { .pg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .pg-contact { grid-template-columns: 400px minmax(0, 1fr); gap: 48px; align-items: start; }
}
.pg-tips { background: var(--band); }
.pg-tips-inner {
  max-width: 760px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.pg-tips h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.pg-tips ul { list-style: none; margin: 0 0 18px; padding: 0; }
.pg-tips li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.pg-tips li .ico { color: var(--teal); margin-top: 4px; }
.pg-tips-note { font-size: .95rem; color: var(--muted); }

/* ---------- Contact form ---------- */
.cform {
  padding: 0 var(--gutter, 20px);
  margin: clamp(40px, 6vw, 72px) 0;
}

.cform-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-top: 4px solid var(--cf-accent);
  border-radius: 18px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.cform-inner h2 {
  margin: 0 0 8px;
}

.cform-intro {
  margin: 0 0 24px;
  opacity: 0.85;
}

.cform-form {
  display: grid;
  gap: 18px;
}

.cform-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cform-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 10px;
}

.cform textarea {
  resize: vertical;
  min-height: 150px;
}

.cform option {
  color: #111111;
  background: #FFFFFF;
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus,
.cform-btn:focus-visible {
  outline: 3px solid var(--cf-accent);
  outline-offset: 2px;
}

.cform-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.cform-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cf-accent);
}

.cform-consent a {
  color: inherit;
  text-decoration: underline;
}

.cform-btn {
  justify-self: start;
  min-height: 50px;
  padding: 0 28px;
  font: inherit;
  font-weight: 700;
  color: var(--cf-on);
  background: var(--cf-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.cform-btn:hover {
  filter: brightness(1.08);
}

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

.cform-status {
  display: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.cform-status:target {
  display: block;
}

.cform-ok {
  background: color-mix(in srgb, var(--cf-accent) 18%, transparent);
  border: 1px solid var(--cf-accent);
}

.cform-err {
  background: color-mix(in srgb, #C0392B 14%, transparent);
  border: 1px solid #C0392B;
}

@media (min-width: 720px) {
  .cform-form {
    grid-template-columns: 1fr 1fr;
  }

  .cform-wide,
  .cform-btn {
    grid-column: 1 / -1;
  }
}
