/* ── Blog article: field-guide posts ── */
.article-hero { padding-bottom: 20px; }
.article-hero h1 { max-width: 1100px; overflow-wrap: break-word; }
.article-meta-row {
  width: 100%; max-width: 900px; display: flex; flex-direction: row; justify-content: space-between;
  align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.article-meta-row .handwritten-title-small { font-size: 1.5rem; }

/* Tablet: the short answer lives on a screen inside a cream bezel */
.tablet-section { padding-top: 20px; padding-bottom: 20px; }
.tablet {
  position: relative; width: min(100%, 900px);
  background: #e6ddc6; border: 5px solid #000000; border-radius: 34px;
  padding: 26px 26px 48px; box-shadow: 16px 16px 0 0 #000000;
}
.tablet::after {
  content: ""; position: absolute; left: 50%; bottom: 17px; width: 54px; height: 8px;
  margin-left: -27px; border-radius: 4px; background: #000000; opacity: .25;
}
.tablet-screen {
  position: relative; overflow: hidden; background: #111e26; border: 3px solid #000000;
  border-radius: 20px; padding: clamp(24px, 5vw, 56px);
  box-shadow: inset 0 0 80px rgba(13, 81, 117, .55);
}
.tablet-screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(243, 247, 244, .04) 0 1px, transparent 1px 3px);
}
.tablet-screen .handwritten-title-small { color: #a9d4b5; font-size: 1.6rem; margin-bottom: 14px; }
.tablet-answer {
  position: relative; border-left: 4px solid #a9d4b5; padding-left: 22px;
  font-size: 1.3rem !important; line-height: 1.6; color: #f3f7f4;
}
.tablet-foot {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 28px;
}
.tablet-foot span {
  padding: 6px 16px; border: 1px solid #f3f7f466; border-radius: 100px;
  font-size: .8rem; font-weight: 500; color: #f3f7f4CC;
}
@media (prefers-reduced-motion: no-preference) {
  .tablet-answer { animation: tablet-boot .8s cubic-bezier(.2,.7,.2,1) both .2s; }
}
@keyframes tablet-boot { from { opacity: 0; filter: brightness(2.2) blur(2px); } to { opacity: 1; filter: none; } }

/* Body — mirrors the template's section rule so every post is self-sufficient */
.flex-section-content { width: 100%; padding: 50px 125px; display: flex; flex-direction: column; gap: 10px; }
@media screen and (width <= 480px) { .flex-section-content { padding: 50px 25px; } }

.flex-section-content.article-section { padding-top: 30px; padding-bottom: 30px; gap: 18px; }
.article-section h2 + * { margin-top: 4px; }
.article-section { align-items: center; }
.article-section > * { width: 100%; max-width: 900px; text-align: left; }
.article-section h2.handwritten-title-large { font-size: 3rem; text-align: left; font-weight: 400; }
.article-section h3 { font-size: 1.35rem; font-weight: 600; margin-top: 14px; }
.article-section p, .article-section li { font-size: 1.2rem; line-height: 1.75; color: #f3f7f4; }
.article-section strong { font-weight: 600; color: #ffffff; }
.article-section ul { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 8px; }
.article-section li::marker { color: #a9d4b5; }
.article-section a { color: #a9d4b5; text-decoration: underline; text-underline-offset: 4px; }

/* Tables: paper cards with the site's hard shadow */
.table-card {
  max-width: 900px !important; overflow-x: auto; margin: 14px 0 18px;
  background: #f3f7f4; border: 3px solid #000000; border-radius: 15px; box-shadow: 8px 8px 0 0 #0d5175;
}
.table-card table { width: 100%; border-collapse: collapse; font-family: var(--ff-primary); font-size: .98rem; line-height: 1.5; color: #000000; }
.table-card th, .table-card td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid #00000022; }
.table-card th { background: #1c3657; color: #f3f7f4; font-weight: 600; }
.table-card td:first-child { font-weight: 600; }
.table-card tr:last-child td { border-bottom: 0; }

/* Accordions */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 2px solid #f3f7f4; border-radius: 15px; background: #1c3657; box-shadow: 4px 4px 0 0 #f3f7f4; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: 2px 2px 0 0 #f3f7f4; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; font-family: var(--ff-primary); font-weight: 600; font-size: 1.15rem; color: #f3f7f4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--ff-handwritten); font-size: 2.4rem; line-height: 1; color: #a9d4b5; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; font-size: 1.1rem !important; color: #f3f7f4E6; }
.faq-item summary:focus-visible { outline: 3px solid #a9d4b5; outline-offset: 4px; border-radius: 12px; }

/* CTA: paper card, same language as the site banners */
.article-cta {
  position: relative; width: min(100%, 900px); display: flex; flex-direction: column; gap: 22px;
  padding: clamp(28px, 5vw, 56px); background: #f3f7f4; border: 5px solid #000000; border-radius: 15px;
  box-shadow: 16px 16px 0 0 #000000; z-index: 0;
}
.article-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: url('../assets/paper-texture.jpg'); background-size: cover;
}
.article-cta h2 { color: #000000; font-family: var(--ff-handwritten); font-size: 3.2rem; line-height: 1.05; }
.article-cta p { color: #000000; font-size: 1.15rem; max-width: 640px; }
.article-cta .cta-row { display: flex; flex-wrap: wrap; gap: 18px; }
.article-cta .classic-btn-dark.light { background: #f3f7f4; color: #000000; }

/* Related */
.related-list { display: flex; flex-direction: column; }
.related-list a {
  display: flex; justify-content: space-between; gap: 20px; padding: 18px 0;
  border-top: 1px solid #f3f7f433; color: #f3f7f4; text-decoration: none; font-size: 1.15rem;
}
.related-list a:last-child { border-bottom: 1px solid #f3f7f433; }
.related-list a span:last-child { font-family: var(--ff-handwritten); font-size: 1.4rem; color: #a9d4b5; white-space: nowrap; }
.related-list a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }

@media screen and (width <= 480px) {
  .article-hero h1.handwritten-title-large { font-size: 3.4rem !important; overflow-wrap: break-word; hyphens: auto; }
  .article-hero { padding-bottom: 10px; }
  .tablet { border-radius: 24px; padding: 14px 14px 34px; box-shadow: 8px 8px 0 0 #000000; border-width: 4px; }
  .tablet::after { bottom: 12px; }
  .tablet-answer { font-size: 1.1rem !important; padding-left: 16px; }
  .article-section h2.handwritten-title-large { font-size: 2.4rem !important; }
  .article-section p, .article-section li { font-size: 1.08rem; }
  .article-cta { box-shadow: 8px 8px 0 0 #000000; }
  .article-cta h2 { font-size: 2.4rem; }
  .article-meta-row { justify-content: center; }
}
