:root {
  --tp-bg: #ffffff;
  --tp-surface: #ffffff;
  --tp-surface-soft: #f7faff;
  --tp-surface-muted: #f1f5f9;
  --tp-text: #111827;
  --tp-text-soft: #536174;
  --tp-text-faint: #7b8798;
  --tp-line: #dbe4ef;
  --tp-line-soft: #e9eef5;
  --tp-navy: #0d2b54;
  --tp-blue: #1565d8;
  --tp-blue-bright: #2563eb;
  --tp-blue-soft: #eaf2ff;
  --tp-green: #10965d;
  --tp-green-soft: #e8f8f1;
  --tp-orange: #e9650b;
  --tp-orange-soft: #fff1e6;
  --tp-purple: #6d28d9;
  --tp-shadow: 0 14px 38px rgba(26, 55, 91, .08);
  --tp-shadow-strong: 0 20px 60px rgba(15, 39, 72, .16);
  --tp-radius: 16px;
  --tp-radius-sm: 11px;
  --tp-container: 1390px;
  --tp-header-height: 74px;
  --tp-transition: 180ms ease;
  color-scheme: light;
}

html.tp-dark {
  --tp-bg: #09111e;
  --tp-surface: #101b2b;
  --tp-surface-soft: #0d1726;
  --tp-surface-muted: #172235;
  --tp-text: #f5f8fc;
  --tp-text-soft: #b2bfd0;
  --tp-text-faint: #8795a8;
  --tp-line: #26354a;
  --tp-line-soft: #1e2b3d;
  --tp-navy: #eef5ff;
  --tp-blue: #6ca4ff;
  --tp-blue-bright: #78aaff;
  --tp-blue-soft: #142d52;
  --tp-green: #54d69a;
  --tp-green-soft: #12382c;
  --tp-orange: #ff9a55;
  --tp-orange-soft: #3a2518;
  --tp-purple: #b99aff;
  --tp-shadow: 0 16px 42px rgba(0, 0, 0, .24);
  --tp-shadow-strong: 0 22px 66px rgba(0, 0, 0, .38);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--tp-transition), color var(--tp-transition);
}
body.tp-lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
svg { display: block; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tp-container { width: min(calc(100% - 48px), var(--tp-container)); margin-inline: auto; }
.tp-skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 9999;
  padding: 10px 16px; border-radius: 8px; background: var(--tp-blue-bright); color: #fff;
  transition: top var(--tp-transition);
}
.tp-skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }

/* Header */
.tp-header {
  position: sticky; top: 0; z-index: 1000;
  min-height: var(--tp-header-height);
  background: color-mix(in srgb, var(--tp-bg) 92%, transparent);
  border-bottom: 1px solid var(--tp-line-soft);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tp-header-inner { min-height: var(--tp-header-height); display: flex; align-items: center; gap: 34px; }
.tp-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.tp-logo-image { width: 184px; height: auto; display: block; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 190px; max-height: 48px; }
.tp-nav { margin-left: auto; }
.tp-nav .menu, .tp-footer-nav .menu { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; }
.tp-nav .menu { gap: clamp(22px, 3vw, 50px); }
.tp-nav a { display: block; padding: 23px 0; font-size: 15px; font-weight: 750; white-space: nowrap; position: relative; }
.tp-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 15px; height: 2px;
  border-radius: 999px; background: var(--tp-blue-bright); transition: left var(--tp-transition), right var(--tp-transition);
}
.tp-nav a:hover::after, .tp-nav .current-menu-item > a::after, .tp-nav .current-menu-ancestor > a::after { left: 0; right: 0; }
.tp-header-actions { display: flex; align-items: center; gap: 6px; margin-left: 24px; }
.tp-header-action, .tp-mobile-menu-button {
  border: 0; background: transparent; cursor: pointer; min-width: 42px; min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; position: relative;
  transition: background-color var(--tp-transition), color var(--tp-transition);
}
.tp-header-action:hover, .tp-mobile-menu-button:hover { background: var(--tp-surface-muted); color: var(--tp-blue); }
.tp-header-action svg, .tp-mobile-menu-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-header-action span { font-size: 13px; font-weight: 700; }
.tp-mode-sun { display: none; }
.tp-dark .tp-mode-moon { display: none; }
.tp-dark .tp-mode-sun { display: inline-flex; }
.tp-bookmark-count {
  position: absolute; right: -2px; top: -1px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; background: var(--tp-blue-bright); color: #fff; border-radius: 999px;
  font-size: 10px; line-height: 1;
}
.tp-mobile-menu-button { display: none; margin-left: auto; }
.tp-menu-close { display: none; }

/* Search dialog and bookmarks */
.tp-search-layer { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: start center; padding-top: 15vh; }
.tp-search-layer[hidden], .tp-panel-backdrop[hidden] { display: none; }
.tp-layer-backdrop, .tp-panel-backdrop { position: absolute; inset: 0; border: 0; background: rgba(3, 12, 27, .64); backdrop-filter: blur(4px); }
.tp-search-dialog {
  position: relative; z-index: 1; width: min(680px, calc(100% - 32px)); padding: 32px;
  background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: 20px; box-shadow: var(--tp-shadow-strong);
}
.tp-search-dialog > p { margin: 0 0 14px; color: var(--tp-navy); font-size: 20px; font-weight: 850; }
.tp-search-dialog form { display: flex; border: 1px solid var(--tp-line); border-radius: 12px; overflow: hidden; background: var(--tp-bg); }
.tp-search-dialog input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 0; outline: 0; background: transparent; color: var(--tp-text); }
.tp-search-dialog form button { width: 110px; border: 0; background: var(--tp-blue-bright); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 800; }
.tp-search-dialog form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.tp-dialog-close { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--tp-surface-muted); cursor: pointer; display: grid; place-items: center; }
.tp-dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.tp-panel-backdrop { position: fixed; z-index: 1490; }
.tp-bookmark-panel {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 1500; width: min(430px, 92vw);
  padding: 24px; background: var(--tp-surface); box-shadow: -16px 0 50px rgba(0,0,0,.24);
  transform: translateX(105%); transition: transform 240ms ease; overflow-y: auto;
}
.tp-bookmark-panel.is-open { transform: translateX(0); }
.tp-bookmark-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--tp-line); }
.tp-bookmark-head strong { display: block; font-size: 24px; color: var(--tp-navy); }
.tp-bookmark-head p { margin: 2px 0 0; color: var(--tp-text-soft); font-size: 13px; }
.tp-bookmark-head button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--tp-surface-muted); cursor: pointer; display: grid; place-items: center; }
.tp-bookmark-head svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.tp-bookmark-list { display: grid; gap: 10px; padding-top: 18px; }
.tp-bookmark-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border: 1px solid var(--tp-line); border-radius: 12px; background: var(--tp-bg); }
.tp-bookmark-item a { min-width: 0; }
.tp-bookmark-item small { display: block; color: var(--tp-blue); font-weight: 750; }
.tp-bookmark-item strong { display: block; margin-top: 4px; color: var(--tp-text); line-height: 1.4; }
.tp-bookmark-item button { align-self: center; border: 0; background: transparent; color: var(--tp-text-faint); cursor: pointer; font-size: 12px; }
.tp-bookmark-empty { padding: 48px 16px; text-align: center; color: var(--tp-text-soft); }

/* Hero */
.tp-home-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--tp-line-soft);
  background:
    radial-gradient(circle at 84% 16%, rgba(37,99,235,.09), transparent 26%),
    linear-gradient(110deg, color-mix(in srgb, var(--tp-bg) 88%, #eaf3ff) 0%, var(--tp-bg) 55%, color-mix(in srgb, var(--tp-bg) 88%, #eef7ff) 100%);
}
.tp-home-hero-grid { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, .98fr); align-items: center; gap: 46px; padding-top: 34px; padding-bottom: 26px; }
.tp-hero-copy { min-width: 0; position: relative; z-index: 2; }
.tp-hero-badge {
  width: fit-content; margin: 0 0 20px; padding: 7px 12px; border-radius: 999px;
  background: var(--tp-blue-soft); color: var(--tp-blue); font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 5px;
}
.tp-hero-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tp-hero-copy h1 { margin: 0; color: var(--tp-text); font-size: clamp(32px, 3vw, 46px); line-height: 1.27; letter-spacing: -.04em; font-weight: 900; }
.tp-hero-copy h1 > span { display: block; }
.tp-hero-accent { color: var(--tp-blue); }
.tp-hero-description { margin: 20px 0 18px; color: var(--tp-text-soft); font-size: 17px; line-height: 1.7; }
.tp-hero-search {
  width: min(100%, 620px); display: flex; align-items: center; height: 54px; overflow: hidden;
  border: 1px solid var(--tp-line); border-radius: 10px; background: var(--tp-surface); box-shadow: 0 7px 24px rgba(23,63,112,.04);
}
.tp-hero-search > span { width: 48px; display: grid; place-items: center; color: var(--tp-text-soft); }
.tp-hero-search > span svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tp-hero-search input { min-width: 0; flex: 1; height: 100%; padding: 0 12px 0 0; border: 0; outline: 0; color: var(--tp-text); background: transparent; }
.tp-hero-search input::placeholder { color: var(--tp-text-faint); }
.tp-hero-search button { align-self: stretch; min-width: 96px; border: 0; background: linear-gradient(135deg, var(--tp-blue-bright), #0757c9); color: #fff; display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-weight: 800; }
.tp-hero-search button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.tp-hero-tags { display: flex; flex-wrap: wrap; gap: 7px 20px; margin-top: 10px; }
.tp-hero-tags a { color: var(--tp-blue); font-size: 13px; font-weight: 750; }
.tp-hero-tags a:hover { text-decoration: underline; }
.tp-hero-visual { align-self: end; min-width: 0; display: flex; justify-content: flex-end; }
.tp-hero-visual img { width: min(100%, 720px); height: auto; }

/* Category cards */
.tp-category-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 20px; padding-bottom: 8px; }
.tp-category-card {
  min-width: 0; min-height: 158px; padding: 23px 24px; border: 1px solid var(--tp-line); border-radius: 13px;
  display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 18px; background: var(--tp-surface);
  transition: transform var(--tp-transition), box-shadow var(--tp-transition), border-color var(--tp-transition);
}
.tp-category-card:hover { transform: translateY(-3px); box-shadow: var(--tp-shadow); }
.tp-category-service { border-color: color-mix(in srgb, var(--tp-blue-bright) 28%, var(--tp-line)); }
.tp-category-software { border-color: color-mix(in srgb, var(--tp-green) 28%, var(--tp-line)); }
.tp-category-equipment { border-color: color-mix(in srgb, var(--tp-orange) 28%, var(--tp-line)); }
.tp-category-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; }
.tp-category-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.tp-category-service .tp-category-icon { background: var(--tp-blue-soft); color: var(--tp-blue-bright); }
.tp-category-software .tp-category-icon { background: var(--tp-green-soft); color: var(--tp-green); }
.tp-category-equipment .tp-category-icon { background: var(--tp-orange-soft); color: var(--tp-orange); }
.tp-category-content { min-width: 0; display: block; }
.tp-category-content > strong { display: block; margin-bottom: 5px; font-size: 20px; line-height: 1.35; font-weight: 900; }
.tp-category-service .tp-category-content > strong { color: var(--tp-blue); }
.tp-category-software .tp-category-content > strong { color: var(--tp-green); }
.tp-category-equipment .tp-category-content > strong { color: var(--tp-orange); }
.tp-category-content > span { display: block; color: var(--tp-text-soft); font-size: 13px; line-height: 1.65; }
.tp-category-content em { width: fit-content; display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; line-height: 1.3; font-style: normal; font-weight: 800; }
.tp-category-content em svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.tp-category-service em { color: var(--tp-blue); }
.tp-category-software em { color: var(--tp-green); }
.tp-category-equipment em { color: var(--tp-orange); }

