/* Peninsula Tailors – single blog post */
.pt-single {
  --pt-navy: #0f1b3d;
  --pt-ink: #1b2238;
  --pt-muted: #5a6077;
  --pt-line: #e3e5ea;
  --pt-soft: #f4f6fa;
  --pt-serif: "Kanit", Georgia, serif;
  --pt-header-offset: 165px; 
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px 96px;
  color: var(--pt-ink);
  margin-top: 140px;
}
.logged-in .pt-single {
  margin-top: 110px;
}
.pt-single__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

/* ---------- Header of the article ---------- */
.pt-single__crumbs {
  margin-bottom: 18px;
  font-size: 11px;
  color: var(--pt-muted);
}
.pt-single__crumbs a { color: var(--pt-muted); text-decoration: none; }
.pt-single__crumbs a:hover { color: var(--pt-ink); }
.pt-single__crumbs span { margin: 0 4px; }

.pt-single__title {
  margin: 0 0 24px;
  font-family: var(--pt-serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.12;
  color: var(--pt-ink);
}

.pt-single__byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--pt-line);
}
.pt-single__author { display: flex; align-items: center; gap: 12px; }
.pt-single__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pt-navy);
  color: #fff;
  font-family: var(--pt-serif);
  font-size: 16px;
  flex: none;
}
.pt-single__author-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pt-single__meta { font-size: 11px; color: var(--pt-muted); }

.pt-single__share { display: flex; gap: 8px; }
.pt-single__share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--pt-line);
  color: var(--pt-ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.pt-single__share a:hover { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }

.pt-single__image { margin: 0 0 28px; }
.pt-single__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Body text ---------- */
.pt-entry { font-size: 14px; line-height: 1.75; color: var(--pt-ink); }
.pt-entry p { margin: 0 0 16px; }
.pt-entry a { color: var(--pt-ink); text-decoration: underline; text-underline-offset: 3px; }
.pt-entry strong { font-weight: 700; }
.pt-entry img { max-width: 100%; height: auto; }
.pt-entry ul, .pt-entry ol { margin: 0 0 16px 20px; }
.pt-entry h3 { font-family: var(--pt-serif); font-size: 24px !important; font-weight: 400; margin: 24px 0 10px; }
.pt-entry h4 { font-family: var(--pt-serif); font-size: 22px !important; font-weight: 400; margin: 24px 0 10px; }
.pt-single__intro { font-size: 15px; margin-bottom: 28px; }

/* Tables inside sections */
.pt-entry .pt-table-wrap { overflow-x: auto; margin: 0 0 20px; }
.pt-entry table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-entry th, .pt-entry td { padding: 10px 12px; border: 1px solid var(--pt-line); text-align: left; vertical-align: top; }
.pt-entry thead th, .pt-entry tr:first-child th { background: var(--pt-navy); color: #fff; }


/* ---------- Table of contents (collapsible + sticky) ---------- */
.pt-toc {
  margin: 0 0 40px;
  background: var(--pt-soft);
  border: 1px solid var(--pt-line);
  transition: box-shadow .2s;
}

.pt-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--pt-ink);
  text-align: left;
  cursor: pointer;
}
.pt-toc__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.pt-toc__icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--pt-line);
  background: #fff;
}
/* TOC icon: ☰ when closed, X when open */
.pt-toc .pt-toc__icon .pt-toc__icon-close { display: none !important; }
.pt-toc .pt-toc__toggle[aria-expanded="true"] .pt-toc__icon-open { display: none !important; }
.pt-toc .pt-toc__toggle[aria-expanded="true"] .pt-toc__icon-close { display: block !important; }
.pt-toc__list {
  max-height: 60vh;
  overflow-y: auto;
  margin: 0;
  padding: 0 22px 20px;
  list-style: none;
  counter-reset: toc;
}
.pt-toc__list[hidden] { display: none; }
.pt-toc__list li { counter-increment: toc; margin: 0 0 12px; }
.pt-toc__list li:last-child { margin-bottom: 0; }
.pt-toc__list a {
  color: var(--pt-ink);
  font-size: 12px;
  text-decoration: none;
}
.pt-toc__list a::before { content: counter(toc) ". "; }
.pt-toc__list a:hover,
.pt-toc__list a.is-active { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Sections ---------- */
.pt-single__section {
  margin: 0 0 36px;
  scroll-margin-top: var(--pt-header-offset);
}
.pt-single__h2 {
  margin: 0 0 15px;
  font-size: 30px !important;
  font-weight: 500;
  line-height: 1.2;
  color: var(--pt-ink);
}

/* ---------- Sidebar (sticky while scrolling) ---------- */
.pt-single__aside {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--pt-header-offset) - 20px);
  align-self: start;
}
/* "overflow: hidden" on a parent stops sticky from working.
   Themes often set it on body/wrappers to hide sideways scroll – "clip" does the same job without breaking sticky. */
