/* ==========================================================================
   V3 Content — shared styles for pages/posts converted off Elementor
   Namespace: .sv3-  (loaded only when post has _sv3_converted meta)
   Brand: ink #1a1a2e · red #D81818 · yellow #F0D818
   ========================================================================== */

.sv3-content { color: #1a1a2e; line-height: 1.6; }
.sv3-content h1, .sv3-content h2, .sv3-content h3, .sv3-content h4 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
  color: #1a1a2e; text-transform: none;
}
.sv3-content h2 { margin: 1.6em 0 .5em; }
.sv3-content h3 { margin: 1.3em 0 .4em; }
.sv3-content h2 em, .sv3-content h3 em { font-style: normal; color: #D81818; }
.sv3-content a { color: #D81818; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.sv3-content a:hover { color: #1a1a2e; }

/* Buttons (match trl3-btn) */
.sv3-btn-row { margin: 1.4em 0; }
.sv3-content .sv3-btn,
.sv3-content .sv3-btn:link,
.sv3-content .sv3-btn:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 13px; font-weight: 800;
  border-radius: 2px; text-decoration: none; line-height: 1;
  text-transform: uppercase; letter-spacing: .12em;
  background: #D81818; color: #fff; border: 2px solid #D81818;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.sv3-content .sv3-btn:hover { background: #1a1a2e; border-color: #1a1a2e; color: #fff; transform: translateY(-1px); }

/* Divider */
.sv3-hr { border: 0; border-top: 2px solid #1a1a2e; margin: 2.5em 0; opacity: .9; }

/* Figures / images */
.sv3-figure { margin: 1.5em 0; }
.sv3-figure img, .sv3-img { max-width: 100%; height: auto; border-radius: 2px; }
.sv3-figure figcaption { margin-top: 6px; font-size: .75rem; line-height: 1.2; color: #666; }

/* Static gallery grid (replaces galleries + carousels) */
.sv3-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.6em 0;
}
.sv3-gallery figure { margin: 0; }
.sv3-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; border-radius: 2px; display: block; }
@media (max-width: 720px) { .sv3-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Multi-column sections */
.sv3-cols { display: grid; gap: 28px; margin: 1.4em 0; align-items: start; }
.sv3-cols-2 { grid-template-columns: 1fr 1fr; }
.sv3-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sv3-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .sv3-cols { grid-template-columns: 1fr !important; } }

/* FAQ / accordion → native details */
.sv3-faq { margin: 1.6em 0; }
.sv3-faq-item { border: 2px solid #1a1a2e; border-radius: 2px; margin-bottom: 10px; background: #fff; }
.sv3-faq-item summary {
  cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 800; font-size: 1rem;
  color: #1a1a2e; list-style: none; position: relative;
}
.sv3-faq-item summary::-webkit-details-marker { display: none; }
.sv3-faq-item summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-weight: 800; font-size: 1.2rem; color: #D81818;
}
.sv3-faq-item[open] summary::after { content: '\2212'; }
.sv3-faq-item .sv3-faq-answer { padding: 0 18px 16px; }

/* Table of contents */
.sv3-toc { margin: 1.6em 0; }
.sv3-toc details { border: 2px solid #1a1a2e; border-radius: 2px; padding: 14px 18px; background: #fff; }
.sv3-toc summary {
  cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase;
  color: #1a1a2e; list-style: none; display: inline-flex; align-items: center; gap: 10px;
}
.sv3-toc summary::-webkit-details-marker { display: none; }
.sv3-toc summary::before { content: ''; width: 36px; height: 3px; background: #D81818; display: inline-block; }
.sv3-toc ul { margin: 12px 0 0; padding-left: 1.1em; }
.sv3-toc li { margin: 4px 0; }
.sv3-toc li.sv3-toc-sub { margin-left: 1.1em; font-size: .92rem; }
.sv3-toc a { text-decoration: none; }
.sv3-toc a:hover { text-decoration: underline; }

/* Icon lists */
.sv3-list { padding-left: 1.2em; }
.sv3-list li { margin: 6px 0; }

/* Video / map embeds */
.sv3-video { position: relative; aspect-ratio: 16/9; margin: 1.6em 0; }
.sv3-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 2px; }

/* Anchor offsets for sticky headers */
.sv3-anchor, .sv3-content h2[id], .sv3-content h3[id] { scroll-margin-top: 90px; }

/* ===== Gift Certificate form (GF 33 prod / 32 local) — V3 brand ===== */
#gform_wrapper_33, #gform_wrapper_32 { max-width: 760px; }
#gform_wrapper_33 .gfield_label, #gform_wrapper_32 .gfield_label { font-weight: 700; color: #1a1a2e; }
#gform_wrapper_33 .gfield_radio, #gform_wrapper_32 .gfield_radio { display: grid; gap: 10px; margin: 6px 0; }
#gform_wrapper_33 .gfield_radio .gchoice, #gform_wrapper_32 .gfield_radio .gchoice {
  border: 2px solid #cfcfd6; border-radius: 2px; padding: 12px 16px; background: #fff;
  transition: border-color .15s, background .15s;
}
#gform_wrapper_33 .gfield_radio .gchoice:hover, #gform_wrapper_32 .gfield_radio .gchoice:hover { border-color: #D81818; }
#gform_wrapper_33 .gfield_radio .gchoice:has(input:checked), #gform_wrapper_32 .gfield_radio .gchoice:has(input:checked) {
  border-color: #D81818; background: #fff5f5;
}
#gform_wrapper_33 .gfield_radio label, #gform_wrapper_32 .gfield_radio label { font-weight: 600; color: #1a1a2e; cursor: pointer; }
#gform_wrapper_33 input[type=text], #gform_wrapper_33 input[type=email], #gform_wrapper_33 textarea,
#gform_wrapper_32 input[type=text], #gform_wrapper_32 input[type=email], #gform_wrapper_32 textarea {
  border: 2px solid #cfcfd6 !important; border-radius: 2px !important; padding: 11px 13px !important;
}
#gform_wrapper_33 input:focus, #gform_wrapper_33 textarea:focus,
#gform_wrapper_32 input:focus, #gform_wrapper_32 textarea:focus { border-color: #D81818 !important; outline: none; }
#gform_wrapper_33 .ginput_total, #gform_wrapper_32 .ginput_total { font-size: 22px; font-weight: 800; color: #1a1a2e; }
#gform_wrapper_33 input[type=submit], #gform_wrapper_33 .gform_button,
#gform_wrapper_32 input[type=submit], #gform_wrapper_32 .gform_button {
  background: #D81818 !important; color: #fff !important; border: 2px solid #D81818 !important;
  border-radius: 2px !important; padding: 14px 32px !important; font-weight: 800 !important;
  text-transform: uppercase; letter-spacing: .12em; font-size: 13px !important; cursor: pointer;
  transition: background .15s, border-color .15s;
}
#gform_wrapper_33 input[type=submit]:hover, #gform_wrapper_32 input[type=submit]:hover {
  background: #1a1a2e !important; border-color: #1a1a2e !important;
}