/* Main comparison guides */
.tp-guide-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; padding-top: 4px; }
.tp-situation-guide, .tp-recent-guides { border: 1px solid var(--tp-line); border-radius: 13px; background: var(--tp-surface); overflow: hidden; }
.tp-section-heading { min-height: 48px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--tp-line-soft); }
.tp-section-heading h2 { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: -.02em; }
.tp-section-heading > a { color: var(--tp-text-faint); font-size: 12px; }
.tp-section-heading > a::after { content: " ›"; }
.tp-situation-guide { padding-bottom: 6px; }
.tp-situation-item { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; min-height: 53px; padding: 6px 15px; transition: background-color var(--tp-transition); }
.tp-situation-item:hover { background: var(--tp-surface-soft); }
.tp-situation-item > span:first-child { width: 30px; height: 30px; border-radius: 9px; background: var(--tp-blue-soft); color: var(--tp-blue-bright); display: grid; place-items: center; }
.tp-situation-item:nth-of-type(5) > span:first-child { background: var(--tp-orange-soft); color: var(--tp-orange); }
.tp-situation-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.tp-situation-item strong, .tp-situation-item small { display: block; }
.tp-situation-item strong { font-size: 12.5px; line-height: 1.35; }
.tp-situation-item small { margin-top: 1px; color: var(--tp-text-faint); font-size: 10.5px; line-height: 1.35; }
.tp-guide-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; padding: 11px 13px 14px; }
.tp-guide-card { min-width: 0; }
.tp-guide-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 1.72; overflow: hidden; border: 1px solid var(--tp-line-soft); border-radius: 9px;
  background: linear-gradient(145deg, var(--tp-surface-soft), var(--tp-bg));
}
.tp-guide-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.tp-guide-card:hover .tp-guide-thumb img { transform: scale(1.035); }
.tp-placeholder-mark { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--tp-blue); }
.tp-placeholder-mark svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2; }
.tp-placeholder-mark b { font-size: 12px; }
.tp-card-illustration { width: 64px; height: 64px; border-radius: 18px; background: var(--tp-blue-soft); color: var(--tp-blue-bright); display: grid; place-items: center; }
.tp-guide-card:nth-child(2) .tp-card-illustration { background: var(--tp-green-soft); color: var(--tp-green); }
.tp-guide-card:nth-child(4) .tp-card-illustration { background: var(--tp-orange-soft); color: var(--tp-orange); }
.tp-card-illustration svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-guide-card-body { padding: 8px 1px 0; }
.tp-guide-label { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: var(--tp-blue-soft); color: var(--tp-blue); font-size: 10px; font-weight: 800; }
.tp-guide-card:nth-child(2) .tp-guide-label { background: var(--tp-green-soft); color: var(--tp-green); }
.tp-guide-card:nth-child(4) .tp-guide-label { background: var(--tp-orange-soft); color: var(--tp-orange); }
.tp-guide-card h3 { margin: 6px 0 2px; font-size: 14px; line-height: 1.42; font-weight: 900; letter-spacing: -.02em; }
.tp-guide-card h3 a:hover { color: var(--tp-blue); }
.tp-guide-card p { margin: 0; color: var(--tp-text-soft); font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-guide-card time { display: block; margin-top: 5px; color: var(--tp-text-faint); font-size: 10px; }

/* Value strip and footer */
.tp-value-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--tp-line); border-radius: 13px; background: var(--tp-surface); }
.tp-value-item { min-width: 0; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 0 8px; }
.tp-value-item > span { width: 44px; height: 44px; border-radius: 50%; background: var(--tp-blue-soft); color: var(--tp-blue-bright); display: grid; place-items: center; }
.tp-value-item:nth-child(3) > span { background: var(--tp-green-soft); color: var(--tp-green); }
.tp-value-item:nth-child(5) > span { background: color-mix(in srgb, var(--tp-purple) 12%, var(--tp-bg)); color: var(--tp-purple); }
.tp-value-item svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tp-value-item strong { display: block; font-size: 13px; line-height: 1.35; }
.tp-value-item p { margin: 3px 0 0; color: var(--tp-text-soft); font-size: 10.5px; line-height: 1.45; }
.tp-footer { background: #142944; color: #fff; }
.tp-footer-inner { min-height: 76px; display: grid; grid-template-columns: 210px auto 1fr; align-items: center; gap: 38px; }
.tp-footer-logo { display: inline-flex; }
.tp-footer-logo .tp-logo-image { width: 150px; }
.tp-footer-nav .menu { gap: 28px; }
.tp-footer-nav a { color: rgba(255,255,255,.86); font-size: 12px; }
.tp-footer-nav a:hover { color: #fff; }
.tp-affiliate-notice { justify-self: end; margin: 0; color: rgba(255,255,255,.7); font-size: 11px; text-align: right; }
.tp-copyright { padding: 0 0 14px; color: rgba(255,255,255,.45); font-size: 10px; }

/* Inner pages */
.tp-content { padding-top: 54px; padding-bottom: 80px; min-height: 60vh; }
.tp-narrow-content, .tp-single-layout { max-width: 960px; }
.tp-page-header { max-width: 860px; margin-bottom: 32px; }
.tp-page-header .tp-eyebrow, .tp-eyebrow { margin: 0 0 7px; color: var(--tp-blue); font-weight: 850; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.tp-page-header h1 { margin: 0; color: var(--tp-navy); font-size: clamp(32px, 5vw, 50px); line-height: 1.24; letter-spacing: -.04em; }
.tp-page-header p, .tp-page-description { margin: 13px 0 0; color: var(--tp-text-soft); }
.tp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tp-post-card { min-width: 0; overflow: hidden; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); background: var(--tp-surface); transition: transform var(--tp-transition), box-shadow var(--tp-transition); }
.tp-post-card:hover { transform: translateY(-3px); box-shadow: var(--tp-shadow); }
.tp-post-card-thumb { aspect-ratio: 1.6; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--tp-blue-soft), var(--tp-surface-soft)); }
.tp-post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.tp-post-card:hover .tp-post-card-thumb img { transform: scale(1.035); }
.tp-post-card-thumb > span { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--tp-blue); }
.tp-post-card-thumb svg { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tp-post-card-body { padding: 20px; }
.tp-post-card-meta { color: var(--tp-blue); font-size: 12px; font-weight: 750; }
.tp-post-card h2 { margin: 7px 0 8px; font-size: 21px; line-height: 1.42; letter-spacing: -.025em; }
.tp-post-card p { margin: 0; color: var(--tp-text-soft); font-size: 14px; }
.tp-text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--tp-blue); font-size: 13px; font-weight: 850; }
.tp-text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.tp-pagination { margin-top: 36px; }
.tp-pagination .nav-links, .tp-pagination ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.tp-pagination a, .tp-pagination span { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--tp-line); border-radius: 9px; display: inline-grid; place-items: center; background: var(--tp-surface); font-size: 13px; }
.tp-pagination .current { background: var(--tp-blue-bright); border-color: var(--tp-blue-bright); color: #fff; }
.tp-empty { grid-column: 1 / -1; padding: 70px 24px; border: 1px dashed var(--tp-line); border-radius: var(--tp-radius); text-align: center; color: var(--tp-text-soft); background: var(--tp-surface-soft); }
.tp-empty strong { display: block; color: var(--tp-text); font-size: 21px; }
.tp-empty p { margin: 7px 0 0; }

/* Article */
.tp-article { padding: clamp(26px, 5vw, 58px); border: 1px solid var(--tp-line); border-radius: 22px; background: var(--tp-surface); box-shadow: var(--tp-shadow); }
.tp-article-header { margin-bottom: 28px; }
.tp-post-category { width: fit-content; margin-bottom: 12px; padding: 5px 10px; border-radius: 999px; background: var(--tp-blue-soft); color: var(--tp-blue); font-size: 12px; font-weight: 800; }
.tp-article-header h1 { margin: 0; color: var(--tp-navy); font-size: clamp(34px, 5vw, 52px); line-height: 1.24; letter-spacing: -.045em; }
.tp-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; color: var(--tp-text-faint); font-size: 13px; }
.tp-save-post { margin-left: auto; min-height: 38px; padding: 0 12px; border: 1px solid var(--tp-line); border-radius: 9px; background: var(--tp-bg); color: var(--tp-text-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tp-save-post.is-saved { color: var(--tp-blue); border-color: color-mix(in srgb, var(--tp-blue-bright) 40%, var(--tp-line)); background: var(--tp-blue-soft); }
.tp-save-post svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.tp-save-post.is-saved svg { fill: currentColor; }
.tp-featured-image { margin: 0 0 34px; overflow: hidden; border-radius: 16px; }
.tp-featured-image img { width: 100%; height: auto; }
.tp-entry-content { color: var(--tp-text); font-size: 17px; }
.tp-entry-content > *:first-child { margin-top: 0; }
.tp-entry-content h2, .tp-entry-content h3, .tp-entry-content h4 { color: var(--tp-navy); line-height: 1.35; letter-spacing: -.025em; scroll-margin-top: calc(var(--tp-header-height) + 24px); }
.tp-entry-content h2 { margin: 2.2em 0 .75em; font-size: 30px; }
.tp-entry-content h3 { margin: 1.8em 0 .65em; font-size: 24px; }
.tp-entry-content h4 { margin: 1.5em 0 .55em; font-size: 19px; }
.tp-entry-content p { margin: 0 0 1.3em; }
.tp-entry-content a { color: var(--tp-blue); text-decoration: underline; text-underline-offset: 3px; }
.tp-entry-content ul, .tp-entry-content ol { padding-left: 1.4em; }
.tp-entry-content li { margin: .35em 0; }
.tp-entry-content blockquote { margin: 1.6em 0; padding: 20px 24px; border-left: 4px solid var(--tp-blue-bright); border-radius: 0 12px 12px 0; background: var(--tp-blue-soft); color: var(--tp-text-soft); }
.tp-entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; display: block; overflow-x: auto; white-space: nowrap; }
.tp-entry-content th, .tp-entry-content td { padding: 12px 14px; border: 1px solid var(--tp-line); text-align: left; }
.tp-entry-content th { background: var(--tp-surface-muted); }
.tp-entry-content pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: #0c1727; color: #e7eef9; }
.tp-entry-content img { border-radius: 12px; }

/* Knowledge */
.tp-knowledge-header { max-width: 920px; }
.tp-knowledge-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -10px 0 28px; }
.tp-knowledge-tabs a { padding: 9px 16px; border: 1px solid var(--tp-line); border-radius: 999px; background: var(--tp-surface); font-size: 13px; font-weight: 800; }
.tp-knowledge-tabs a:hover { border-color: var(--tp-blue-bright); color: var(--tp-blue); }