body.pt-single-post,
body.pt-single-post .page-wrapper,
body.pt-single-post #main,
body.pt-single-post #content,
body.pt-single-post .site-content {
  overflow: visible !important;
  overflow-x: clip !important;
}
.pt-cta {
  padding: 26px 22px 24px;
  margin-bottom: 36px;
  background: var(--pt-navy);
  color: #fff;
}
.pt-cta__eyebrow {
  margin: 0 0 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.pt-cta__title {
  margin: 0 0 10px;
  font-family: var(--pt-serif);
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
}
.pt-cta__text { margin: 0 0 18px; font-size: 11px; color: rgba(255, 255, 255, .85); }
.pt-cta__btn {
  display: block;
  padding: 13px 10px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #fff;
  transition: background .2s, color .2s;
}
.pt-cta__btn--solid { background: #fff; color: var(--pt-navy); }
.pt-cta__btn--solid:hover { background: transparent; color: #fff; }
.pt-cta__btn--line { background: transparent; color: #fff; }
.pt-cta__btn--line:hover { background: #fff; color: var(--pt-navy); }

.pt-popular__title {
  margin: 0 0 12px;
  font-family: var(--pt-serif);
  font-size: 22px;
  color: var(--pt-ink);
  font-weight: 500 !important;
}
.pt-popular__list { margin: 0; padding: 0; list-style: none; }
.pt-popular__list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--pt-line);
}
.pt-popular__num {
  flex: none;
  width: 14px;
  font-family: var(--pt-serif);
  font-size: 18px;
  color: #b7bccb;
}
.pt-popular__list a {
  color: var(--pt-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  opacity: 0.8;
}
.pt-popular__list a:hover,
.pt-popular__list .is-current a { opacity: 1; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .pt-single__grid { grid-template-columns: 1fr; gap: 48px; }
  .pt-single__aside { position: static; }
}
@media (max-width: 767px) {
  .pt-single { padding-top: 20px; }
  .pt-single__title { font-size: 32px; }
  .pt-single__h2 { font-size: 25px; }
  .pt-single__byline { flex-wrap: wrap; }
}

/* ---------- FAQ accordion ---------- */
.pt-faq { margin: 48px 0 0; scroll-margin-top: var(--pt-header-offset); }
.pt-faq__title {
  margin: 0 0 8px;
  font-family: var(--pt-serif);
  font-size: 30px !important;
  font-weight: 500;
  color: var(--pt-ink);
}
.pt-faq__item { border-bottom: 1px solid var(--pt-line); }
.pt-faq__q {
  position: relative;
  display: block;
  padding: 18px 36px 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pt-ink);
}
.pt-faq__q::-webkit-details-marker { display: none; }
.pt-faq__q:hover { text-underline-offset: 3px; color: #0f1b3d;}
.pt-faq__item[open] > .pt-faq__q { color: #0f1b3d; }
.pt-faq__item[open] .pt-faq__icon::before,
.pt-faq__item[open] .pt-faq__icon::after { background: #0f1b3d; }
/* + / − icon */
.pt-faq__icon { position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; }
.pt-faq__icon::before,
.pt-faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4.5px;
  width: 10px;
  height: 1px;
  background: var(--pt-ink);
  transition: transform .2s;
}
.pt-faq__icon::after { transform: rotate(90deg); }
.pt-faq__item[open] .pt-faq__icon::after { transform: rotate(0deg); }
.pt-faq__a { padding: 0 36px 18px 0; font-size: 13px; line-height: 1.75; color: var(--pt-ink); }
.pt-faq__a p { margin: 0 0 10px; }
.pt-faq__a p:last-child { margin-bottom: 0; }

/* ---------- Related guides (full width) ---------- */
.pt-related { margin-top: 72px; }
.pt-related__title {
  margin: 0 0 16px;
  font-size: 30px !important;
  font-weight: 500;
  color: var(--pt-ink);
}
.pt-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pt-related__card { display: flex; flex-direction: column; border: 1px solid var(--pt-line); background: #fff; }
.pt-related__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pt-navy);
}
.pt-related__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pt-related__card:hover .pt-related__image img { transform: scale(1.03); }
.pt-related__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.pt-related__body { display: flex; flex-direction: column; flex: 1; padding: 16px 14px 18px; }
.pt-related__cat {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pt-muted);
}
.pt-related__name {
  margin: 0 0 12px;
  font-family: var(--pt-serif);
  font-size: 20px !important; font-weight: 500; line-height: 1.25;
}
.pt-related__name a { 
  color: var(--pt-ink); 
  text-decoration: none; 
}
.pt-related__name a:hover { 
  text-underline-offset: 3px; 
  text-decoration-thickness: 1px; 
}
.pt-related__more {
  margin-top: auto;
  font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pt-ink); text-decoration: none;
}
.pt-single .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

@media (max-width: 991px) {
  .pt-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pt-faq__title, .pt-related__title { font-size: 25px; }
  .pt-related { margin-top: 56px; }
  .pt-related__grid { grid-template-columns: 1fr; }
}

/* ---------- Bottom CTA band ---------- */
.pt-cta-band {
  padding: 50px;
  background: #0f1b3d;
}
.pt-cta-band__warp{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  max-width: 1290px;
}

@media (max-width: 767px) {
  .pt-cta-band__warp{
    flex-direction: column;
  }
}
.pt-cta-band__title {
  margin: 0;
  font-family: var(--pt-serif);
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}
.pt-cta-band__btn {
  flex: none;
  display: inline-block;
  padding: 11px 24px;
  border: 1px solid #fff;
  background: #fff;
  color: var(--pt-navy);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.pt-cta-band__btn:hover { background: transparent; color: #fff; }

@media (max-width: 767px) {
  .pt-cta-band { flex-direction: column; align-items: flex-start; padding: 28px 22px; margin-top: 56px; }
  .pt-cta-band__title { font-size: 24px; }
}