:root {
  --tpk-navy: #10243e;
  --tpk-deep: #0a172a;
  --tpk-accent: #155ab5;
  --tpk-accent-dark: #103d83;
  --tpk-ice: #e8f3ff;
  --tpk-paper: #f7fafe;
  --tpk-white: #fff;
  --tpk-text: #17283e;
  --tpk-muted: #52647a;
  --tpk-line: #dde7f2;
  --tpk-radius: 17px;
  --tpk-frame: min(100% - 44px, 1260px);
  --tpk-header-height: 78px;
  --tpk-font: Tahoma, Arial, sans-serif;
}
.tpk-theme { margin: 0; color: var(--tpk-text); background: linear-gradient(#f0f7ff,#f9fbff 690px,#fff 2200px); font: 16px/1.9 var(--tpk-font); }
.tpk-theme *, .tpk-theme *::before, .tpk-theme *::after { box-sizing: border-box; }
.tpk-theme a { color: var(--tpk-accent-dark); text-underline-offset: 3px; }
.tpk-theme :is(a,button,input,summary):focus-visible { outline: 3px solid #2478d2; outline-offset: 3px; }
.tpk-theme button, .tpk-theme input { font: inherit; }
.tpk-theme button { cursor: pointer; }
.tpk-theme img { max-width: 100%; height: auto; }
.tpk-theme [hidden], .tpk-theme dialog:not([open]) { display: none !important; }
.tpk-theme :where(h1,h2,h3) { color: var(--tpk-navy); line-height: 1.55; overflow-wrap: anywhere; }
.tpk-theme :where(h1,h2,h3,[id]) { scroll-margin-top: 112px; }
.tpk-container { width: var(--tpk-frame); margin-inline: auto; }
.tpk-skip, .tpk-sr, .tpk-theme .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tpk-skip:focus { z-index: 120; inset: 8px auto auto 8px; width: auto; height: auto; overflow: visible; clip-path: none; background: white; padding: 9px 14px; }
.tpk-header-slot { position: relative; min-height: var(--tpk-header-height); }
.tpk-scroll-trigger { position: absolute; inset-block-start: 110px; width: 1px; height: 1px; pointer-events: none; }
.tpk-site-header { background: #fff; border-bottom: 1px solid var(--tpk-line); z-index: 40; }
@media (min-width: 901px) {
  .tpk-site-header.tpk-stuck { position: fixed; inset: 0 0 auto; box-shadow: 0 5px 15px #0b274212; }
  .admin-bar .tpk-site-header.tpk-stuck { inset-block-start: var(--wp-admin--admin-bar--height,32px); }
}
.tpk-topbar { display: flex; min-height: calc(var(--tpk-header-height) - 1px); align-items: center; justify-content: space-between; gap: 18px; position: relative; }
.tpk-theme .tpk-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tpk-navy); text-decoration: none; line-height: 1.45; flex-shrink: 0; }
.tpk-brand strong { font-size: 17px; }
.tpk-brand small { display: block; font-size: 11px; color: var(--tpk-muted); }
.tpk-brand-img, .tpk-brand-icon { width: 43px; height: 43px; object-fit: contain; border-radius: 9px; }
.tpk-header-actions, .tpk-desktop-nav, .tpk-desktop-nav > ul { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 20px); }
.tpk-desktop-nav ul, .tpk-drawer ul, .tpk-footer-nav ul, .tpk-quick-nav ul, .tpk-related ul { list-style: none; padding: 0; margin: 0; }
.tpk-desktop-nav a, .tpk-desktop-nav summary { color: var(--tpk-navy); font-weight: 700; text-decoration: none; font-size: .88rem; }
.tpk-desktop-nav a:hover, .tpk-mega summary:hover { color: var(--tpk-accent); text-decoration: underline; }
.tpk-desktop-nav > ul > li { position: relative; }
.tpk-desktop-nav .sub-menu { display: none; min-width: 185px; position: absolute; inset-block-start: 100%; inset-inline-start: 0; background: #fff; border: 1px solid var(--tpk-line); padding: 9px; border-radius: 9px; z-index: 2; }
.tpk-desktop-nav li:hover > .sub-menu, .tpk-desktop-nav li:focus-within > .sub-menu { display: grid; gap: 6px; }
.tpk-mega summary, .tpk-header-search summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 7px; }
.tpk-theme summary::-webkit-details-marker { display: none; }
.tpk-mega summary::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translateY(-2px); }
.tpk-mega[open] summary::after { transform: rotate(135deg); }
.tpk-mega-panel { position: absolute; top: calc(100% - 3px); inset-inline: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 21px; background: #fff; border: 1px solid var(--tpk-line); border-radius: 15px; box-shadow: 0 16px 34px #10243e20; }
.tpk-nav-column > p { font-weight: 800; margin: 0 0 7px; color: var(--tpk-navy); }
.tpk-nav-column li a { display: block; padding: 5px 0; }
.tpk-header-search { position: relative; }
.tpk-header-search summary, .tpk-menu-button, .tpk-drawer-close { width: 44px; min-height: 44px; justify-content: center; display: grid; place-items: center; border: 1px solid var(--tpk-line); border-radius: 10px; color: var(--tpk-navy); background: #fff; }
.tpk-header-search .tpk-search-form { position: absolute; inset-block-start: calc(100% + 5px); inset-inline-end: 0; width: min(340px, 70vw); padding: 9px; border: 1px solid var(--tpk-line); border-radius: 12px; background: #fff; }
.tpk-theme .tpk-call, .tpk-search-form button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; min-height: 45px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: var(--tpk-accent); font-weight: 800; font-size: .87rem; text-decoration: none; white-space: nowrap; }
.tpk-theme .tpk-call:hover, .tpk-search-form button:hover { background: var(--tpk-accent-dark); }
.tpk-search-form { display: flex; gap: 7px; width: min(100%, 430px); }
.tpk-search-form label { flex: 1; min-width: 0; }
.tpk-search-form input { min-height: 45px; width: 100%; padding: 8px 10px; border: 1px solid #b7cbe3; border-radius: 9px; background: #fff; color: var(--tpk-navy); }
.tpk-mobile-menu-link, .tpk-menu-button { display: none; }
.tpk-drawer { width: min(390px, calc(100% - 24px)); max-width: none; margin: 0; margin-inline-start: 0; inset: 0 0 0 auto; max-height: none; height: 100%; overflow: auto; border: 0; padding: 20px; color: var(--tpk-navy); background: #fff; }
.tpk-drawer[open] { animation: tpk-drawer-enter .22s ease-out; }
.tpk-drawer::backdrop { background: #0a172a89; }
@keyframes tpk-drawer-enter { from { transform: translateX(100%); } }
html.tpk-drawer-open { overflow: hidden; }
.tpk-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.tpk-drawer-close { font-size: 1.45rem; }
.tpk-drawer nav { margin-top: 15px; }
.tpk-drawer nav a, .tpk-drawer nav summary { display: block; padding: 9px 5px; min-height: 44px; }
.tpk-drawer nav details { border-top: 1px solid var(--tpk-line); }
.tpk-drawer nav details ul { padding-inline-start: 14px; }
.tpk-drawer nav .sub-menu { padding-inline-start: 12px; }
.tpk-main { padding-block: clamp(18px, 3vw, 44px) clamp(36px, 6vw, 76px); }
.tpk-reading-grid { display: grid; gap: 22px; align-items: start; }
.tpk-reading-grid.tpk-with-related { grid-template-columns: minmax(0, 1fr) minmax(210px, 25%); }
.tpk-reading, .tpk-entry { min-width: 0; }
.tpk-entry { overflow-wrap: anywhere; }
.tpk-theme .tpk-entry :is(p, figcaption) a:not([class*="call"], [class*="button"], [class*="btn"]) {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}
.tpk-theme:not(.home) .tpk-entry { padding: clamp(14px, 2.7vw, 29px); border: 1px solid var(--tpk-line); background: #fff; border-radius: var(--tpk-radius); }
.tpk-role-guide .tpk-entry > :where(p,figure,ul,ol) { max-width: 75ch; }
.tpk-entry :where(table) { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.tpk-entry :where(th,td) { padding: .65em .75em; border: 1px solid var(--tpk-line); }
.tpk-entry figure { max-width: 100%; margin-inline: 0; }
.tpk-entry figcaption { color: var(--tpk-muted); font-size: .85rem; }
.tpk-entry img { border-radius: 10px; }
.tpk-entry iframe { max-width: 100%; }
.tpk-entry .tpk-page .tpk-wrap { padding-inline: 0; max-width: none; }
.tpk-entry .tpk-page { max-width: 100%; }
.tpk-entry .tpk-page .tpk-section, .tpk-entry .tpk-section { padding: clamp(17px, 3vw, 30px); border: 1px solid var(--tpk-line); border-radius: var(--tpk-radius); background: #fff; margin-block: 17px; }
.tpk-entry .tpk-page .tpk-section h2 { margin-top: 0; }
.tpk-entry .tpk-faq details { padding: 10px 13px; margin-block: 7px; border: 1px solid var(--tpk-line); border-radius: 10px; }
.tpk-entry .tpk-faq summary { cursor: pointer; font-weight: 800; }
.tpk-entry #tpk-benefits { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); gap: 8px; }
.tpk-entry #tpk-benefits > :not(h3) { grid-column: 1 / -1; }
.tpk-entry #tpk-benefits h3 { font-size: .95rem; margin: 0; }
.tpk-entry #tpk-benefits h3 a { display: block; padding: 10px; border: 1px solid var(--tpk-line); background: var(--tpk-paper); border-radius: 10px; }
.tpk-entry #tpk-stats h3 { color: var(--tpk-accent-dark); border-inline-start: 3px solid #86baf0; padding-inline-start: 10px; }
.tpk-crumb ol { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--tpk-muted); font-size: .78rem; }
.tpk-crumb li:not(:last-child)::after { content: '/'; margin-inline-start: 7px; opacity: .7; }
.tpk-title-panel, .tpk-empty { padding: clamp(20px, 4vw, 42px); margin-bottom: 18px; border: 1px solid var(--tpk-line); border-radius: var(--tpk-radius); background: linear-gradient(125deg,#fff,#eaf4ff); }
.tpk-title-panel h1, .tpk-empty h1 { margin: 2px 0; font-size: clamp(1.6rem, 3.8vw, 2.5rem); }
.tpk-eyebrow { color: var(--tpk-accent-dark); font-size: .78rem; margin: 0; font-weight: 800; }
.tpk-related { background: #fff; border: 1px solid var(--tpk-line); border-radius: var(--tpk-radius); padding: 15px; margin-top: 18px; }
.tpk-related h2 { font-size: 1rem; margin: 0 0 7px; }
.tpk-related li a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--tpk-line); font-size: .87rem; }
.tpk-related-call { margin-top: 12px; }
.tpk-toc-box { padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--tpk-line); background: #fff; border-radius: 12px; }
.tpk-toc-box summary { cursor: pointer; font-weight: 800; }
.tpk-final-call { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; color: #fff; background: var(--tpk-navy); border-radius: 14px; }
.tpk-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px,100%),1fr)); gap: 14px; }
.tpk-card { overflow: hidden; background: #fff; border: 1px solid var(--tpk-line); border-radius: var(--tpk-radius); min-width: 0; }
.tpk-card-photo { display: block; background: var(--tpk-ice); }
.tpk-card-photo img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.tpk-card-body { padding: 16px; }
.tpk-card h2 { font-size: 1.02rem; margin: 0; }
.tpk-card h2 a { text-decoration: none; }
.tpk-card h2 a:hover { text-decoration: underline; }
.tpk-card p { margin: 7px 0 0; color: var(--tpk-muted); font-size: .85rem; }
.tpk-home-guides { margin-top: 30px; }
.tpk-quick-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.tpk-quick-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid #bbd4f1; background: #f0f7ff; border-radius: 9px; font-weight: 800; font-size: .86rem; text-decoration: none; }
.tpk-listing .pagination { margin-top: 24px; }
.tpk-listing .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.tpk-listing .page-numbers { display: inline-grid; min-height: 44px; min-width: 44px; place-items: center; border: 1px solid var(--tpk-line); padding-inline: 7px; border-radius: 8px; }
.tpk-listing .current { background: var(--tpk-accent); color: #fff; }
.tpk-site-footer { border-top: 1px solid var(--tpk-line); background: #eef5fd; padding-block: 28px; }
.tpk-footer-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.tpk-footer-nav { display: flex; flex-wrap: wrap; gap: 18px 36px; }
.tpk-footer-nav a { display: inline-flex; min-height: 34px; align-items: center; font-size: .89rem; }
.tpk-footer-about p { margin: 5px 0 10px; }
.tpk-mobile-call-bar { display: none; }
@media (max-width: 900px) {
  :root { --tpk-header-height: 64px; --tpk-frame: min(100% - 24px, 1260px); }
  .tpk-header-slot.tpk-header-sticky { position: sticky; inset-block-start: 0; z-index: 40; background: #fff; }
  .tpk-header-sticky .tpk-scroll-trigger { display: none; }
  .tpk-desktop-nav, .tpk-header-search { display: none; }
  .tpk-menu-button, .tpk-mobile-menu-link { display: grid; place-items: center; }
  .tpk-topbar { gap: 8px; }
  .tpk-brand strong { font-size: .91rem; }
  .tpk-brand-img, .tpk-brand-icon { width: 36px; height: 36px; }
  .tpk-header-actions { gap: 6px; }
  .tpk-header-call { min-height: 44px; padding: 7px 9px !important; }
  .tpk-reading-grid.tpk-with-related { grid-template-columns: minmax(0, 1fr); }
  .tpk-related-list { display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; padding: 4px 2px 8px !important; }
  .tpk-related li { flex: 0 0 min(75vw,210px); scroll-snap-align: start; }
  .tpk-related li a { border: 1px solid var(--tpk-line); padding: 10px; height: 100%; border-radius: 9px; }
  .tpk-related-call { display: none; }
  .tpk-mobile-call-bar { display: flex; position: fixed; inset: auto 0 0; z-index: 32; justify-content: center; padding: 6px 12px max(7px, env(safe-area-inset-bottom)); background: #ffffffef; border-top: 1px solid var(--tpk-line); }
  .tpk-mobile-call-bar .tpk-call { width: min(100%, 450px); }
  .tpk-has-mobile-call .tpk-main { padding-bottom: calc(clamp(36px,6vw,76px) + 58px); }
  .tpk-drawer-open .tpk-mobile-call-bar { visibility: hidden; }
  .tpk-footer-grid { grid-template-columns: 1fr; }
  .tpk-footer-compact .tpk-footer-about p { display: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .admin-bar .tpk-header-slot.tpk-header-sticky { inset-block-start: var(--wp-admin--admin-bar--height,32px); }
}
@media (max-width: 380px) { .tpk-brand small { display: none; } .tpk-header-call svg { display: none; } }
@media (prefers-reduced-motion: reduce) { .tpk-drawer[open] { animation: none; } }