/* Error */
.tp-error-page { display: grid; place-items: center; }
.tp-error-card { width: min(660px, 100%); padding: 50px; border: 1px solid var(--tp-line); border-radius: 22px; background: var(--tp-surface); text-align: center; box-shadow: var(--tp-shadow); }
.tp-error-card > span { display: block; color: var(--tp-blue); font-size: 72px; font-weight: 950; line-height: 1; }
.tp-error-card h1 { margin: 14px 0 8px; color: var(--tp-navy); }
.tp-error-card p { color: var(--tp-text-soft); }
.tp-error-card .tp-hero-search { margin: 24px auto 18px; }
.tp-primary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 10px; background: var(--tp-blue-bright); color: #fff; font-weight: 800; }

/* WordPress core */
.alignwide { margin-left: max(-8vw, -110px); margin-right: max(-8vw, -110px); max-width: none; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--tp-text-faint); font-size: 12px; }

/* Dark mode adjustments */
.tp-dark .tp-home-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(78,142,255,.12), transparent 28%),
    linear-gradient(110deg, #0b1626 0%, #09111e 55%, #0c1726 100%);
}
.tp-dark .tp-logo-image:not(.tp-footer .tp-logo-image) { filter: brightness(1.08) saturate(1.1); }
.tp-dark .tp-guide-thumb, .tp-dark .tp-post-card-thumb { background: linear-gradient(145deg, #17243a, #0f1a2a); }
.tp-dark .tp-footer { background: #07101d; }
.tp-dark .tp-hero-visual img { filter: brightness(.88) saturate(.92); }

/* Tablet */
@media (max-width: 1180px) {
  :root { --tp-container: 1040px; }
  .tp-header-inner { gap: 20px; }
  .tp-nav .menu { gap: 22px; }
  .tp-nav a { font-size: 14px; }
  .tp-header-action span { display: none; }
  .tp-home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(390px, .8fr); gap: 12px; }
  .tp-guide-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .tp-guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tp-guide-card:nth-child(5) { display: none; }
  .tp-value-strip { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .tp-footer-inner { grid-template-columns: 170px auto 1fr; gap: 24px; }
  .tp-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile navigation */
@media (max-width: 920px) {
  :root { --tp-header-height: 66px; }
  .tp-container { width: min(calc(100% - 32px), var(--tp-container)); }
  .tp-header-inner { min-height: var(--tp-header-height); gap: 8px; }
  .tp-logo-image { width: 154px; }
  .custom-logo { max-width: 160px; max-height: 42px; }
  .tp-mobile-menu-button { display: inline-flex; order: 3; }
  .tp-mobile-menu-button[aria-expanded="true"] .tp-menu-open { display: none; }
  .tp-mobile-menu-button[aria-expanded="true"] .tp-menu-close { display: inline-flex; }
  .tp-header-actions { margin-left: auto; gap: 0; }
  .tp-header-action { min-width: 39px; min-height: 39px; }
  .tp-header-action.tp-search-open span, .tp-header-action[data-tp-bookmark-open] span { display: none; }
  .tp-nav {
    position: fixed; left: 0; right: 0; top: var(--tp-header-height); max-height: calc(100vh - var(--tp-header-height));
    padding: 12px 16px 24px; overflow-y: auto; background: var(--tp-surface); border-bottom: 1px solid var(--tp-line); box-shadow: var(--tp-shadow);
    transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform 220ms ease, opacity 180ms ease, visibility 180ms ease;
  }
  .tp-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .tp-nav .menu { display: grid; gap: 3px; }
  .tp-nav a { padding: 13px 12px; border-radius: 10px; font-size: 15px; }
  .tp-nav a:hover { background: var(--tp-surface-muted); }
  .tp-nav a::after { display: none; }

  .tp-home-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 10px; padding-top: 30px; padding-bottom: 0; }
  .tp-hero-copy { text-align: center; }
  .tp-hero-badge { margin-inline: auto; }
  .tp-hero-copy h1 { font-size: clamp(32px, 7vw, 44px); }
  .tp-hero-description { font-size: 16px; }
  .tp-hero-search { margin-inline: auto; }
  .tp-hero-tags { justify-content: center; }
  .tp-hero-visual { justify-content: center; max-height: 360px; overflow: hidden; }
  .tp-hero-visual img { width: min(760px, 112%); margin-bottom: -20px; }

  .tp-category-section { grid-template-columns: 1fr; }
  .tp-category-card { min-height: 138px; }
  .tp-guide-layout { grid-template-columns: 1fr; }
  .tp-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-guide-card:nth-child(4) { display: none; }
  .tp-value-strip { grid-template-columns: repeat(2, 1fr); }
  .tp-footer-inner { grid-template-columns: 1fr; padding-top: 25px; padding-bottom: 20px; gap: 15px; text-align: center; }
  .tp-footer-logo { justify-self: center; }
  .tp-footer-nav .menu { justify-content: center; flex-wrap: wrap; gap: 10px 24px; }
  .tp-affiliate-notice { justify-self: center; text-align: center; }
  .tp-copyright { text-align: center; }
}

/* Small mobile */
@media (max-width: 640px) {
  .tp-container { width: min(calc(100% - 24px), var(--tp-container)); }
  .tp-logo-image { width: 140px; }
  .tp-header-actions .tp-header-action[data-tp-bookmark-open] { display: none; }
  .tp-search-dialog { padding: 24px 18px 20px; }
  .tp-search-dialog form button { width: 58px; }
  .tp-search-dialog form button span { display: none; }

  .tp-home-hero-grid { padding-top: 24px; }
  .tp-hero-badge { font-size: 11px; }
  .tp-hero-copy h1 { font-size: 31px; line-height: 1.3; }
  .tp-hero-description { margin-top: 15px; font-size: 14px; }
  .tp-hero-search { height: 50px; }
  .tp-hero-search > span { width: 40px; }
  .tp-hero-search input { font-size: 13px; }
  .tp-hero-search button { min-width: 55px; }
  .tp-hero-search button span { display: none; }
  .tp-hero-tags { gap: 5px 13px; }
  .tp-hero-tags a { font-size: 11px; }
  .tp-hero-visual { max-height: 270px; }
  .tp-hero-visual img { width: 120%; max-width: none; }

  .tp-category-section { padding-top: 14px; gap: 10px; }
  .tp-category-card { min-height: 0; padding: 17px; grid-template-columns: 58px 1fr; gap: 13px; }
  .tp-category-icon { width: 54px; height: 54px; }
  .tp-category-icon svg { width: 31px; height: 31px; }
  .tp-category-content > strong { font-size: 17px; }
  .tp-category-content > span { font-size: 12px; }
  .tp-category-content em { font-size: 11px; }

  .tp-guide-layout { gap: 10px; }
  .tp-situation-guide { order: 2; }
  .tp-recent-guides { order: 1; }
  .tp-guide-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 11px; padding: 11px 12px 16px; scrollbar-width: none; }
  .tp-guide-grid::-webkit-scrollbar { display: none; }
  .tp-guide-card, .tp-guide-card:nth-child(4), .tp-guide-card:nth-child(5) { display: block; flex: 0 0 76%; scroll-snap-align: start; }
  .tp-guide-thumb { aspect-ratio: 1.75; }
  .tp-guide-card h3 { font-size: 15px; }
  .tp-situation-item { min-height: 57px; }

  .tp-value-strip { grid-template-columns: 1fr; padding: 10px 12px; gap: 2px; }
  .tp-value-item { min-height: 64px; border-bottom: 1px solid var(--tp-line-soft); }
  .tp-value-item:last-child { border-bottom: 0; }
  .tp-value-item p { font-size: 11px; }

  .tp-content { padding-top: 34px; padding-bottom: 55px; }
  .tp-page-header h1 { font-size: 34px; }
  .tp-post-grid { grid-template-columns: 1fr; gap: 15px; }
  .tp-post-card-body { padding: 17px; }
  .tp-article { padding: 22px 17px; border-radius: 15px; }
  .tp-article-header h1 { font-size: 34px; }
  .tp-article-meta { align-items: flex-start; }
  .tp-save-post { width: 100%; margin-left: 0; justify-content: center; }
  .tp-entry-content { font-size: 16px; }
  .tp-entry-content h2 { font-size: 26px; }
  .tp-entry-content h3 { font-size: 21px; }
  .alignwide { margin-left: 0; margin-right: 0; }
  .tp-error-card { padding: 38px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* v1.1 footer/header refinements */
.tp-hero-copy h1 { max-width: 14.5em; }
.tp-header-notice { min-width: 42px; }
.tp-header-notice span { display: none; }
.tp-header-notice .tp-bookmark-count { top: -3px; right: -4px; }
.tp-footer { background: var(--tp-surface); color: var(--tp-text); border-top: 1px solid var(--tp-line-soft); }
.tp-footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, auto); gap: 18px; align-items: center; padding-top: 18px; padding-bottom: 14px; }
.tp-footer-brand { display: flex; align-items: center; gap: 22px; min-width: 0; flex-wrap: wrap; }
.tp-footer-logo { display: inline-flex; align-items: center; }
.tp-footer-logo .tp-logo-image { width: 146px; }
.tp-footer-nav .menu { gap: 18px 24px; flex-wrap: wrap; }
.tp-footer-nav a { color: var(--tp-text-soft); font-size: 13px; font-weight: 700; }
.tp-footer-nav a:hover { color: var(--tp-blue); }
.tp-footer-social { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 14px 18px; border: 1px solid var(--tp-line); border-radius: 14px; background: var(--tp-surface-soft); }
.tp-footer-social > strong { white-space: nowrap; font-size: 15px; color: var(--tp-navy); }
.tp-social-list { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: flex-end; }
.tp-social-item { min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--tp-text-soft); font-size: 11px; font-weight: 700; text-align: center; }
.tp-social-item:hover { color: var(--tp-blue); }
.tp-social-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--tp-surface); border: 1px solid var(--tp-line); box-shadow: 0 8px 18px rgba(18, 37, 69, .06); }
.tp-social-icon svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.tp-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 8px; padding-bottom: 18px; border-top: 1px solid var(--tp-line-soft); }
.tp-copyright { color: var(--tp-text-faint); font-size: 12px; }
.tp-affiliate-notice { margin: 0; color: var(--tp-text-faint); font-size: 12px; text-align: right; max-width: 58%; }
.tp-dark .tp-footer { background: #0b1626; }
.tp-dark .tp-footer-social { background: #0f1c30; border-color: #1f314b; }
.tp-dark .tp-social-icon { background: #13223a; border-color: #20344f; box-shadow: none; }
.tp-dark .tp-footer-nav a:hover { color: var(--tp-blue-bright); }
@media (max-width: 1180px) {
  .tp-footer-top { grid-template-columns: 1fr; }
  .tp-footer-social { justify-content: space-between; }
  .tp-social-list { justify-content: flex-start; }
  .tp-affiliate-notice { max-width: none; }
}
@media (max-width: 920px) {
  .tp-footer-top { padding-top: 18px; padding-bottom: 12px; }
  .tp-footer-brand { justify-content: center; }
  .tp-footer-social { flex-direction: column; align-items: flex-start; }
  .tp-social-list { width: 100%; justify-content: space-between; }
  .tp-footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .tp-affiliate-notice { text-align: left; }
}
@media (max-width: 640px) {
  .tp-header-notice { display: none; }
  .tp-footer-social { padding: 14px; }
  .tp-social-list { justify-content: flex-start; gap: 12px 14px; }
  .tp-social-item { min-width: 60px; }
  .tp-footer-nav .menu { justify-content: flex-start; gap: 10px 18px; }
}

/* v1.2 definitive identity and hero fixes */
.tp-logo .tp-logo-image,
.tp-footer-logo .tp-logo-image {
  display: block;
  width: 184px;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.tp-home-hero {
  overflow: hidden;
}

@media (min-width: 1181px) {
  .tp-home-hero-grid {
    grid-template-columns: minmax(660px, 1.08fr) minmax(430px, .92fr);
    gap: 18px;
  }
  .tp-hero-copy h1 {
    max-width: none;
    font-size: clamp(34px, 2.7vw, 42px);
    line-height: 1.22;
    letter-spacing: -.045em;
  }
  .tp-hero-copy h1 > span {
    display: block;
    white-space: nowrap;
  }
  .tp-hero-visual {
    overflow: visible;
    padding-right: 8px;
  }
  .tp-hero-visual img {
    width: min(100%, 700px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center right;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .tp-home-hero-grid {
    grid-template-columns: minmax(565px, 1fr) minmax(360px, .72fr);
    gap: 16px;
  }
  .tp-hero-copy h1 {
    max-width: none;
    font-size: clamp(29px, 3vw, 34px);
    line-height: 1.22;
    letter-spacing: -.045em;
  }
  .tp-hero-copy h1 > span {
    display: block;
    white-space: nowrap;
  }
  .tp-hero-visual {
    overflow: visible;
    padding-right: 4px;
  }
  .tp-hero-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center right;
  }
}

@media (max-width: 920px) {
  .tp-logo .tp-logo-image { width: 154px; }
  .tp-hero-copy h1 > span { white-space: normal; }
  .tp-hero-visual {
    max-height: none;
    overflow: visible;
    padding-inline: 0;
  }
  .tp-hero-visual img {
    width: min(100%, 720px);
    max-width: 100%;
    margin: 0 auto -8px;
    object-fit: contain;
  }
}

@media (max-width: 640px) {
  .tp-logo .tp-logo-image { width: 140px; }
  .tp-hero-visual { max-height: none; }
  .tp-hero-visual img {
    width: 108%;
    max-width: 108%;
    margin-left: -4%;
    margin-bottom: -4px;
  }
}

/* The footer menu is fixed to the four requested legal/company pages. */
.tp-footer-nav .menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* v1.3 official logo, header cleanup, social brands, and mobile optimization */
.customize-partial-edit-shortcut,
.customize-partial-edit-shortcut-button,
.customize-partial-edit-shortcut-widget,
.customize-partial-edit-shortcut-nav_menu_instance {
  display: none !important;
}

.tp-logo,
.tp-footer-logo {
  line-height: 0;
}
.tp-logo .tp-logo-image {
  width: 176px;
  height: auto;
  max-width: 100%;
  image-rendering: auto;
}
.tp-footer-logo .tp-logo-image {
  width: 160px;
  height: auto;
  max-width: 100%;
  image-rendering: auto;
}

.tp-header-actions {
  gap: 3px;
}
.tp-header-notice {
  display: none !important;
}

.tp-social-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}
.tp-social-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.tp-social-item {
  min-width: 68px;
  gap: 6px;
  color: var(--tp-text-soft);
}
.tp-social-item:hover {
  transform: translateY(-2px);
}

.tp-hero-copy h1,
.tp-hero-copy h1 span,
.tp-category-content,
.tp-guide-card h3,
.tp-value-item,
.tp-footer-nav {
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 920px) {
  :root { --tp-header-height: 64px; }
  body { font-size: 15px; }
  .tp-header-inner {
    min-height: 64px;
    gap: 4px;
  }
  .tp-logo .tp-logo-image {
    width: 142px;
  }
  .tp-header-actions {
    margin-left: auto;
    gap: 0;
  }
  .tp-header-action,
  .tp-mobile-menu-button {
    min-width: 38px;
    width: 38px;
    min-height: 38px;
    height: 38px;
    padding: 0;
  }
  .tp-header-action svg,
  .tp-mobile-menu-button svg {
    width: 20px;
    height: 20px;
  }
  .tp-header-action span:not(.tp-mode-moon):not(.tp-mode-sun) {
    display: none;
  }

  .tp-home-hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 18px;
  }
  .tp-hero-copy {
    text-align: left;
  }
  .tp-hero-badge {
    margin-inline: 0;
    font-size: 12px;
  }
  .tp-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(30px, 7vw, 40px);
    line-height: 1.24;
    letter-spacing: -.045em;
  }
  .tp-hero-copy h1 > span {
    white-space: normal;
  }
  .tp-hero-description {
    font-size: 15px;
    line-height: 1.65;
  }
  .tp-hero-search {
    width: 100%;
    margin-inline: 0;
  }
  .tp-hero-tags {
    justify-content: flex-start;
  }
  .tp-hero-visual {
    max-height: none;
    overflow: visible;
    justify-content: center;
  }
  .tp-hero-visual img {
    display: block;
    width: min(100%, 680px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
  }

  .tp-category-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 19px;
  }
  .tp-category-content > strong {
    font-size: 18px;
  }
  .tp-category-content > span {
    font-size: 13px;
  }

  .tp-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tp-guide-card:nth-child(4),
  .tp-guide-card:nth-child(5) {
    display: block;
  }

  .tp-footer-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tp-footer-brand {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .tp-footer-nav .menu {
    justify-content: flex-start;
  }
  .tp-footer-social {
    width: 100%;
    align-items: flex-start;
    gap: 12px;
  }
  .tp-social-list {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .tp-container {
    width: min(calc(100% - 24px), var(--tp-container));
  }
  .tp-header-inner {
    gap: 2px;
  }
  .tp-logo .tp-logo-image {
    width: 124px;
  }
  .tp-header-actions .tp-header-action[data-tp-bookmark-open] {
    display: inline-flex;
  }
  .tp-header-action,
  .tp-mobile-menu-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
  .tp-header-action svg,
  .tp-mobile-menu-button svg {
    width: 19px;
    height: 19px;
  }
  .tp-bookmark-count {
    right: -2px;
    top: -3px;
  }

  .tp-home-hero-grid {
    padding-top: 20px;
    gap: 14px;
  }
  .tp-hero-badge {
    max-width: 100%;
    font-size: 11px;
    padding: 6px 10px;
  }
  .tp-hero-copy h1 {
    font-size: clamp(27px, 8.3vw, 34px);
    line-height: 1.25;
  }
  .tp-hero-description {
    margin: 14px 0 16px;
    font-size: 14px;
  }
  .tp-hero-search {
    height: 50px;
  }
  .tp-hero-search input {
    min-width: 0;
    font-size: 13px;
  }
  .tp-hero-search button {
    min-width: 58px;
  }
  .tp-hero-tags {
    gap: 5px 12px;
  }
  .tp-hero-tags a {
    font-size: 11px;
  }
  .tp-hero-visual img {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .tp-category-section {
    gap: 10px;
  }
  .tp-category-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .tp-category-icon {
    width: 50px;
    height: 50px;
  }
  .tp-category-icon svg {
    width: 29px;
    height: 29px;
  }
  .tp-category-content > strong {
    font-size: 16px;
  }
  .tp-category-content > span {
    font-size: 12px;
    line-height: 1.55;
  }

  .tp-guide-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 12px 12px 16px;
    scrollbar-width: none;
  }
  .tp-guide-grid::-webkit-scrollbar { display: none; }
  .tp-guide-card,
  .tp-guide-card:nth-child(4),
  .tp-guide-card:nth-child(5) {
    display: block;
    flex: 0 0 82%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .tp-guide-card h3 {
    font-size: 15px;
    line-height: 1.45;
  }
  .tp-guide-card p {
    font-size: 12px;
  }

  .tp-value-strip {
    grid-template-columns: 1fr;
  }
  .tp-value-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .tp-footer-top {
    padding-top: 20px;
  }
  .tp-footer-brand {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tp-footer-logo .tp-logo-image {
    width: 144px;
  }
  .tp-footer-nav .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }
  .tp-footer-nav a {
    font-size: 12px;
  }
  .tp-footer-social {
    overflow: hidden;
    padding: 14px;
  }
  .tp-social-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .tp-social-list::-webkit-scrollbar { display: none; }
  .tp-social-item {
    flex: 0 0 64px;
    min-width: 64px;
    font-size: 10px;
  }
  .tp-social-icon,
  .tp-social-icon img {
    width: 38px;
    height: 38px;
  }
  .tp-footer-bottom {
    gap: 8px;
    padding-bottom: 18px;
  }
  .tp-copyright,
  .tp-affiliate-notice {
    font-size: 11px;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .tp-logo .tp-logo-image { width: 112px; }
  .tp-header-action,
  .tp-mobile-menu-button {
    width: 32px;
    min-width: 32px;
  }
  .tp-hero-copy h1 {
    font-size: 26px;
  }
}


/* v1.4 dark logo swap and holistic mobile optimization */
.tp-logo-stack {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.tp-logo-stack .tp-logo-image {
  display: block;
}
.tp-logo-stack .tp-logo-image-white {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tp-transition);
}
html.tp-dark .tp-logo-stack .tp-logo-image-default,
body.tp-dark .tp-logo-stack .tp-logo-image-default {
  opacity: 0;
}
html.tp-dark .tp-logo-stack .tp-logo-image-white,
body.tp-dark .tp-logo-stack .tp-logo-image-white {
  opacity: 1;
}
.tp-logo-image-white-only { display: block; }

html.tp-dark .tp-header,
body.tp-dark .tp-header {
  background: color-mix(in srgb, #06101f 94%, transparent);
}

/* Keep hero readable and balanced on small screens instead of only shrinking text */
@media (max-width: 920px) {
  .tp-home-hero {
    overflow: visible;
  }
  .tp-home-hero-grid {
    align-items: start;
    gap: 16px;
  }
  .tp-hero-copy {
    display: grid;
    gap: 0;
  }
  .tp-hero-copy h1 {
    text-wrap: balance;
    max-width: 12.5ch;
    margin-right: auto;
  }
  .tp-hero-description {
    max-width: 32ch;
  }
  .tp-hero-search {
    width: 100%;
    max-width: none;
  }
  .tp-hero-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-inline: -2px;
  }
  .tp-hero-tags::-webkit-scrollbar { display: none; }
  .tp-hero-tags a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--tp-blue-soft);
    white-space: nowrap;
  }
  .tp-hero-visual {
    border-top: 1px solid var(--tp-line-soft);
    padding-top: 8px;
  }
  .tp-hero-visual img {
    width: min(100%, 620px);
  }
  .tp-guide-layout {
    gap: 12px;
  }
  .tp-situation-guide, .tp-recent-guides, .tp-value-strip {
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --tp-header-height: 62px;
  }
  .tp-header-inner {
    grid-template-columns: auto 1fr auto auto;
    display: grid;
    align-items: center;
  }
  .tp-logo {
    min-width: 0;
  }
  .tp-logo .tp-logo-image,
  .tp-logo-stack {
    width: 118px;
    max-width: 118px;
  }
  .tp-logo .tp-logo-image { width: 118px; }
  .tp-header-actions {
    display: contents;
    margin-left: 0;
  }
  .tp-search-open { justify-self: end; }
  .tp-header-action[data-tp-bookmark-open] { justify-self: end; }
  .tp-header-action[data-tp-dark] { justify-self: end; }
  .tp-mobile-menu-button { justify-self: end; order: 0; }

  .tp-home-hero-grid {
    padding-top: 16px;
    gap: 10px;
  }
  .tp-hero-badge {
    margin-bottom: 10px;
  }
  .tp-hero-copy h1 {
    max-width: 10.4ch;
    font-size: clamp(24px, 9vw, 32px);
    line-height: 1.18;
    letter-spacing: -.05em;
    margin-bottom: 6px;
  }
  .tp-hero-copy h1 > span {
    display: inline;
  }
  .tp-hero-copy h1 > span + span::before {
    content: ' ';
  }
  .tp-hero-description {
    max-width: 30ch;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 14px;
  }
  .tp-hero-search {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) 56px;
    height: 54px;
    border-radius: 14px;
  }
  .tp-hero-search > span {
    width: 40px;
  }
  .tp-hero-search input {
    padding-right: 8px;
    font-size: 14px;
  }
  .tp-hero-search button {
    min-width: 56px;
    border-radius: 0 14px 14px 0;
  }
  .tp-hero-tags {
    margin-top: 8px;
    gap: 8px;
  }
  .tp-hero-tags a {
    font-size: 12px;
  }
  .tp-hero-visual {
    padding-top: 2px;
  }
  .tp-hero-visual img {
    width: 100%;
    max-width: 100%;
  }

  .tp-category-section {
    padding-top: 12px;
  }
  .tp-category-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 16px;
  }
  .tp-category-icon {
    width: 48px;
    height: 48px;
  }
  .tp-category-content > strong {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .tp-category-content em {
    margin-top: 11px;
  }

  .tp-section-heading {
    padding-inline: 14px;
  }
  .tp-situation-item {
    grid-template-columns: 30px minmax(0,1fr);
    padding: 9px 14px;
  }
  .tp-situation-item strong {
    font-size: 13px;
  }
  .tp-situation-item small {
    font-size: 11px;
    line-height: 1.45;
  }
  .tp-guide-grid {
    gap: 10px;
    padding: 12px 14px 16px;
  }
  .tp-guide-card,
  .tp-guide-card:nth-child(4),
  .tp-guide-card:nth-child(5) {
    flex: 0 0 85%;
  }
  .tp-guide-thumb {
    aspect-ratio: 1.62;
  }

  .tp-value-strip {
    padding: 12px 14px;
  }
  .tp-value-item {
    min-height: 68px;
    padding: 10px 0;
  }
  .tp-value-item h3 {
    font-size: 14px;
  }

  .tp-footer-brand {
    gap: 10px;
  }
  .tp-footer-logo .tp-logo-image,
  .tp-footer-logo .tp-logo-stack {
    width: 134px;
    max-width: 134px;
  }
  .tp-footer-nav .menu {
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
  }
  .tp-footer-social {
    gap: 10px;
  }
  .tp-social-list {
    gap: 10px;
    padding-bottom: 2px;
  }
  .tp-social-item {
    flex: 0 0 60px;
    min-width: 60px;
  }
}

@media (max-width: 380px) {
  .tp-logo .tp-logo-image,
  .tp-logo-stack {
    width: 108px;
    max-width: 108px;
  }
  .tp-hero-copy h1 {
    max-width: 9.8ch;
    font-size: 23px;
  }
  .tp-hero-description {
    font-size: 14px;
  }
  .tp-category-content > strong {
    font-size: 16px;
  }
}


/* v1.5 remove bookmark counter and redesign tablet/mobile layouts */
.tp-header-action[data-tp-bookmark-open] .tp-bookmark-count { display: none !important; }

@media (max-width: 1024px) {
  :root { --tp-header-height: 68px; }
  .tp-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    column-gap: 8px;
    min-height: 68px;
  }
  .tp-nav {
    position: fixed;
    top: var(--tp-header-height);
    left: 0;
    right: 0;
    z-index: 1200;
    padding: 14px 18px 18px;
    border-bottom: 1px solid var(--tp-line);
    background: var(--tp-surface);
    box-shadow: 0 14px 36px rgba(9, 22, 43, .12);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .tp-dark .tp-nav { background: #0b1626; border-color: #1e3352; }
  .tp-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .tp-nav .menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .tp-nav .menu li { min-width: 0; }
  .tp-nav .menu a {
    display: block;
    padding: 12px 2px;
    font-size: 15px;
    font-weight: 800;
  }
  .tp-mobile-menu-button { display: inline-grid; justify-self: end; }
  .tp-header-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }
  .tp-header-action span:not(.tp-mode-moon):not(.tp-mode-sun) { display: none; }
  .tp-header-action,
  .tp-mobile-menu-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 10px;
  }
  .tp-header-action svg,
  .tp-mobile-menu-button svg { width: 20px; height: 20px; }
  .tp-logo .tp-logo-image,
  .tp-logo-stack { width: 136px; max-width: 136px; }

  .tp-home-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .tp-hero-copy {
    display: block;
  }
  .tp-hero-copy h1 {
    max-width: 11.2ch;
    margin-right: auto;
    text-wrap: balance;
    font-size: clamp(30px, 6.1vw, 42px);
    line-height: 1.18;
    letter-spacing: -.05em;
  }
  .tp-hero-copy h1 > span { display: inline; white-space: normal; }
  .tp-hero-copy h1 > span + span::before { content: ' '; }
  .tp-hero-description {
    max-width: 34ch;
    margin: 16px 0 16px;
    font-size: 16px;
    line-height: 1.68;
  }
  .tp-hero-search {
    width: 100%;
    max-width: 580px;
    height: 56px;
    border-radius: 14px;
  }
  .tp-hero-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .tp-hero-tags::-webkit-scrollbar { display: none; }
  .tp-hero-tags a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--tp-blue-soft);
    white-space: nowrap;
  }
  .tp-hero-visual {
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid var(--tp-line-soft);
  }
  .tp-hero-visual img {
    width: min(100%, 680px);
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
  }

  .tp-category-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .tp-category-card:last-child { grid-column: 1 / -1; }
  .tp-category-card {
    min-height: 150px;
    padding: 20px;
  }

  .tp-guide-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tp-situation-guide { order: 2; }
  .tp-recent-guides { order: 1; }
  .tp-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
  }
  .tp-value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-footer-top {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }
  .tp-footer-brand {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tp-footer-nav .menu {
    justify-content: flex-start;
    gap: 10px 20px;
  }
  .tp-footer-social {
    justify-content: flex-start;
    width: 100%;
  }
  .tp-social-list { justify-content: flex-start; }
  .tp-affiliate-notice { max-width: none; }
}

