/* กระทู้ (threads) pages (src/lib/threads.mjs). The site's own look - ink #00184a, blue #004aeb, orange #fe9300 -
   with the feeling of a reading site: a white sheet, one quiet column of type, hairlines instead of boxes, the
   writer's name above a large title, small counts below. Phones first; the side column starts at 1024px.
   Type sizes: brought down on 19 Nov 2026 (the owner: "ขนาดฟ้อนยังค่อนข้างใหญ่เมื่อเทียบกับ substack") to about
   Substack's own - names and list titles 17-18px, running text 14.5-16.5px, labels and counts 12-14px. What a
   visitor types in stays 16px (a phone's browser zooms into a smaller field), and nothing goes under 12px. */

.pt-th { --ink: #00184a; --txt: #1b2b4b; --mut: #5b6b85; --line: #e6eaf1; --blue: #004aeb; --orange: #fe9300; --soft: #f5f7fb;
	background: #fff; color: var(--ink); font-family: "Noto Sans Thai", Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.55; }
.pt-th *, .pt-th *::before, .pt-th *::after { box-sizing: border-box; }
.pt-th [hidden] { display: none !important; }
/* (:where keeps this reset weaker than every class rule below) */
:where(.pt-th) :is(h1, h2, h3, p, ul, ol, fieldset, legend) { margin: 0; padding: 0; border: 0; }
:where(.pt-th) :is(ul, ol) { list-style: none; }
/* (the theme gives every link its own size and line height: here a link reads as the text it sits in) */
.pt-th a { color: inherit; text-decoration: none; font-size: inherit; line-height: inherit; font-weight: inherit; }
.pt-th button, .pt-th input, .pt-th textarea { font: inherit; color: inherit; }
.pt-th button { cursor: pointer; }
.pt-th :focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; border-radius: 4px; }
.pt-th-i { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pt-th-wrap { max-width: 1080px; margin: 0 auto; padding: 16px 16px 56px; }
.pt-th-read { max-width: 728px; }
.pt-th-preview { margin-bottom: 12px; padding: 8px 12px; border: 1px solid #ffd591; border-radius: 10px; background: #fff7e6; color: #6b3d00; font-size: 13px; line-height: 1.5; }

/* Title and the "write" button */
.pt-th-mast { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 8px 0 14px; }
.pt-th-mast h1 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.pt-th-mast p { margin-top: 4px; max-width: 36em; font-size: 14px; line-height: 1.55; color: var(--mut); }
.pt-th .pt-th-new { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.pt-th .pt-th-new:hover { background: #ffa51f; }

/* Order (underlined tabs) and kinds (chips): one line each, scrolling sideways on a narrow screen */
.pt-th-tabs, .pt-th-topics { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.pt-th-tabs::-webkit-scrollbar, .pt-th-topics::-webkit-scrollbar { display: none; }
.pt-th-tabs { border-bottom: 1px solid var(--line); }
.pt-th-tabs a { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--mut); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pt-th-tabs a:hover { color: var(--ink); }
.pt-th-tabs a[aria-current] { border-bottom-color: var(--ink); color: var(--ink); }
.pt-th-topics { gap: 8px; padding-top: 12px; padding-bottom: 4px; }
.pt-th-topics a { flex: none; display: flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--c); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pt-th-topics a:hover { border-color: var(--c); }
.pt-th-topics a[aria-current] { border-color: var(--c); background: var(--c); color: #fff; }
.pt-th-filter { margin-top: 10px; font-size: 13.5px; color: var(--mut); }
.pt-th-filter b { color: var(--ink); }
.pt-th .pt-th-filter a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; color: var(--blue); font-weight: 600; }

/* The list */
.pt-th-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 48px; }
.pt-th-item { padding: 20px 0 8px; border-bottom: 1px solid var(--line); }
.pt-th-by { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--mut); }
.pt-th-by b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.pt-th-by time { flex: none; white-space: nowrap; }
.pt-th-av { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 2px; border-radius: 50%; object-fit: cover; background: hsl(var(--h, 215) 70% 92%); color: hsl(var(--h, 215) 60% 28%); font-size: 12.5px; font-weight: 700; line-height: 1; }
.pt-th .pt-th-kind { flex: none; margin-left: auto; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pt-th-title { margin-top: 0; font-size: 17px; line-height: 1.38; font-weight: 800; letter-spacing: -.005em; overflow-wrap: anywhere; }
.pt-th-title a { display: block; padding: 10px 0 8px; }
.pt-th-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pt-th-ex { margin-top: -4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.6; color: #3c4d68; overflow-wrap: anywhere; }
.pt-th-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; font-size: 13px; color: var(--mut); font-variant-numeric: tabular-nums; }
.pt-th-stat { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.pt-th-stat .pt-th-i { width: 17px; height: 17px; }
.pt-th a.pt-th-stat:hover { color: var(--ink); }
.pt-th-tags { display: flex; flex-wrap: wrap; gap: 0 12px; margin-left: auto; }
.pt-th .pt-th-tags a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; }
.pt-th .pt-th-tags a:hover { text-decoration: underline; }
.pt-th-none { padding: 28px 0; text-align: center; color: var(--mut); }
.pt-th .pt-th-none a, .pt-th .pt-th-signin a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.pt-th-empty { display: grid; justify-items: center; gap: 12px; padding: 36px 0 28px; text-align: center; color: var(--mut); }
.pt-th-empty img { width: 110px; height: 120px; object-fit: contain; }
.pt-th-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 0; font-size: 14px; color: var(--mut); }
.pt-th .pt-th-pager a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; }
.pt-th-pager > :last-child { justify-self: end; }

/* The "saved" tab: saved threads, then saved comments (each leads to its place in its thread) */
.pt-th-sec { margin-top: 22px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 15px; line-height: 1.4; font-weight: 800; }
.pt-th-kept { padding-bottom: 4px; }
.pt-th-kept .pt-th-ex { margin-top: 8px; -webkit-line-clamp: 3; }
.pt-th .pt-th-in { display: flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.pt-th .pt-th-in:hover { text-decoration: underline; }

/* A writer's name leads to their profile (its tap area is taller than the line it sits in) */
.pt-th .pt-th-who { display: inline-block; min-width: 0; margin: -12px 0; padding: 12px 0; }
.pt-th .pt-th-who:hover b { text-decoration: underline; }
.pt-th-by .pt-th-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-th-via { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; color: var(--mut); }
.pt-th-via .pt-th-i { width: 15px; height: 15px; }
.pt-th-via b { color: #3c4d68; font-weight: 600; }
.pt-th .pt-th-repost[aria-pressed="true"] { color: #0a7a4a; }
.pt-th .pt-th-repost[aria-pressed="true"] .pt-th-i { stroke-width: 2.4; }
.pt-th-mast-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* A writer's profile */
.pt-th-ph { padding: 4px 0 18px; }
.pt-th-ph-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pt-th-ph h1 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pt-th-ph-handle { margin-top: 2px; font-size: 14px; color: var(--mut); }
.pt-th-ph .pt-th-av { width: 72px; height: 72px; margin: 0; font-size: 28px; }
.pt-th-ph-bio { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--txt); overflow-wrap: anywhere; }
.pt-th .pt-th-ph-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; margin-top: 12px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-size: 13.5px; font-weight: 600; }
.pt-th-ph-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-th .pt-th-ph-chip:hover { background: #e9eef8; }
.pt-th-ph-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; font-size: 14px; color: var(--mut); }
.pt-th-ph-stats b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-th-ph-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pt-th .pt-th-follow[aria-pressed="true"] { border-color: #cfd7e4; background: #fff; }
.pt-th-prof .pt-th-tabs { margin-top: 2px; }

/* Pictures: one large, or a grid of two to four (each opens in full); a small one beside a thread in a list */
.pt-th-pics { display: grid; gap: 6px; margin-top: 18px; }
.pt-th-pics a { display: block; overflow: hidden; border-radius: 12px; background: var(--soft); }
.pt-th-pics img { display: block; width: 100%; height: auto; }
/* (one picture: never drawn larger than it is - a small one sits in the middle of its band) */
.pt-th-pics-1 img { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; object-fit: contain; }
.pt-th-pics-2, .pt-th-pics-3, .pt-th-pics-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(.pt-th-pics-2, .pt-th-pics-3, .pt-th-pics-4) img { aspect-ratio: 4 / 3; height: 100%; object-fit: cover; }
.pt-th-pics-3 a:first-child { grid-column: 1 / -1; }
.pt-th-pics-3 a:first-child img { aspect-ratio: 16 / 9; }
.pt-th-ctext .pt-th-pics { max-width: 320px; margin-top: 8px; }
.pt-th-ctext .pt-th-pics-1 img { max-height: 320px; }
.pt-th-row { display: flex; align-items: flex-start; gap: 14px; }
.pt-th-main { flex: 1; min-width: 0; }
.pt-th-thumb { flex: none; margin-top: 10px; }
.pt-th-thumb img { display: block; width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--soft); }
/* … and adding them */
.pt-th-up { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-th-up-list { display: contents; }
.pt-th-up-item { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--soft); color: var(--mut); font-size: 11.5px; line-height: 1.3; text-align: center; }
.pt-th-up-item img { width: 100%; height: 100%; object-fit: cover; }
.pt-th .pt-th-up-item button { position: absolute; top: 0; right: 0; width: 32px; height: 32px; border: 0; border-radius: 0 0 0 10px; background: rgba(0, 24, 74, .72); color: #fff; font-size: 13px; line-height: 1; }
.pt-th-up-add { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px dashed #b7c2d6; border-radius: 999px; color: #3c4d68; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pt-th-up-add:hover { border-color: var(--blue); color: var(--blue); }
.pt-th-up-add input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pt-th-up-add:focus-within { outline: 3px solid #7aa7ff; outline-offset: 2px; }
.pt-th-up-full .pt-th-up-add { display: none; }

/* Reporting a post */
.pt-th-dlg-s { width: min(460px, calc(100% - 24px)); }
.pt-th-hint { font-size: 13.5px; line-height: 1.55; color: var(--mut); }
.pt-th-reasons { display: grid; gap: 2px; }
.pt-th-reasons legend { margin-bottom: 4px; font-size: 13.5px; font-weight: 700; }
.pt-th-reasons label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; cursor: pointer; }
.pt-th-reasons input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.pt-th .pt-th-cact button[disabled], .pt-th .pt-th-act[disabled] { color: #8794ab; cursor: default; text-decoration: none; background: none; }

/* Side column: what is read most, tags, the rules */
.pt-th-side { display: grid; gap: 28px; align-content: start; padding-top: 24px; }
.pt-th-box h2 { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 14px; line-height: 1.4; font-weight: 800; }
.pt-th-hot { counter-reset: hot; }
.pt-th-hot li { counter-increment: hot; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 6px; padding: 10px 0; }
.pt-th-hot li + li { border-top: 1px solid var(--line); }
.pt-th-hot li::before { content: counter(hot); grid-row: 1 / span 2; font-size: 16px; line-height: 1.25; font-weight: 800; color: #8794ab; }
.pt-th-hot a { min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.45; font-weight: 600; }
.pt-th-hot a:hover { text-decoration: underline; }
.pt-th-hot small { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: var(--mut); }
.pt-th-hot small .pt-th-i { width: 14px; height: 14px; }
.pt-th-hot small .pt-th-i:nth-of-type(2) { margin-left: 8px; }
.pt-th-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-th-cloud a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; }
.pt-th .pt-th-cloud a:hover, .pt-th .pt-th-cloud a[aria-current] { background: var(--ink); color: #fff; }
.pt-th-rules ul { display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; color: #3c4d68; }
.pt-th-rules li { padding-left: 16px; position: relative; }
.pt-th-rules li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

/* One thread */
.pt-th .pt-th-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -4px; color: var(--mut); font-size: 14px; font-weight: 600; }
.pt-th .pt-th-back:hover { color: var(--ink); }
.pt-th-post > .pt-th-kind { display: inline-block; margin: 6px 0 0; }
.pt-th-post h1 { margin-top: 10px; font-size: 24px; line-height: 1.32; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pt-th-by-l { gap: 10px; margin-top: 16px; }
.pt-th-by-l .pt-th-av { width: 36px; height: 36px; font-size: 15px; }
.pt-th-by-l > span { display: grid; min-width: 0; }
.pt-th-by-l b { font-size: 14.5px; font-weight: 700; }
.pt-th-by-l time { font-size: 13px; }
.pt-th-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; margin-top: 16px; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pt-th-bar-end { margin-top: 12px; }
.pt-th .pt-th-act { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: #3c4d68; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-th button.pt-th-act:hover, .pt-th a.pt-th-act:hover { background: var(--soft); color: var(--ink); }
.pt-th .pt-th-quiet { color: var(--mut); font-weight: 500; }
.pt-th .pt-th-end { margin-left: auto; }
.pt-th .pt-th-danger { color: #b42318; }
.pt-th .pt-th-like[aria-pressed="true"] { color: #b54708; }
.pt-th .pt-th-like[aria-pressed="true"] .pt-th-i { fill: var(--orange); stroke: #b54708; }
.pt-th .pt-th-save[aria-pressed="true"] { color: var(--ink); }
.pt-th .pt-th-save[aria-pressed="true"] .pt-th-i { fill: var(--ink); stroke: var(--ink); }
.pt-th-body { margin-top: 20px; font-size: 16.5px; line-height: 1.75; color: var(--txt); overflow-wrap: anywhere; }
.pt-th-body p + p { margin-top: 1.1em; }
.pt-th .pt-th-body a, .pt-th .pt-th-ctext a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.pt-th-post > .pt-th-tags { margin: 12px 0 0; font-size: 14px; }

/* Comments */
.pt-th-replies { margin-top: 36px; scroll-margin-top: 90px; }
.pt-th-replies > h2, .pt-th-morebox > h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 1.35; font-weight: 800; }
.pt-th-morebox > h2 a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.pt-th-morebox > h2 .pt-th-kind { margin-left: 0; }
.pt-th-replies > h2 span { color: var(--mut); font-weight: 600; font-size: 14.5px; }
.pt-th-form { display: grid; gap: 8px; margin-top: 14px; }
.pt-th-form textarea, .pt-th-f input, .pt-th-f textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid #cfd7e4; border-radius: 12px; background: #fff; font-size: 16px; line-height: 1.6; color: var(--ink); resize: vertical; }
.pt-th-form textarea:focus, .pt-th-f input:focus, .pt-th-f textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 74, 235, .16); }
.pt-th-form > div:not(.pt-th-up) { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pt-th-msg { margin-right: auto; font-size: 13.5px; line-height: 1.45; color: #b42318; }
.pt-th-msg:empty { display: none; }
.pt-th .pt-th-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid #cfd7e4; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.pt-th .pt-th-btn:hover { border-color: var(--ink); }
.pt-th .pt-th-btn-main { border-color: var(--orange); background: var(--orange); }
.pt-th .pt-th-btn-main:hover { border-color: #ffa51f; background: #ffa51f; }
.pt-th .pt-th-btn[disabled] { opacity: .55; cursor: default; }
.pt-th-signin { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 14.5px; color: #3c4d68; }
.pt-th-clist { margin-top: 10px; }
.pt-th-c { padding: 16px 0 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.pt-th-c:target > .pt-th-ctext { background: #fff7e6; box-shadow: 0 0 0 6px #fff7e6; border-radius: 4px; }
.pt-th-ctext { margin: 8px 0 0 36px; font-size: 15px; line-height: 1.7; color: var(--txt); overflow-wrap: anywhere; }
.pt-th-ctext p + p { margin-top: .8em; }
.pt-th-cact { display: flex; gap: 4px; margin-left: 28px; min-height: 12px; }
.pt-th .pt-th-cact button { display: inline-flex; align-items: center; gap: 5px; min-width: 40px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--mut); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-th .pt-th-cact button:hover { color: var(--ink); text-decoration: underline; }
.pt-th .pt-th-cact :is(.pt-th-like, .pt-th-save):hover { background: var(--soft); text-decoration: none; }
.pt-th .pt-th-cact .pt-th-i { width: 17px; height: 17px; }
.pt-th .pt-th-cact span:empty { display: none; }
.pt-th-sub { margin: 0 0 6px 13px; padding-left: 16px; border-left: 2px solid var(--line); }
.pt-th-sub .pt-th-c { border-bottom: 0; padding: 10px 0 0; }
.pt-th-form-in { margin: 4px 0 12px 36px; }
.pt-th-morebox { margin-top: 44px; padding-top: 20px; border-top: 2px solid var(--ink); }
.pt-th-morebox .pt-th-item:last-child { border-bottom: 0; }

/* Writing a thread */
/* (margin: the theme takes every element's margin away, and a dialog is centred by its own) */
.pt-th-dlg { margin: auto; width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0, 24, 74, .3); overflow: auto; }
.pt-th-dlg::backdrop { background: rgba(0, 24, 74, .5); }
.pt-th-compose { display: grid; gap: 14px; padding: 18px 18px 16px; }
.pt-th-compose header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-th-compose h2 { font-size: 19px; line-height: 1.3; font-weight: 800; }
.pt-th .pt-th-x { width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; border-radius: 50%; background: none; color: var(--mut); font-size: 18px; }
.pt-th .pt-th-x:hover { background: var(--soft); color: var(--ink); }
.pt-th-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-th-kinds legend, .pt-th-f > span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; }
.pt-th-kinds legend { float: left; width: 100%; }
.pt-th-kinds label { position: relative; cursor: pointer; }
.pt-th-kinds input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pt-th-kinds span { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--c); font-size: 14px; font-weight: 600; }
.pt-th-kinds input:checked + span { border-color: var(--c); background: var(--c); color: #fff; }
.pt-th-kinds input:focus-visible + span { outline: 3px solid #7aa7ff; outline-offset: 2px; }
.pt-th-f { display: block; }
.pt-th-f small { margin-left: 6px; font-weight: 500; color: var(--mut); font-variant-numeric: tabular-nums; }
.pt-th-compose footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }

@media (max-width: 1023px) {
	.pt-th-topics a, .pt-th-cloud a { min-height: 44px; }
}
/* (a narrow phone: the bar's "save" and "share" are their pictures alone, so that the bar stays one line) */
@media (max-width: 520px) {
	.pt-th-bar .pt-th-save span, .pt-th-bar [data-th-share] span, .pt-th-bar .pt-th-quiet[aria-label] span { display: none; }
	.pt-th-bar .pt-th-views { display: none; } /* (the count of views gives way to "repost") */
	.pt-th .pt-th-act { padding: 0 8px; }
}
@media (min-width: 768px) {
	.pt-th-wrap { padding: 24px 24px 72px; }
	.pt-th-mast h1 { font-size: 28px; }
	.pt-th-mast p { font-size: 15px; }
	.pt-th-tabs, .pt-th-topics { margin: 0; padding-left: 0; padding-right: 0; }
	.pt-th-title { font-size: 18px; }
	.pt-th-post h1 { font-size: 30px; line-height: 1.28; }
	.pt-th-ph h1 { font-size: 24px; }
	.pt-th-ph .pt-th-av { width: 88px; height: 88px; font-size: 32px; }
	.pt-th-compose { padding: 24px 24px 20px; }
}
@media (min-width: 1024px) {
	.pt-th-grid { grid-template-columns: minmax(0, 1fr) 300px; margin-top: 4px; }
	.pt-th-side { position: sticky; top: 96px; }
}
@media (prefers-reduced-motion: no-preference) {
	.pt-th .pt-th-act, .pt-th .pt-th-btn, .pt-th .pt-th-new, .pt-th-topics a, .pt-th-cloud a { transition: background-color .12s, border-color .12s, color .12s; }
}
