/* Guides (/guides/...). Uses site.css + home.css for the header, footer, buttons and type;
   this file only lays out the article. */

.guide { background: var(--paper); }
.gd { padding: 64px 0 40px; }
.gd-col { width: min(680px, calc(100% - 40px)); margin-inline: auto; }
.gd-wide { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }

.gd-crumbs { margin: 0 0 22px; color: var(--soft); font-size: 14px; }
.gd-crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(29, 40, 35, .3); text-underline-offset: 3px; }
.guide h1 { max-width: 15em; margin: 0 0 22px; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; }
.gd-lede { margin: 0 0 18px; color: var(--soft); font-size: 20px; line-height: 1.6; }
.gd-meta { margin: 0; color: var(--soft); font-size: 14px; }

.gd-figure { margin: 44px auto; }
.gd-figure img { width: 100%; height: auto; border-radius: 3px; background: #ddd8cb; }
.gd-figure.gd-crop img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 42% 40%; }
.gd-figure figcaption { width: min(680px, 100%); margin: 12px auto 0; color: var(--soft); font-family: var(--display); font-size: 18px; font-style: italic; line-height: 1.4; }

.gd-body { font-size: 18px; line-height: 1.75; }
.gd-body p, .gd-body ul, .gd-body ol { margin: 0 0 20px; }
.gd-body h2 { margin: 56px 0 16px; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.gd-body h3 { margin: 34px 0 10px; font-size: 26px; }
.gd-body ul, .gd-body ol { padding-left: 1.2em; }
.gd-body li { margin-bottom: 8px; padding-left: 4px; }
.gd-body li::marker { color: var(--gold-deep); }
.gd-body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(29, 40, 35, .35); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .3s ease; }
.gd-body a:hover { text-decoration-color: currentColor; }
.gd-body strong { font-weight: 600; }
.gd-body blockquote { margin: 0 0 20px; padding: 2px 0 2px 20px; border-left: 2px solid var(--gold); font-family: var(--display); font-size: 23px; font-style: italic; line-height: 1.4; }

/* "Before you print" checklist */
.gd-check { margin: 8px 0 24px; padding: 0; list-style: none; }
.gd-body .gd-check li { position: relative; margin: 0; padding: 12px 0 12px 36px; border-top: 1px solid var(--hair); }
.gd-body .gd-check li:last-child { border-bottom: 1px solid var(--hair); }
.gd-check li::before { position: absolute; top: 17px; left: 2px; width: 18px; height: 18px; border: 1px solid var(--gold-deep); border-radius: 50%; content: ""; }
.gd-check li::after { position: absolute; top: 22px; left: 8px; width: 7px; height: 4px; border-bottom: 1.5px solid var(--gold-deep); border-left: 1.5px solid var(--gold-deep); content: ""; transform: rotate(-45deg); }

/* Option blocks in the comparison guide */
.gd-option { margin: 0 0 8px; }
.gd-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0 0 20px; }
.gd-pros-cons > div { padding-top: 10px; border-top: 1px solid var(--hair); }
.gd-pros-cons h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.gd-body .gd-pros-cons p { margin: 0 0 12px; font-size: 17px; line-height: 1.65; }

/* Comparison table: scrolls sideways on phones, first column stays put */
.gd-table-wrap { margin: 28px auto 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); }
.gd-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.gd-table th, .gd-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.gd-table thead th { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.2; }
.gd-table tbody th { position: sticky; left: 0; z-index: 1; width: 150px; background: var(--paper); font-weight: 600; }
.gd-table tr:last-child th, .gd-table tr:last-child td { border-bottom: 0; }
.gd-swipe { display: none; }
.gd-note { width: min(1040px, calc(100% - 40px)); margin: 0 auto 36px; color: var(--soft); font-size: 14px; }

/* Closing call to action */
.gd-cta { margin: 64px auto 0; padding: 48px clamp(24px, 6vw, 64px); border-radius: 6px; color: var(--on-night); background: var(--night); }
.gd-cta h2 { margin: 0 0 12px; color: var(--on-night); font-size: clamp(32px, 3.6vw, 46px); }
.gd-cta p { max-width: 34em; margin: 0 0 26px; color: var(--on-night-soft); font-size: 17px; }
.gd-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.gd-more { margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--hair); }
.gd-more h2 { margin: 0 0 12px; font-size: 28px; }
.gd-more a { font-size: 18px; }

/* /partners: the page for venues and planners reuses the guide layout */
.pt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.pt-section { margin: 64px auto 8px; }
.pt-section > h2 { margin: 0 0 28px; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.pt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.pt-steps li { padding-top: 18px; border-top: 1px solid var(--ink); counter-increment: step; }
.pt-steps li::before { display: block; margin-bottom: 12px; color: var(--gold-deep); font-family: var(--display); font-size: 22px; font-style: italic; content: "0" counter(step); }
.pt-steps h3, .pt-why h3 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; }
.pt-steps p, .pt-why p { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.65; }
.pt-url { color: var(--ink); font-weight: 600; white-space: nowrap; }
.pt-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.pt-why > div { padding-top: 18px; border-top: 1px solid var(--hair); }
.partners .gd-body h2 { margin-top: 64px; }
.partners .gd-body h3 { margin: 26px 0 6px; font-size: 24px; }
.partners .gd-body h3 + p { margin-bottom: 0; }
.pt-mail { color: var(--on-night); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }

@media (max-width: 800px) {
  .pt-section { margin-top: 48px; }
  .pt-steps, .pt-why { grid-template-columns: 1fr; gap: 28px; }
  .pt-actions { align-items: stretch; flex-direction: column; }
  .pt-actions .ln { align-self: flex-start; }
  .partners .gd-body h2 { margin-top: 48px; }
}

@media (max-width: 800px) {
  .gd { padding: 36px 0 24px; }
  .gd-lede { font-size: 18px; }
  .gd-figure { margin: 32px auto; }
  .gd-figure.gd-full { width: 100%; }
  .gd-figure.gd-full img { border-radius: 0; }
  .gd-figure figcaption { width: calc(100% - 40px); font-size: 17px; }
  .gd-body { font-size: 17px; }
  .gd-body h2 { margin-top: 44px; }
  .gd-pros-cons { grid-template-columns: 1fr; }
  .gd-swipe { display: block; width: calc(100% - 40px); margin: 24px auto -16px; color: var(--soft); font-size: 14px; }
  .gd-cta { width: 100%; border-radius: 0; }
  .gd-cta-actions { align-items: stretch; flex-direction: column; }
  .gd-cta-actions .button { width: 100%; }
  .gd-cta-actions .ln { align-self: flex-start; }
}