@media (max-width: 767px) {
  :root { --tp-header-height: 62px; }
  .tp-header-inner {
    grid-template-columns: auto 1fr auto auto auto;
    column-gap: 4px;
    min-height: 62px;
  }
  .tp-logo .tp-logo-image,
  .tp-logo-stack { width: 118px; max-width: 118px; }
  .tp-header-action,
  .tp-mobile-menu-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
  .tp-header-action svg,
  .tp-mobile-menu-button svg { width: 18px; height: 18px; }
  .tp-nav {
    top: var(--tp-header-height);
    padding: 12px 16px 18px;
  }
  .tp-nav .menu {
    grid-template-columns: 1fr;
  }
  .tp-nav .menu a { font-size: 16px; }
  .tp-home-hero-grid {
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .tp-hero-badge {
    margin-bottom: 10px;
    font-size: 11px;
    padding: 6px 10px;
  }
  .tp-hero-copy h1 {
    max-width: 10.2ch;
    font-size: clamp(26px, 8.8vw, 34px);
    line-height: 1.16;
  }
  .tp-hero-description {
    max-width: 29ch;
    margin: 12px 0 14px;
    font-size: 14px;
  }
  .tp-hero-search {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 58px;
    width: 100%;
    max-width: none;
    height: 54px;
  }
  .tp-hero-search > span { width: 42px; }
  .tp-hero-search input {
    font-size: 14px;
    padding-right: 8px;
  }
  .tp-hero-search button {
    min-width: 58px;
    border-radius: 0 14px 14px 0;
  }
  .tp-hero-search button span { display: none; }
  .tp-hero-tags { margin-top: 8px; }
  .tp-hero-tags a { font-size: 12px; }
  .tp-hero-visual { padding-top: 6px; }
  .tp-category-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }
  .tp-category-card:last-child { grid-column: auto; }
  .tp-category-card {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 0;
    padding: 16px;
    gap: 12px;
  }
  .tp-category-icon { width: 50px; height: 50px; }
  .tp-category-icon svg { width: 28px; height: 28px; }
  .tp-category-content > strong { font-size: 17px; }
  .tp-category-content > span { font-size: 12px; line-height: 1.55; }
  .tp-guide-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 12px 14px 16px;
    scrollbar-width: none;
  }
  .tp-guide-grid::-webkit-scrollbar { display: none; }
  .tp-guide-card,
  .tp-guide-card:nth-child(4),
  .tp-guide-card:nth-child(5) {
    display: block;
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .tp-guide-card h3 { font-size: 15px; }
  .tp-value-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tp-value-item { border-bottom: 1px solid var(--tp-line-soft); }
  .tp-value-item:last-child { border-bottom: 0; }
  .tp-footer-logo .tp-logo-image,
  .tp-footer-logo .tp-logo-stack { width: 132px; max-width: 132px; }
  .tp-footer-nav .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
  .tp-footer-social {
    padding: 14px;
    gap: 10px;
  }
  .tp-social-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .tp-social-list::-webkit-scrollbar { display: none; }
  .tp-social-item {
    flex: 0 0 62px;
    min-width: 62px;
    font-size: 10px;
  }
  .tp-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .tp-affiliate-notice {
    text-align: left;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .tp-logo .tp-logo-image,
  .tp-logo-stack { width: 108px; max-width: 108px; }
  .tp-hero-copy h1 {
    max-width: 9.6ch;
    font-size: 24px;
  }
  .tp-hero-description { font-size: 14px; }
  .tp-category-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tp-guide-card,
  .tp-guide-card:nth-child(4),
  .tp-guide-card:nth-child(5) { flex-basis: 88%; }
}


/* v1.5.1 mobile hero width relaxation */
@media (max-width: 767px) {
  .tp-container {
    width: min(calc(100% - 20px), var(--tp-container));
  }
  .tp-home-hero-grid {
    gap: 14px;
  }
  .tp-hero-copy {
    width: 100%;
    max-width: none;
  }
  .tp-hero-copy h1 {
    max-width: none;
    width: 100%;
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.14;
    text-wrap: pretty;
    letter-spacing: -.055em;
  }
  .tp-hero-copy h1 > span {
    display: inline;
    white-space: normal;
  }
  .tp-hero-copy h1 > span + span::before {
    content: ' ';
  }
  .tp-hero-description {
    max-width: none;
    width: 100%;
    font-size: 14px;
    line-height: 1.72;
  }
  .tp-hero-search {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .tp-container {
    width: min(calc(100% - 18px), var(--tp-container));
  }
  .tp-hero-copy h1 {
    max-width: none;
    width: 100%;
    font-size: clamp(23px, 7.7vw, 30px);
    line-height: 1.13;
  }
  .tp-hero-description {
    max-width: none;
  }
}


/* v1.6.0 dedicated mobile/tablet layout and header icon alignment */
@media (max-width: 1024px) {
  .tp-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    column-gap: 8px;
  }
  .tp-logo { order: 1; }
  .tp-nav { order: 5; }
  .tp-header-actions {
    order: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin-left: 0;
  }
  .tp-mobile-menu-button {
    order: 4;
    justify-self: end;
    margin-left: 2px;
  }
}

/* Tablet-first dedicated layout */
@media (max-width: 1024px) {
  .tp-home-hero {
    background:
      radial-gradient(circle at 88% 8%, rgba(37,99,235,.08), transparent 22%),
      linear-gradient(180deg, color-mix(in srgb, var(--tp-bg) 92%, #eef5ff) 0%, var(--tp-bg) 100%);
  }
  .tp-home-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    min-height: 0;
    padding-top: 22px;
    padding-bottom: 20px;
  }
  .tp-hero-copy {
    width: 100%;
    max-width: none;
  }
  .tp-hero-badge {
    margin-bottom: 12px;
  }
  .tp-hero-copy h1 {
    max-width: none;
    width: 100%;
    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.16;
    letter-spacing: -.05em;
    text-wrap: balance;
  }
  .tp-hero-copy h1 > span {
    display: inline;
    white-space: normal;
  }
  .tp-hero-copy h1 > span + span::before { content: ' '; }
  .tp-hero-description {
    max-width: 40ch;
    margin: 14px 0 16px;
    font-size: 15px;
    line-height: 1.72;
  }
  .tp-hero-search {
    width: 100%;
    max-width: 620px;
    height: 56px;
    border-radius: 16px;
  }
  .tp-hero-tags {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px 10px;
    margin-top: 10px;
  }
  .tp-hero-tags a {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--tp-blue-soft);
    white-space: nowrap;
  }
  .tp-hero-visual {
    width: 100%;
    justify-content: center;
    padding: 12px 14px 4px;
    border: 1px solid var(--tp-line-soft);
    border-radius: 22px;
    background: color-mix(in srgb, var(--tp-surface) 94%, #edf5ff);
  }
  .tp-dark .tp-hero-visual {
    background: #0f1b2d;
    border-color: #1f334f;
  }
  .tp-hero-visual img {
    width: min(100%, 560px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }
  .tp-category-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .tp-category-card:last-child {
    grid-column: 1 / -1;
  }
  .tp-guide-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tp-recent-guides { order: 1; }
  .tp-situation-guide { order: 2; }
  .tp-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
  }
  .tp-value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile dedicated layout */
@media (max-width: 767px) {
  :root { --tp-header-height: 62px; }
  .tp-container {
    width: min(calc(100% - 18px), var(--tp-container));
  }
  .tp-header-inner {
    grid-template-columns: auto 1fr auto auto;
    column-gap: 4px;
    min-height: 62px;
  }
  .tp-logo .tp-logo-image,
  .tp-logo-stack {
    width: 118px;
    max-width: 118px;
  }
  .tp-header-actions {
    gap: 1px;
  }
  .tp-header-action,
  .tp-mobile-menu-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
  }
  .tp-header-action svg,
  .tp-mobile-menu-button svg {
    width: 18px;
    height: 18px;
  }
  .tp-mobile-menu-button { margin-left: 1px; }
  .tp-nav {
    top: var(--tp-header-height);
    padding: 12px 16px 18px;
  }
  .tp-nav .menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tp-nav .menu a {
    padding: 13px 2px;
    font-size: 16px;
  }

  .tp-home-hero-grid {
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 16px;
  }
  .tp-hero-badge {
    margin-bottom: 10px;
    font-size: 11px;
    padding: 6px 10px;
  }
  .tp-hero-copy h1 {
    max-width: none;
    width: 100%;
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.13;
    letter-spacing: -.055em;
    margin: 0;
    text-wrap: pretty;
  }
  .tp-hero-description {
    max-width: none;
    width: 100%;
    margin: 12px 0 14px;
    font-size: 14px;
    line-height: 1.72;
  }
  .tp-hero-search {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) 58px;
    width: 100%;
    max-width: none;
    height: 54px;
    border-radius: 16px;
  }
  .tp-hero-search > span { width: 40px; }
  .tp-hero-search input {
    padding-right: 8px;
    font-size: 14px;
  }
  .tp-hero-search button {
    min-width: 58px;
    border-radius: 0 16px 16px 0;
  }
  .tp-hero-search button span { display: none; }
  .tp-hero-tags {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  .tp-hero-tags a {
    min-height: 32px;
    font-size: 12px;
    padding: 0 12px;
  }
  .tp-hero-visual {
    padding: 10px 10px 2px;
    border-radius: 18px;
  }
  .tp-hero-visual img {
    width: 100%;
    max-width: 320px;
  }

  .tp-category-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }
  .tp-category-card:last-child {
    grid-column: auto;
  }
  .tp-category-card {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
    padding: 16px;
  }
  .tp-category-content > strong {
    font-size: 17px;
  }
  .tp-category-content > span {
    font-size: 12px;
    line-height: 1.56;
  }

  .tp-guide-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 12px 14px 16px;
    scrollbar-width: none;
  }
  .tp-guide-grid::-webkit-scrollbar { display: none; }
  .tp-guide-card,
  .tp-guide-card:nth-child(4),
  .tp-guide-card:nth-child(5) {
    display: block;
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .tp-guide-thumb { aspect-ratio: 1.62; }
  .tp-guide-card h3 { font-size: 15px; }
  .tp-guide-card p { font-size: 12px; }
  .tp-situation-item {
    padding: 9px 14px;
  }
  .tp-situation-item strong { font-size: 13px; }
  .tp-situation-item small { font-size: 11px; }

  .tp-value-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tp-value-item {
    border-bottom: 1px solid var(--tp-line-soft);
    min-height: 66px;
  }
  .tp-value-item:last-child { border-bottom: 0; }

  .tp-footer-top {
    gap: 16px;
  }
  .tp-footer-logo .tp-logo-image,
  .tp-footer-logo .tp-logo-stack {
    width: 132px;
    max-width: 132px;
  }
  .tp-footer-nav .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
  .tp-footer-social {
    padding: 14px;
    gap: 10px;
  }
  .tp-social-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .tp-social-list::-webkit-scrollbar { display: none; }
  .tp-social-item {
    flex: 0 0 62px;
    min-width: 62px;
    font-size: 10px;
  }
  .tp-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .tp-affiliate-notice {
    text-align: left;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .tp-logo .tp-logo-image,
  .tp-logo-stack {
    width: 108px;
    max-width: 108px;
  }
  .tp-hero-copy h1 {
    font-size: clamp(24px, 7.6vw, 30px);
  }
  .tp-category-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tp-guide-card,
  .tp-guide-card:nth-child(4),
  .tp-guide-card:nth-child(5) {
    flex-basis: 88%;
  }
}


/* v1.7.0 independent tablet/mobile home */
.tp-mobile-home { display: none; }

@media (max-width: 1024px) {
  .tp-desktop-home { display: none !important; }
  .tp-mobile-home {
    display: block;
    width: min(calc(100% - 28px), 760px);
    margin: 0 auto;
    padding: 18px 0 28px;
  }
  .tp-mobile-hero-block {
    padding: 22px;
    border: 1px solid var(--tp-line-soft);
    border-radius: 24px;
    background:
      radial-gradient(circle at 100% 0%, rgba(37,99,235,.12), transparent 32%),
      linear-gradient(145deg, var(--tp-surface) 0%, color-mix(in srgb, var(--tp-surface) 88%, #edf5ff) 100%);
    box-shadow: var(--tp-shadow);
  }
  .tp-dark .tp-mobile-hero-block {
    background: radial-gradient(circle at 100% 0%, rgba(90,151,255,.13), transparent 34%), #0d1929;
    border-color: #20334e;
  }
  .tp-mobile-badge {
    width: fit-content;
    margin: 0 0 14px;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: var(--tp-blue-soft);
    color: var(--tp-blue);
    font-size: 12px;
    font-weight: 850;
  }
  .tp-mobile-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
  .tp-mobile-hero-block h1 {
    margin: 0;
    color: var(--tp-text);
    font-size: clamp(34px, 6.5vw, 48px);
    line-height: 1.08;
    letter-spacing: -.055em;
    font-weight: 950;
    word-break: keep-all;
  }
  .tp-mobile-hero-block h1 span { color: var(--tp-blue); }
  .tp-mobile-lead {
    max-width: 38ch;
    margin: 16px 0 18px;
    color: var(--tp-text-soft);
    font-size: 16px;
    line-height: 1.7;
  }
  .tp-mobile-search {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 58px;
    height: 56px;
    overflow: hidden;
    border: 1px solid var(--tp-line);
    border-radius: 15px;
    background: var(--tp-surface);
  }
  .tp-mobile-search > span { display: grid; place-items: center; color: var(--tp-text-soft); }
  .tp-mobile-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; }
  .tp-mobile-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tp-text);
    font-size: 15px;
  }
  .tp-mobile-search button {
    border: 0;
    background: var(--tp-blue-bright);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .tp-mobile-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .tp-mobile-quick-links a {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--tp-blue-soft);
    color: var(--tp-blue);
    font-size: 12px;
    font-weight: 800;
  }
  .tp-mobile-section { margin-top: 18px; }
  .tp-mobile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  .tp-mobile-section-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 950;
    letter-spacing: -.03em;
  }
  .tp-mobile-section-head > a { color: var(--tp-text-faint); font-size: 12px; font-weight: 700; }
  .tp-mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .tp-mobile-category {
    min-width: 0;
    min-height: 150px;
    padding: 16px;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    grid-template-rows: auto auto 1fr;
    align-items: center;
    gap: 6px 10px;
    border: 1px solid var(--tp-line);
    border-radius: 18px;
    background: var(--tp-surface);
  }
  .tp-mobile-category > span {
    grid-row: 1 / 4;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
  }
  .tp-mobile-category > span svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.4; }
  .tp-mobile-category strong { font-size: 16px; line-height: 1.3; font-weight: 900; }
  .tp-mobile-category small { color: var(--tp-text-soft); font-size: 11px; line-height: 1.5; }
  .tp-mobile-category em { align-self: end; color: currentColor; }
  .tp-mobile-category em svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
  .tp-mobile-category-service { color: var(--tp-blue); }
  .tp-mobile-category-service > span { background: var(--tp-blue-soft); }
  .tp-mobile-category-software { color: var(--tp-green); }
  .tp-mobile-category-software > span { background: var(--tp-green-soft); }
  .tp-mobile-category-equipment { color: var(--tp-orange); }
  .tp-mobile-category-equipment > span { background: var(--tp-orange-soft); }
  .tp-mobile-guide-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .tp-mobile-guide-scroll::-webkit-scrollbar { display: none; }
  .tp-mobile-guide-card {
    flex: 0 0 min(330px, 76vw);
    min-width: 0;
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid var(--tp-line);
    border-radius: 18px;
    background: var(--tp-surface);
  }
  .tp-mobile-guide-thumb {
    aspect-ratio: 1.72;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--tp-surface-soft);
  }
  .tp-mobile-guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .tp-mobile-guide-thumb > span { display: grid; place-items: center; gap: 5px; color: var(--tp-blue); }
  .tp-mobile-guide-thumb > span svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; }
  .tp-mobile-guide-body { padding: 13px 14px 15px; }
  .tp-mobile-guide-body small { color: var(--tp-blue); font-size: 11px; font-weight: 850; }
  .tp-mobile-guide-body h3 { margin: 6px 0 8px; font-size: 16px; line-height: 1.42; font-weight: 900; letter-spacing: -.025em; }
  .tp-mobile-guide-body time { color: var(--tp-text-faint); font-size: 10px; }
  .tp-mobile-situation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tp-mobile-situation-grid a {
    min-height: 84px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--tp-line);
    border-radius: 16px;
    background: var(--tp-surface);
  }
  .tp-mobile-situation-grid span {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--tp-blue-soft);
    color: var(--tp-blue);
  }
  .tp-mobile-situation-grid svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; }
  .tp-mobile-situation-grid strong { font-size: 14px; line-height: 1.35; }
  .tp-mobile-trust-block {
    padding: 16px 18px;
    border-radius: 17px;
    background: var(--tp-navy);
    color: #fff;
  }
  .tp-mobile-trust-block strong { display: block; font-size: 15px; }
  .tp-mobile-trust-block p { margin: 5px 0 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.6; }
}

