/* ==========================================================================
   Single Post (News Article) — Flat top + bottom arch
   ========================================================================== */

/* Body background — orange (visible below arch curve) */
body.single-post {
  background: #fb9516;
}

.p-single {
  padding: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Header — dark logo on white background
   -------------------------------------------------------------------------- */

body.single-post .l-header__logo-img {
  filter: none;
}

body.single-post .l-header__menu-btn {
  background-color: var(--color-primary);
}

body.single-post .l-header__menu-line {
  background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Hub — white background for header/breadcrumb area
   -------------------------------------------------------------------------- */

.p-single-hub {
  position: relative;
  z-index: 3;
  background: linear-gradient(to bottom, #ffffff 160px, #fb9516 160px);
  padding-top: 86px;
}

/* --------------------------------------------------------------------------
   Arch — flat top, curved bottom
   -------------------------------------------------------------------------- */

.p-single-hub__arch {
  width: 100%;
  padding: 0 clamp(30px, 6vw, 80px) clamp(200px, 22vw, 320px);
  background: linear-gradient(to bottom, #ffffff 0%, #f2f8f7 45%, #e3f3f1 70%, #f2f8f7 100%);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 50% clamp(300px, 40vw, 580px);
  border-bottom-right-radius: 50% clamp(300px, 40vw, 580px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Breadcrumb — dark text on white background
   -------------------------------------------------------------------------- */

.p-single-breadcrumb {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 20px;
}

.p-single-breadcrumb__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  font-family: var(--font-family-en);
  color: #888;
}

.p-single-breadcrumb__link {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.p-single-breadcrumb__link:hover {
  color: var(--color-primary);
}

.p-single-breadcrumb__sep {
  color: #bbb;
}

.p-single-breadcrumb__current {
  color: #333;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.p-single-article {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.p-single-article__container {
  max-width: 860px;
  margin: 0 auto;
}

.p-single-article__header {
  margin-bottom: 32px;
}

.p-single-article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.p-single-article__category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  padding: 0 14px;
}

.p-single-article__date {
  font-size: 13px;
  color: #888;
  font-family: var(--font-family-en);
  font-weight: 500;
}

.p-single-article__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  letter-spacing: 0.02em;
}

/* Thumbnail */
.p-single-article__thumbnail {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.p-single-article__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

/* Body content (the_content) */
.p-single-article__body {
  font-size: 16px;
  line-height: 1.85;
  color: #333;
  letter-spacing: 0.03em;
}

.p-single-article__body p {
  margin-bottom: 1.5em;
}

.p-single-article__body h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  color: #333;
}

.p-single-article__body h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin: 1.5em 0 0.6em;
  color: #333;
}

.p-single-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.p-single-article__body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.p-single-article__body ul,
.p-single-article__body ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.p-single-article__body li {
  margin-bottom: 0.5em;
}

.p-single-article__body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: rgba(251, 149, 22, 0.06);
  color: #555;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Post Navigation (prev / next)
   -------------------------------------------------------------------------- */

.p-single-article__footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #ddd;
}

.p-single-article__post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.p-single-article__post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  max-width: 45%;
}

.p-single-article__post-nav-link--next {
  text-align: right;
  margin-left: auto;
}

.p-single-article__post-nav-label {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

.p-single-article__post-nav-title {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.p-single-article__post-nav-link:hover .p-single-article__post-nav-title {
  color: var(--color-primary);
}

.p-single-article__back {
  text-align: center;
}

.p-single-article__back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 48px;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.p-single-article__back-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   CTA wrap
   -------------------------------------------------------------------------- */

.p-single-cta-wrap {
  width: min(1120px, 92vw);
  margin: 60px auto 0;
}

.p-single-cta-wrap .p-cta-grid__box {
  width: 100%;
}

.p-single-cta-wrap .p-cta-grid__title {
  height: 42px;
}

.p-single-cta-wrap .p-cta-grid__arrow {
  width: 36px;
  height: auto;
}

/* --------------------------------------------------------------------------
   Footer overrides
   -------------------------------------------------------------------------- */

main.p-single + .l-footer .l-footer__curve-path {
  fill: #f2f8f7;
}

main.p-single + .l-footer {
  margin-top: -1px;
  padding-top: 380px;
}

main.p-single + .l-footer .l-footer__curve {
  display: none;
}

main.p-single + .l-footer .l-footer__island--left {
  top: 160px;
}

main.p-single + .l-footer .l-footer__island--right {
  top: 90px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  main.p-single + .l-footer {
    padding-top: 300px;
  }

  main.p-single + .l-footer .l-footer__island--left {
    top: 120px;
  }

  main.p-single + .l-footer .l-footer__island--right {
    top: 60px;
  }
}

@media (max-width: 900px) {
  .p-single-hub {
    padding-top: 74px;
    background: linear-gradient(to bottom, #ffffff 140px, #fb9516 140px);
  }

  .p-single-hub__arch {
    padding: 0 30px clamp(200px, 22vw, 280px);
    border-bottom-left-radius: 50% clamp(200px, 40vw, 430px);
    border-bottom-right-radius: 50% clamp(200px, 40vw, 430px);
  }
}

@media (max-width: 767px) {
  .p-single-hub {
    padding-top: 64px;
    background: linear-gradient(to bottom, #ffffff 120px, #fb9516 120px);
  }

  main.p-single + .l-footer {
    padding-top: 200px;
  }

  .p-single-hub__arch {
    padding: 0 20px 320px;
    border-bottom-left-radius: 50% 280px;
    border-bottom-right-radius: 50% 280px;
  }

  .p-single-breadcrumb {
    width: calc(100% - 24px);
  }

  .p-single-article {
    padding: 0 16px 60px;
  }

  .p-single-article__title {
    font-size: 20px;
  }

  .p-single-article__body {
    font-size: 15px;
  }

  .p-single-article__post-nav {
    flex-direction: column;
    gap: 16px;
  }

  .p-single-article__post-nav-link {
    max-width: 100%;
  }

  .p-single-article__post-nav-link--next {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .p-single-hub {
    padding-top: 56px;
    background: linear-gradient(to bottom, #ffffff 110px, #fb9516 110px);
  }

  main.p-single + .l-footer {
    padding-top: 140px;
  }

  .p-single-hub__arch {
    padding: 0 16px 240px;
    border-bottom-left-radius: 50% 200px;
    border-bottom-right-radius: 50% 200px;
  }
}