/* ===== V3 lift (2026-07-02): typographic + component upgrade for all
   converted pages — harvested from the teacher-application-v3 pilot. ===== */
.sv3-content { font-size: 17px; line-height: 1.65; color: #333; }
.sv3-content h1, .sv3-content h2, .sv3-content h3 {
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #1a1a2e;
}
.sv3-content h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 .6em; }
.sv3-content h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 1.6em 0 .6em; padding-left: 14px; position: relative; }
.sv3-content h2::before { content: ''; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; background: #D81818; }
.sv3-content h3 { font-size: clamp(18px, 2vw, 22px); margin: 1.4em 0 .5em; }
.sv3-content a { color: #D81818; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sv3-content a:hover { color: #1a1a2e; }
.sv3-content .sv3-btn, .sv3-content .sv3-btn:visited {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  background: #D81818; color: #fff !important; border: 2px solid #D81818; border-radius: 2px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.sv3-content .sv3-btn:hover { background: #1a1a2e; border-color: #1a1a2e; color: #fff; }
.sv3-content .sv3-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 28px 0; }
.sv3-content .sv3-gallery figure { margin: 0; }
.sv3-content .sv3-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 2px solid #1a1a2e; display: block; }
.sv3-content .sv3-figure img { max-width: 100%; height: auto; border: 2px solid #1a1a2e; }
.sv3-content .sv3-hr { border: 0; border-top: 2px solid #1a1a2e; margin: 40px 0; }
.sv3-content ul:not(.sv3-toc ul):not(.sv3-list) li { margin-bottom: 6px; }
.sv3-content blockquote { border-left: 5px solid #D81818; margin: 24px 0; padding: 8px 20px; background: #f7f7f9; font-style: italic; }
.sv3-content .sv3-faq-item { border: 2px solid #1a1a2e; background: #fff; margin: 0 0 12px; }
.sv3-content .sv3-faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; font-size: 16px; color: #1a1a2e;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.sv3-content .sv3-faq-item summary::-webkit-details-marker { display: none; }
.sv3-content .sv3-faq-item summary::after { content: '+'; font-size: 24px; font-weight: 400; color: #D81818; line-height: 1; flex: none; }
.sv3-content .sv3-faq-item[open] summary::after { content: '\2013'; }
.sv3-content .sv3-faq-answer { padding: 0 20px 18px; color: #444; }
.sv3-content .sv3-toc { border: 2px solid #1a1a2e; background: #f7f7f9; padding: 14px 18px; margin: 24px 0; }
.sv3-content .sv3-toc summary { font-weight: 800; color: #1a1a2e; cursor: pointer; }
.sv3-content .sv3-toc a { font-weight: 600; }