@media (max-width: 767px) {
  .tp-mobile-home {
    width: min(calc(100% - 18px), 560px);
    padding-top: 14px;
  }
  .tp-mobile-hero-block { padding: 18px; border-radius: 20px; }
  .tp-mobile-hero-block h1 { font-size: clamp(30px, 9vw, 38px); }
  .tp-mobile-lead { font-size: 14px; margin: 13px 0 15px; }
  .tp-mobile-category-grid { grid-template-columns: 1fr; }
  .tp-mobile-category {
    min-height: 94px;
    grid-template-columns: 48px minmax(0,1fr) auto;
    grid-template-rows: auto auto;
    padding: 14px;
  }
  .tp-mobile-category > span { grid-row: 1 / 3; }
  .tp-mobile-category em { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .tp-mobile-guide-card { flex-basis: 84vw; }
}

@media (max-width: 430px) {
  .tp-mobile-home { width: min(calc(100% - 14px), 430px); }
  .tp-mobile-hero-block { padding: 16px; }
  .tp-mobile-hero-block h1 { font-size: 29px; }
  .tp-mobile-search { grid-template-columns: 40px minmax(0,1fr) 54px; height: 52px; }
  .tp-mobile-quick-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tp-mobile-quick-links::-webkit-scrollbar { display: none; }
  .tp-mobile-quick-links a { flex: 0 0 auto; }
  .tp-mobile-situation-grid { grid-template-columns: 1fr; }
  .tp-mobile-guide-card { flex-basis: 88vw; }
}


/* v1.7.1 mobile footer quick links center alignment */
@media (max-width: 1024px) {
  .tp-footer-nav { width: 100%; }
  .tp-footer-nav .menu {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .tp-footer-nav .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, max-content));
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 10px 28px;
    width: 100%;
    margin-inline: auto;
  }
  .tp-footer-nav .menu li {
    width: auto;
    text-align: center;
  }
  .tp-footer-nav a {
    display: inline-flex;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
}


