/* TDOP Single Post Designer — deliberately scoped to the plugin template. */
.tdop-single-template {
  --tdop-single-ink: #101c29;
  --tdop-single-muted: #657180;
  --tdop-single-line: #dce2e7;
  --tdop-single-soft: #f3f6f7;
  --tdop-single-white: #fff;
  color: var(--tdop-single-ink);
  background: var(--tdop-single-white);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow: clip;
}

.tdop-single-template *,
.tdop-single-template *::before,
.tdop-single-template *::after { box-sizing: border-box; }
.tdop-single-template a { color: inherit; text-decoration: none; }
.tdop-single-template button,
.tdop-single-template input { font: inherit; }
.tdop-single-template img { display: block; max-width: 100%; }
.tdop-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.tdop-reading-progress {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
}
.tdop-reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--tdop-single-coral);
  transition: width .1s linear;
}

.tdop-breadcrumbs { border-block: 1px solid var(--tdop-single-line); background: #fafbfb; }
.tdop-breadcrumbs .tdop-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  color: var(--tdop-single-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.tdop-breadcrumbs a:hover { color: var(--tdop-single-teal); }
.tdop-breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }

.tdop-post-header { padding-block: clamp(34px, 4.5vw, 58px) 25px; }
.tdop-post-kicker,
.tdop-related-category {
  display: inline-flex;
  color: var(--tdop-single-teal) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.tdop-post-header h1 {
  max-width: 1060px;
  margin: 10px 0 14px;
  color: var(--tdop-single-navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 780;
  letter-spacing: -.04em;
  line-height: 1.06;
}
.tdop-post-deck {
  max-width: 900px;
  margin: 0 0 22px;
  color: #4d5d6a;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
}
.tdop-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 27px; padding-top: 17px; border-top: 1px solid var(--tdop-single-line); }
.tdop-meta-author { display: flex; align-items: center; gap: 11px; }
.tdop-author-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.tdop-meta-author span,
.tdop-meta-item { display: grid; gap: 2px; }
.tdop-post-meta small { color: var(--tdop-single-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.tdop-post-meta strong { color: var(--tdop-single-ink); font-size: 13px; font-weight: 750; line-height: 1.35; }
.tdop-post-meta a:hover strong { color: var(--tdop-single-teal); }

.tdop-featured-media { margin-bottom: clamp(38px, 4.5vw, 55px); }
.tdop-featured-media > img { width: 100%; aspect-ratio: 16 / 7.4; border-radius: 4px; object-fit: cover; background: var(--tdop-single-soft); }
.tdop-featured-media figcaption { margin-top: 10px; color: var(--tdop-single-muted); font-size: 12px; }

.tdop-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 4vw, 54px); align-items: start; }
.tdop-content-grid--wide { grid-template-columns: minmax(0, 860px); justify-content: center; }
.tdop-article { min-width: 0; }
.tdop-article-layout { display: grid; grid-template-columns: 44px minmax(0, 730px); gap: 22px; }
.tdop-content-grid--wide .tdop-article-layout { grid-template-columns: 44px minmax(0, 790px); }
.tdop-share-rail {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  align-self: start;
}
.tdop-share-rail > span { margin-bottom: 3px; color: var(--tdop-single-muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tdop-share-rail a,
.tdop-share-rail button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--tdop-single-line);
  border-radius: 50%;
  color: var(--tdop-single-navy);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s ease;
}
.tdop-share-rail a:hover,
.tdop-share-rail button:hover { border-color: var(--tdop-single-navy); color: #fff; background: var(--tdop-single-navy); transform: translateY(-2px); }

.tdop-entry-content { min-width: 0; color: #273644; font-family: Georgia, "Times New Roman", serif; font-size: clamp(17px, 1.2vw, 19px); line-height: 1.78; }
.tdop-entry-content > *:first-child { margin-top: 0; }
.tdop-entry-content p { margin: 0 0 1.35em; }
.tdop-entry-content h2,
.tdop-entry-content h3,
.tdop-entry-content h4 {
  margin: 1.5em 0 .55em;
  color: var(--tdop-single-navy);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.tdop-entry-content h2 { font-size: clamp(27px, 2.6vw, 37px); }
.tdop-entry-content h3 { font-size: clamp(23px, 2vw, 30px); }
.tdop-entry-content h4 { font-size: 20px; }
.tdop-entry-content a { color: var(--tdop-single-teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tdop-entry-content a:hover { color: var(--tdop-single-coral); }
.tdop-entry-content ul,
.tdop-entry-content ol { margin: 0 0 1.6em; padding-left: 1.25em; }
.tdop-entry-content li { margin-bottom: .62em; padding-left: .3em; }
.tdop-entry-content li::marker { color: var(--tdop-single-coral); font-weight: 800; }
.tdop-entry-content blockquote,
.tdop-entry-content .wp-block-quote {
  position: relative;
  margin: 1.8em 0;
  padding: 28px 30px 28px 62px;
  border: 0;
  border-radius: 3px;
  color: var(--tdop-single-navy);
  background: #edf5f5;
  font-size: clamp(20px, 1.8vw, 26px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.42;
}
.tdop-entry-content blockquote::before { content: "“"; position: absolute; top: 8px; left: 20px; color: var(--tdop-single-coral); font-family: Georgia, serif; font-size: 60px; line-height: 1; }
.tdop-entry-content blockquote p:last-of-type { margin-bottom: 0; }
.tdop-entry-content blockquote cite { display: block; margin-top: 14px; color: var(--tdop-single-muted); font-family: Inter, sans-serif; font-size: 12px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.tdop-entry-content figure,
.tdop-entry-content .wp-block-image { margin-block: 1.8em; }
.tdop-entry-content img { height: auto; border-radius: 3px; }
.tdop-entry-content figcaption { margin-top: 9px; color: var(--tdop-single-muted); font-family: Inter, sans-serif; font-size: 12px; text-align: left; }
.tdop-entry-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-family: Inter, sans-serif; font-size: 15px; }
.tdop-entry-content th,
.tdop-entry-content td { padding: 13px 15px; border: 1px solid var(--tdop-single-line); text-align: left; }
.tdop-entry-content th { color: #fff; background: var(--tdop-single-navy); }
.tdop-page-links { margin-block: 28px; font-family: Inter, sans-serif; font-weight: 700; }

.tdop-article-footer { max-width: 796px; margin: 42px 0 0 66px; padding-top: 22px; border-top: 1px solid var(--tdop-single-line); }
.tdop-tags,
.tdop-share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.tdop-tags + .tdop-share-bar { margin-top: 24px; }
.tdop-tags strong,
.tdop-share-bar strong { margin-right: 4px; color: var(--tdop-single-navy); font-size: 13px; text-transform: uppercase; }
.tdop-tags a,
.tdop-share-bar a,
.tdop-share-bar button {
  padding: 7px 11px;
  border: 1px solid var(--tdop-single-line);
  border-radius: 4px;
  color: #536271;
  background: #fff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.tdop-tags a:hover,
.tdop-share-bar a:hover,
.tdop-share-bar button:hover { border-color: var(--tdop-single-teal); color: var(--tdop-single-teal); }
.tdop-copy-status { color: var(--tdop-single-teal); font-size: 12px; font-weight: 700; }

.tdop-author-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 21px;
  max-width: 796px;
  margin: 38px 0 0 66px;
  padding: 25px;
  border-radius: 4px;
  color: #fff;
  background: var(--tdop-single-navy);
}
.tdop-author-card-avatar { width: 78px; height: 78px; border: 2px solid rgba(255,255,255,.22); border-radius: 50%; object-fit: cover; }
.tdop-author-card span { color: #75d0d1; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tdop-author-card h2 { margin: 3px 0 5px; color: #fff; font-size: 21px; line-height: 1.2; }
.tdop-author-card h2 a:hover { color: #75d0d1; }
.tdop-author-card p { margin: 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.65; }

.tdop-post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 796px; margin: 25px 0 0 66px; border-block: 1px solid var(--tdop-single-line); }
.tdop-post-navigation a { display: grid; gap: 5px; padding: 19px 16px 19px 0; }
.tdop-post-navigation a + a { padding-right: 0; padding-left: 24px; border-left: 1px solid var(--tdop-single-line); }
.tdop-post-navigation span { color: var(--tdop-single-teal); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tdop-post-navigation strong { color: var(--tdop-single-navy); font-size: 15px; line-height: 1.38; }
.tdop-post-navigation a:hover strong { color: var(--tdop-single-coral); }
.tdop-next-post { text-align: right; }

.tdop-comments-wrap { max-width: 796px; margin: 42px 0 0 66px; }
.tdop-comments-wrap .comments-title,
.tdop-comments-wrap .comment-reply-title { margin: 0 0 22px; color: var(--tdop-single-navy); font-size: 28px; line-height: 1.2; }
.tdop-comments-wrap .comment-list { margin: 0 0 40px; padding: 0; list-style: none; }
.tdop-comments-wrap .comment-body { margin-bottom: 16px; padding: 18px; border: 1px solid var(--tdop-single-line); border-radius: 3px; }
.tdop-comments-wrap .comment-meta { margin-bottom: 12px; }
.tdop-comments-wrap .avatar { float: left; width: 42px; height: 42px; margin-right: 11px; border-radius: 50%; }
.tdop-comments-wrap input:not([type="submit"]),
.tdop-comments-wrap textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd3d9; border-radius: 4px; background: #fff; }
.tdop-comments-wrap textarea { min-height: 150px; resize: vertical; }
.tdop-comments-wrap input[type="submit"] { padding: 12px 20px; border: 0; border-radius: 3px; color: #fff; background: var(--tdop-single-navy); font-weight: 800; cursor: pointer; }

.tdop-sidebar-sticky { position: sticky; top: 24px; display: grid; gap: 20px; }
.tdop-sidebar-widget { padding: 20px; border: 1px solid var(--tdop-single-line); border-radius: 3px; background: #fff; }
.tdop-sidebar-widget > h2 { margin: 0 0 17px; color: var(--tdop-single-navy); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.tdop-search-widget form { display: grid; grid-template-columns: 1fr 46px; }
.tdop-search-widget input { min-width: 0; height: 46px; padding: 0 13px; border: 1px solid #cbd4da; border-right: 0; border-radius: 4px 0 0 4px; color: var(--tdop-single-ink); background: #fff; font-size: 14px; outline: 0; }
.tdop-search-widget input:focus { border-color: var(--tdop-single-teal); box-shadow: inset 0 0 0 1px var(--tdop-single-teal); }
.tdop-search-widget button { border: 0; border-radius: 0 4px 4px 0; color: #fff; background: var(--tdop-single-navy); font-size: 22px; cursor: pointer; }
.tdop-search-widget button:hover { background: var(--tdop-single-teal); }

.tdop-tab-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: -20px -20px 18px; border-bottom: 1px solid var(--tdop-single-line); }
.tdop-tab-list button { padding: 16px 5px 13px; border: 0; border-bottom: 3px solid transparent; color: #687482; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.tdop-tab-list button[aria-selected="true"] { border-color: var(--tdop-single-coral); color: var(--tdop-single-navy); }
.tdop-tab-list button:focus-visible { outline: 2px solid var(--tdop-single-teal); outline-offset: -2px; }
.tdop-side-story { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.tdop-side-story + .tdop-side-story { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--tdop-single-line); }
.tdop-side-story-image { overflow: hidden; width: 64px; height: 64px; border-radius: 3px; background: var(--tdop-single-soft); }
.tdop-side-story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tdop-side-story:hover img { transform: scale(1.06); }
.tdop-side-story h3 { margin: 0 0 6px; color: var(--tdop-single-navy); font-size: 14px; font-weight: 800; letter-spacing: -.015em; line-height: 1.35; }
.tdop-side-story h3 a:hover { color: var(--tdop-single-teal); }
.tdop-side-story span { color: var(--tdop-single-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.tdop-category-widget ul { margin: 0; padding: 0; list-style: none; }
.tdop-category-widget li + li { border-top: 1px solid var(--tdop-single-line); }
.tdop-category-widget a { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; color: #374756; font-size: 14px; font-weight: 700; }
.tdop-category-widget a:hover { color: var(--tdop-single-teal); }
.tdop-category-widget small { color: #89939c; font-size: 11px; }

.tdop-related-section { margin-top: clamp(55px, 6vw, 78px); padding-block: clamp(45px, 5vw, 64px); background: #f4f6f7; }
.tdop-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; padding-top: 13px; border-top: 4px solid var(--tdop-single-navy); }
.tdop-section-heading span { color: var(--tdop-single-coral); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.tdop-section-heading h2 { margin: 3px 0 0; color: var(--tdop-single-navy); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: clamp(29px, 3.2vw, 42px); line-height: 1.08; }
.tdop-section-heading > a { color: var(--tdop-single-teal); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.tdop-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tdop-related-card { overflow: hidden; border: 1px solid var(--tdop-single-line); border-radius: 3px; background: #fff; }
.tdop-related-image { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #e5eaec; }
.tdop-related-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tdop-related-card:hover .tdop-related-image img { transform: scale(1.045); }
.tdop-related-copy { padding: 16px 17px 18px; }
.tdop-related-copy h3 { margin: 7px 0 11px; color: var(--tdop-single-navy); font-size: clamp(17px, 1.55vw, 21px); font-weight: 800; letter-spacing: -.025em; line-height: 1.24; }
.tdop-related-copy h3 a:hover { color: var(--tdop-single-teal); }
.tdop-related-copy > span { color: var(--tdop-single-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }

@media (max-width: 1080px) {
  .tdop-content-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 34px; }
  .tdop-article-layout { grid-template-columns: 42px minmax(0, 1fr); gap: 20px; }
  .tdop-article-footer,
  .tdop-author-card,
  .tdop-post-navigation,
  .tdop-comments-wrap { margin-left: 62px; }
}

@media (max-width: 900px) {
  .tdop-content-grid { grid-template-columns: 1fr; }
  .tdop-sidebar { max-width: 680px; margin: 18px auto 0; }
  .tdop-sidebar-sticky { position: static; }
  .tdop-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .tdop-shell { width: min(100% - 30px, 1240px); }
  .tdop-post-header { padding-block: 30px 22px; }
  .tdop-post-header h1 { font-size: clamp(33px, 10vw, 46px); }
  .tdop-post-deck { font-size: 17px; }
  .tdop-post-meta { gap: 14px 20px; }
  .tdop-meta-author { width: 100%; }
  .tdop-featured-media { width: 100%; }
  .tdop-featured-media > img { border-radius: 0; aspect-ratio: 4 / 3; }
  .tdop-article-layout,
  .tdop-content-grid--wide .tdop-article-layout { display: flex; flex-direction: column; gap: 20px; }
  .tdop-share-rail { position: static; flex-direction: row; align-self: stretch; padding-bottom: 13px; border-bottom: 1px solid var(--tdop-single-line); }
  .tdop-share-rail > span { margin: 0 4px 0 0; }
  .tdop-share-rail a,
  .tdop-share-rail button { width: 34px; height: 34px; }
  .tdop-entry-content { font-size: 17px; line-height: 1.74; }
  .tdop-entry-content blockquote { padding: 52px 21px 24px; }
  .tdop-entry-content blockquote::before { top: 11px; left: 23px; }
  .tdop-article-footer,
  .tdop-author-card,
  .tdop-post-navigation,
  .tdop-comments-wrap { margin-left: 0; }
  .tdop-author-card { grid-template-columns: 64px 1fr; padding: 21px 19px; }
  .tdop-author-card-avatar { width: 64px; height: 64px; }
  .tdop-post-navigation { grid-template-columns: 1fr; }
  .tdop-post-navigation a + a { padding-left: 0; border-top: 1px solid var(--tdop-single-line); border-left: 0; }
  .tdop-next-post { text-align: left; }
  .tdop-sidebar-widget { padding: 18px; }
  .tdop-tab-list { margin: -18px -18px 18px; }
  .tdop-section-heading { align-items: start; }
  .tdop-related-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tdop-single-template *,
  .tdop-single-template *::before,
  .tdop-single-template *::after { scroll-behavior: auto !important; transition: none !important; }
}
