/* Scoped article styles; the site header and footer keep their shared styling. */
.tws-media { padding: 26px 0 72px; color: #172c35; background: #fff; font: 400 16px/1.65 Arial, sans-serif; }
.tws-media a { text-decoration: none; }
.tws-media-breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; margin: 0 0 40px; color: #697c83; font-size: 13px; overflow-wrap: anywhere; }
.tws-media-breadcrumbs a { color: #08717a; transition: color .2s; }
.tws-media-breadcrumbs a:hover { color: #054f56; text-decoration: underline; }
.tws-media-breadcrumbs > span[aria-hidden] { color: #adbbbf; }
.tws-media-intro { margin: 0 0 38px; padding: 0; }
.tws-media h1 { margin: 0; color: #172c35; font: 800 clamp(34px, 4.1vw, 52px)/1.12 Arial, sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.tws-media-intro > p { margin: 18px 0 0; color: #586d76; font-size: 18px; line-height: 1.65; }
.tws-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.tws-media-card { min-width: 0; margin: 0; }
.tws-media-card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: #172c35; background: #fff; border: 1px solid #dfe8eb; border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tws-media-card__link:focus-visible { outline: 3px solid #08717a; outline-offset: 4px; }
.tws-media-card__image { aspect-ratio: 16 / 10; overflow: hidden; background: #eef5f6; }
.tws-media-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.tws-media-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #08717a; background: linear-gradient(135deg, #edf7f7, #e2edef); }
.tws-media-card__placeholder svg { width: 68px; height: 68px; opacity: .6; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.tws-media-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.tws-media-date { display: block; color: #6c7c83; font-size: 13px; line-height: 1.5; }
.tws-media-card h2 { margin: 12px 0 10px; color: #172c35; font: 700 21px/1.35 Arial, sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tws-media-card__body > p { display: -webkit-box; margin: 0 0 22px; overflow: hidden; color: #586d76; font-size: 15px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tws-media-card__more { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #e8eef0; color: #08717a; font-size: 14px; font-weight: 700; }
.tws-media-card__more > span { display: none; }
@media (hover: hover) {
  .tws-media-card__link:hover { transform: translateY(-4px); border-color: #a9d1d6; box-shadow: 0 14px 30px rgba(17, 61, 70, .08); }
}
.tws-media-empty { display: flex; min-height: 292px; flex-direction: column; justify-content: center; align-items: center; padding: 44px 24px; border: 1px solid #e3ecee; border-radius: 18px; background: #f6f9fa; text-align: center; }
.tws-media-empty__icon { display: grid; width: 70px; height: 70px; margin-bottom: 20px; place-items: center; border: 1px solid #cde3e6; border-radius: 20px; background: #eaf4f5; color: #08717a; }
.tws-media-empty__icon svg { width: 39px; height: 39px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tws-media-empty h2 { margin: 0 0 10px; color: #172c35; font: 700 25px/1.3 Arial, sans-serif; letter-spacing: -.02em; }
.tws-media-empty p { margin: 0; color: #60767e; font-size: 16px; line-height: 1.6; }
.tws-media-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 48px; padding: 28px 32px; background: #edf6f6; border: 1px solid #d7e9eb; border-radius: 16px; }
.tws-media-cta h2 { margin: 0 0 7px; color: #172c35; font: 700 22px/1.3 Arial, sans-serif; letter-spacing: -.02em; }
.tws-media-cta p { margin: 0; color: #526b74; font-size: 15px; }
.tws-media-cta .tws-button { flex: 0 0 auto; }
.tws-media-load-more-wrap { margin-top: 40px; text-align: center; overflow-anchor: none; }
.tws-media-load-more { display: inline-flex; min-width: 200px; min-height: 50px; align-items: center; justify-content: center; padding: 12px 28px; border: 1px solid #08717a; border-radius: 9px; background: #08717a; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5; transition: background .2s, border-color .2s; }
.tws-media-load-more:hover { background: #065b63; border-color: #065b63; color: #fff; }
.tws-media-load-more:focus-visible { outline: 3px solid #08717a; outline-offset: 4px; }
.tws-media-load-more[aria-disabled="true"] { opacity: .7; cursor: wait; }
.tws-media-load-more[hidden] { display: none; }
.tws-media-load-more-status { margin: 16px 0 0; color: #586d76; font-size: 14px; }
.tws-media-load-more-status:empty { margin: 0; }
.tws-media-article { width: 100%; max-width: none; min-width: 0; margin: 0 auto; }
.tws-media-article__header { margin-bottom: 32px; }
.tws-media-article__header .tws-media-date { margin-bottom: 14px; }
.tws-media-article h1 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.18; }
.tws-media-article__lead { margin: 22px 0 0; color: #536c77; font-size: 20px; line-height: 1.6; }
.tws-media-article__cover { margin: 0 0 36px; }
.tws-media-article__cover img { display: block; width: 100%; height: auto; border-radius: 16px; }
.tws-media-prose { color: #304b56; font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.tws-media-prose > :first-child { margin-top: 0; }
.tws-media-prose p { margin: 0 0 24px; }
.tws-media-prose h2 { margin: 40px 0 18px; color: #172c35; font: 700 28px/1.3 Arial, sans-serif; }
.tws-media-prose h3 { margin: 30px 0 14px; color: #172c35; font: 700 22px/1.4 Arial, sans-serif; }
.tws-media-prose a { color: #08717a; text-decoration: underline; text-underline-offset: 3px; }
.tws-media-prose a:hover { color: #054f56; }
.tws-media-prose ul, .tws-media-prose ol { margin: 0 0 24px; padding-left: 26px; }
.tws-media-prose li { margin-bottom: 8px; }
.tws-media-prose ul li { list-style: disc; }
.tws-media-prose ol li { list-style: decimal; }
.tws-media-prose img, .tws-media-prose video { max-width: 100%; height: auto; border-radius: 12px; }
.tws-media-prose figure { max-width: 100%; margin: 28px 0; }
.tws-media-prose figcaption { color: #6c7c83; font-size: 14px; line-height: 1.6; }
.tws-media-prose blockquote { margin: 28px 0; padding: 20px 24px; border-left: 3px solid #0ca6b2; background: #f1f7f7; }
.tws-media-prose .wp-block-table { overflow-x: auto; }
/* Classic Editor inserts a line break between adjacent FAQ shortcodes. */
.tws-media-prose .tws-editor-faq + br,
.tws-media-prose .tws-editor-faq + p:empty { display: none; }
.tws-media-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tws-media-prose td, .tws-media-prose th { padding: 10px 12px; border: 1px solid #dce6e9; }
.tws-media-back { display: inline-flex; min-height: 44px; align-items: center; margin-top: 24px; color: #08717a; font-weight: 700; }
.tws-media-back:hover { text-decoration: underline; }
.tws-media-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid #e1e9ec; }
.tws-media-related > h2 { margin: 0 0 26px; color: #172c35; font: 700 30px/1.3 Arial, sans-serif; }
.tws-media :focus-visible { outline-color: #08717a; }
@media (max-width: 960px) { .tws-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .tws-media { padding: 20px 0 44px; }
  .tws-media-breadcrumbs { gap: 6px 9px; margin-bottom: 28px; font-size: 12px; }
  .tws-media-intro { margin-bottom: 28px; }
  .tws-media-intro > p { font-size: 16px; }
  .tws-media-desktop-break { display: none; }
  .tws-media-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tws-media-card__body { padding: 22px; }
  .tws-media-empty { min-height: 280px; padding: 36px 20px; }
  .tws-media-empty h2 { font-size: 23px; }
  .tws-media-empty p { font-size: 15px; }
  .tws-media-cta { align-items: stretch; flex-direction: column; gap: 22px; margin-top: 28px; padding: 24px; }
  .tws-media-cta h2 { font-size: 21px; }
  .tws-media-cta .tws-button { width: 100%; }
  .tws-media-article__lead { font-size: 18px; }
  .tws-media-prose { font-size: 17px; }
  .tws-media-prose h2 { font-size: 25px; }
  .tws-media-related { margin-top: 40px; padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tws-media *, .tws-media *::before, .tws-media *::after { transition: none !important; transform: none !important; }
}

/* Author and contents follow the Nemanbus structure in the TVS visual system. */
.tws-media-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.tws-media-article__body { grid-column: 1; grid-row: 1; min-width: 0; width: 100%; }
.tws-media-reading-layout > .tws-media-article__body:only-child { grid-column: 1 / -1; }
.tws-media-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100dvh - 48px); min-height: 0; }
.admin-bar .tws-media-sidebar { top: 56px; max-height: calc(100dvh - 80px); }
.tws-media-author-card, .tws-media-toc { border: 1px solid #dce6e9; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(17, 61, 70, .045); }
.tws-media-author-card { position: relative; display: flex; flex: 0 0 auto; gap: 14px; align-items: center; padding: 22px 18px; color: #172c35; transition: border-color .2s, box-shadow .2s; }
.tws-media-author-card:hover { color: #172c35; border-color: #08717a; box-shadow: 0 12px 28px rgba(17, 61, 70, .09); }
.tws-media-author-avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; }
.tws-media-author-card__text { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.tws-media .tws-media-kicker { margin: 0; color: #08717a; font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tws-media-author-card strong { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.tws-media-author-card__text > span:last-child { color: #586d76; font-size: 12px; line-height: 1.4; }
.tws-media-toc { display: flex; min-height: 0; overflow: hidden; }
.tws-media-toc details { display: flex; min-height: 0; width: 100%; flex-direction: column; }
.tws-media-toc summary { position: relative; padding: 20px 22px; color: #172c35; cursor: pointer; font-size: 18px; font-weight: 700; list-style: none; }
.tws-media-toc summary::-webkit-details-marker { display: none; }
.tws-media-toc summary::after { position: absolute; right: 22px; content: '+'; color: #08717a; }
.tws-media-toc details[open] summary::after { content: '−'; }
.tws-media-toc ol { max-height: calc(100dvh - 300px); margin: 0; padding: 0 12px 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b5d0d3 transparent; }
.admin-bar .tws-media-toc ol { max-height: calc(100dvh - 332px); }
.tws-media-toc li { margin: 0; list-style: none; }
.tws-media-toc a { display: block; padding: 9px 10px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: #526b74; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.tws-media-toc a:hover, .tws-media-toc a[aria-current] { border-left-color: #08717a; background: #edf6f6; color: #075b63; }
.tws-media-toc__level-3 a { padding-left: 22px; font-size: 12px; }
.tws-media-prose h2[id], .tws-media-prose h3[id] { scroll-margin-top: 32px; }
.admin-bar .tws-media-prose h2[id], .admin-bar .tws-media-prose h3[id] { scroll-margin-top: 76px; }
.tws-media-article-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-bottom: 16px; color: #60737b; font-size: 12px; line-height: 1.6; }
.tws-media-author-profile { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 44px; margin-bottom: 58px; padding: 38px; border: 1px solid #d7e9eb; border-radius: 20px; background: #f0f7f7; }
.tws-media-author-profile figure { margin: 0; }
.tws-media-author-profile img { display: block; width: 240px; height: 240px; border-radius: 18px; object-fit: cover; }
.tws-media-author-profile h1 { margin: 12px 0; }
.tws-media-author-profile__role { margin: 0 0 22px; color: #536c77; font-size: 20px; }
.tws-media-author-profile__bio { color: #304b56; font-size: 17px; line-height: 1.8; }
.tws-media-author-profile__bio p { margin: 0 0 14px; }
.tws-media-author-profile__bio h2 { margin: 0 0 10px; color: #172c35; font: 700 22px/1.3 Arial, sans-serif; }
.tws-media-author-profile__link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; margin-top: 6px; color: #08717a; font-weight: 700; }
.tws-media-author-profile__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tws-media-author-articles__heading { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; margin: 0 0 26px; }
.tws-media-author-articles__heading h2 { margin: 0; color: #172c35; font: 700 30px/1.3 Arial, sans-serif; }
.tws-media-author-articles__heading > span { color: #60737b; font-size: 14px; }
@media (max-width: 1040px) {
  .tws-media-reading-layout { display: flex; flex-direction: column; gap: 28px; }
  .tws-media-sidebar, .admin-bar .tws-media-sidebar { position: static; width: 100%; max-height: none; }
  .tws-media-toc ol, .admin-bar .tws-media-toc ol { max-height: 320px; }
  .tws-media-author-card { padding: 18px 22px; }
  .tws-media-author-card__text > span:last-child { font-size: 13px; }
}
@media (max-width: 680px) {
  .tws-media-author-profile { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 24px; margin-bottom: 36px; }
  .tws-media-author-profile figure { max-width: 180px; }
  .tws-media-author-profile img { width: 180px; height: 180px; }
  .tws-media-author-profile__role { font-size: 18px; }
  .tws-media-author-articles__heading h2 { font-size: 26px; }
  .tws-media-toc ol, .admin-bar .tws-media-toc ol { max-height: 240px; }
}