/* v1.7.2 mobile home polish */
@media (max-width: 1024px) {
  .tp-mobile-home {
    width: min(calc(100% - 24px), 760px);
    padding: 16px 0 26px;
  }
  .tp-mobile-hero-block {
    padding: 24px;
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(14, 30, 55, .08);
  }
  .tp-dark .tp-mobile-hero-block {
    box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
  }
  .tp-mobile-badge {
    margin-bottom: 12px;
    padding: 7px 12px;
  }
  .tp-mobile-hero-block h1 {
    letter-spacing: -.05em;
  }
  .tp-mobile-lead {
    margin: 14px 0 16px;
  }
  .tp-mobile-search {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(18, 37, 69, .04);
  }
  .tp-dark .tp-mobile-search {
    box-shadow: none;
  }
  .tp-mobile-quick-links {
    gap: 10px;
    margin-top: 14px;
  }
  .tp-mobile-quick-links a {
    min-height: 36px;
    padding: 0 13px;
    font-size: 12px;
    border: 1px solid rgba(37,99,235,.08);
  }
  .tp-mobile-section {
    margin-top: 20px;
  }
  .tp-mobile-section-head {
    margin-bottom: 12px;
  }
  .tp-mobile-category-grid {
    gap: 12px;
  }
  .tp-mobile-category {
    min-height: 156px;
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(18, 37, 69, .04);
  }
  .tp-dark .tp-mobile-category,
  .tp-dark .tp-mobile-guide-card,
  .tp-dark .tp-mobile-situation-grid a {
    box-shadow: none;
  }
  .tp-mobile-guide-card {
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(18, 37, 69, .04);
  }
  .tp-mobile-guide-body {
    padding: 14px 14px 16px;
  }
  .tp-mobile-guide-body h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
  }
  .tp-mobile-situation-grid {
    gap: 12px;
  }
  .tp-mobile-situation-grid a {
    min-height: 88px;
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(18, 37, 69, .04);
  }
  .tp-mobile-trust-block {
    padding: 18px 18px;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(8, 18, 36, .12);
  }
  .tp-footer-top {
    gap: 14px;
    padding-top: 16px;
  }
  .tp-footer-brand {
    gap: 10px;
  }
  .tp-footer-social {
    gap: 12px;
    padding: 16px 14px;
    border-radius: 18px;
  }
  .tp-footer-social > strong {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .tp-mobile-home {
    width: min(calc(100% - 16px), 560px);
    padding-top: 12px;
    padding-bottom: 22px;
  }
  .tp-mobile-hero-block {
    padding: 16px;
    border-radius: 20px;
  }
  .tp-mobile-badge {
    font-size: 11px;
    padding: 6px 10px;
    margin-bottom: 10px;
  }
  .tp-mobile-hero-block h1 {
    font-size: clamp(28px, 8.1vw, 34px);
    line-height: 1.14;
  }
  .tp-mobile-lead {
    margin: 11px 0 14px;
    font-size: 14px;
    line-height: 1.68;
  }
  .tp-mobile-search {
    height: 54px;
  }
  .tp-mobile-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tp-mobile-quick-links a {
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
  }
  .tp-mobile-section {
    margin-top: 16px;
  }
  .tp-mobile-section-head h2 {
    font-size: 18px;
  }
  .tp-mobile-category {
    min-height: 0;
    padding: 15px;
    border-radius: 18px;
  }
  .tp-mobile-category strong {
    font-size: 16px;
  }
  .tp-mobile-guide-scroll {
    gap: 10px;
  }
  .tp-mobile-guide-card {
    flex-basis: 82vw;
    border-radius: 18px;
  }
  .tp-mobile-guide-body {
    padding: 12px 13px 14px;
  }
  .tp-mobile-guide-body h3 {
    margin: 6px 0 6px;
    font-size: 15px;
  }
  .tp-mobile-situation-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
  }
  .tp-mobile-situation-grid a {
    min-height: 74px;
    padding: 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tp-mobile-situation-grid strong {
    font-size: 13px;
  }
  .tp-mobile-situation-grid span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .tp-mobile-situation-grid svg {
    width: 18px;
    height: 18px;
  }
  .tp-mobile-trust-block {
    padding: 16px;
    border-radius: 16px;
  }
  .tp-footer-top {
    padding-top: 14px;
    gap: 12px;
  }
  .tp-footer-brand {
    justify-items: center;
  }
  .tp-footer-social {
    gap: 10px;
    padding: 14px 12px;
  }
  .tp-social-list {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .tp-mobile-home {
    width: min(calc(100% - 14px), 430px);
  }
  .tp-mobile-hero-block h1 {
    font-size: 27px;
  }
  .tp-mobile-quick-links {
    grid-template-columns: 1fr 1fr;
  }
  .tp-mobile-guide-card {
    flex-basis: 86vw;
  }
  .tp-mobile-situation-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* v1.7.3 center align mobile situation cards */
@media (max-width: 1024px) {
  .tp-mobile-situation-grid a {
    justify-content: center;
    text-align: center;
  }
  .tp-mobile-situation-grid strong {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .tp-mobile-situation-grid a {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 10px;
  }
  .tp-mobile-situation-grid span {
    margin-inline: auto;
  }
  .tp-mobile-situation-grid strong {
    text-align: center;
  }
}


/* v1.7.4 dynamic identity menu and knowledge submenu */
.tp-nav .tp-identity-menu > li {
  position: relative;
}
.tp-nav .tp-knowledge-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tp-submenu-arrow {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform var(--tp-transition);
}
.tp-nav .sub-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  z-index: 1200;
  width: 174px;
  margin: 0;
  padding: 9px;
  list-style: none;
  border: 1px solid var(--tp-line);
  border-radius: 14px;
  background: var(--tp-surface);
  box-shadow: var(--tp-shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity var(--tp-transition), visibility var(--tp-transition), transform var(--tp-transition);
}
.tp-nav .tp-knowledge-menu:hover > .sub-menu,
.tp-nav .tp-knowledge-menu:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.tp-nav .tp-knowledge-menu:hover .tp-submenu-arrow,
.tp-nav .tp-knowledge-menu:focus-within .tp-submenu-arrow {
  transform: rotate(180deg) translateY(1px);
}
.tp-nav .sub-menu li + li {
  margin-top: 2px;
}
.tp-nav .sub-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--tp-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}
.tp-nav .sub-menu a::after {
  display: none;
}
.tp-nav .sub-menu a:hover,
.tp-nav .sub-menu a:focus-visible {
  background: var(--tp-surface-muted);
  color: var(--tp-blue);
}
.tp-dark .tp-nav .sub-menu {
  background: #0f1b2d;
  border-color: #243955;
}

@media (max-width: 1024px) {
  .tp-nav .tp-knowledge-menu > a {
    justify-content: space-between;
    width: 100%;
  }
  .tp-nav .sub-menu {
    position: static;
    width: 100%;
    margin: 0 0 6px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 2px solid var(--tp-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .tp-nav .tp-knowledge-menu:hover > .sub-menu,
  .tp-nav .tp-knowledge-menu:focus-within > .sub-menu {
    transform: none;
  }
  .tp-nav .sub-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
  }
  .tp-nav .sub-menu li + li {
    margin-top: 0;
  }
  .tp-nav .sub-menu a {
    padding: 9px 10px;
    font-size: 14px;
  }
  .tp-submenu-arrow {
    display: none;
  }
}

@media (max-width: 767px) {
  .tp-nav .sub-menu {
    grid-template-columns: 1fr 1fr;
    padding-left: 10px;
  }
}

/* v1.7.5 clean archive titles; visual styles unchanged */
