/* Shared reading, form and table refinements across the full PHP site. */
.main-wrapper,.page-shell,.two-column>*,.profile-grid>*,.article-layout>*,.stats-grid>*,.support-categories>* { min-width:0; }
.page-heading>div { min-width:0; }
.page-heading h1,.article-hero h1,.policy-title { overflow-wrap:break-word; text-wrap:balance; }
.page-heading p { font-size:14px; line-height:1.85; }
.content-card>p,.support-category>p { font-size:13px; line-height:1.85; }
.content-card>h2 { font-size:21px; }
.article,.policy-content { font-size:15px; line-height:1.95; }
.article p,.policy-content p { overflow-wrap:break-word; }
.article code,.policy-content a,.article-source a { overflow-wrap:anywhere; word-break:break-word; }
.article .guide-step p { font-size:14px; line-height:1.95; }
.article .guide-step h2 { font-size:21px; }
.feature-list li { line-height:1.85; }
.form-control { min-height:46px; line-height:1.6; font-size:14px; }
textarea.form-control { min-height:145px; resize:vertical; }
.form-field>label { line-height:1.7; }
.form-message { overflow-wrap:anywhere; }
.table-scroll { width:100%; max-width:100%; min-width:0; overscroll-behavior-x:contain; scrollbar-width:thin; }
.table-scroll:focus-visible { outline:2px solid var(--brand); outline-offset:4px; border-radius:8px; }
.table-scroll-hint { display:none; align-items:center; gap:7px; color:var(--muted); font-size:11px; margin:10px 0 13px; line-height:1.7; }
.table-scroll-hint.is-visible { display:flex; }
.table-scroll-hint .icon { width:14px; height:14px; }
.toolbar form>* { min-width:0; }
.ticket-item summary { min-width:0; }
.ticket-item summary>strong { overflow-wrap:anywhere; }
.ticket-item>p,.order-details p,.profile-info dd { overflow-wrap:anywhere; }
.bank-details dd { overflow-wrap:anywhere; }
.faq-item summary { min-height:52px; }
.article-toc>a { min-height:38px; display:flex; align-items:center; }
.skip-link { max-width:calc(100% - 32px); }
@media(min-width:1600px) {
  .page-shell { padding-top:45px; padding-bottom:80px; }
  .reading-article { max-width:850px; }
  .policy-wrapper { max-width:960px; }
}
@media(max-width:1100px) {
  .page-heading { flex-wrap:wrap; }
  .toolbar form { flex-wrap:wrap; }
  .toolbar .search-field { flex:1 1 220px; }
  .toolbar select { flex:1 1 155px; }
}
@media(max-width:900px) {
  .page-heading h1 { font-size:clamp(27px,3.8vw,35px); }
  .article-toc { position:static; }
  .profile-info dd { min-width:0; }
}
@media(max-width:640px) {
  .page-shell { padding-top:25px; padding-bottom:40px; }
  .page-heading { gap:17px; margin-bottom:25px; }
  .page-heading h1 { font-size:29px; line-height:1.45; letter-spacing:-.9px; }
  .page-heading p { font-size:14px; line-height:1.9; }
  .page-heading .button { min-height:46px; font-size:12px; }
  .content-card { padding:25px 20px; }
  .content-card>h2 { font-size:21px; }
  .content-card>p,.support-category>p { font-size:14px; }
  .form-control,input.form-control,select.form-control,textarea.form-control { font-size:16px; min-height:48px; padding-top:12px; padding-bottom:12px; }
  .form-field>label { font-size:13px; margin-bottom:9px; }
  .form-field .field-hint { font-size:12px; line-height:1.8; }
  .form-message { font-size:13px; line-height:1.85; padding:13px; }
  .content-card .button,.support-category .text-link { font-size:13px; }
  .content-card .button { min-height:48px; }
  .content-card .feature-list li { font-size:13px; }
  .stats-grid { gap:10px; }
  .stat-card { padding:17px 13px; }
  .stat-card strong { font-size:25px; }
  .stat-card small { font-size:11px; line-height:1.7; }
  .data-table td { font-size:12px; line-height:1.8; }
  .data-table .tag { font-size:11px; padding:5px 8px; }
  .table-meta { font-size:12px; line-height:1.85; }
  .pagination a { min-width:37px; min-height:37px; }
  .article,.policy-content { font-size:15px; line-height:1.95; }
  .article .guide-step p { font-size:14px; }
  .article .guide-step h2 { font-size:20px; }
  .article-hero h1 { font-size:28px; line-height:1.5; }
  .article-hero>p { font-size:12px; }
  .reading-article .article-source { font-size:12px; }
  .article-toc>a { min-height:43px; font-size:12px; }
  .faq-item summary,.faq-item>div { font-size:13px; line-height:1.9; }
  .notice-card h4 { font-size:13px; }
  .notice-card p { font-size:12px; }
  .notice-card a { min-height:32px; font-size:12px; }
  .wallet-card>p { font-size:13px; }
  .bank-details dt { font-size:12px; }
  .bank-details dd { font-size:14px; line-height:1.9; }
  .copy-button { min-width:40px; min-height:40px; }
  .qr-panel>p { font-size:12px; }
  .ticket-item summary { gap:10px; flex-wrap:wrap; }
  .ticket-item summary>strong { font-size:13px; }
  .ticket-item>p { font-size:13px; }
  .profile-info dt { font-size:12px; }
  .profile-info dd { font-size:14px; }
  .post-content>p { font-size:13px; }
}
@media(max-width:370px) {
  .content-card { padding:23px 16px; }
  .page-heading h1 { font-size:26px; }
  .stat-card { padding:15px 10px; }
  .stat-card small { font-size:10px; }
  .profile-info dl>div { gap:7px; }
}
@media(prefers-reduced-motion:reduce) { .table-scroll { scroll-behavior:auto; } }
.ticket-admin-reply { padding:16px; margin-top:14px; border-left:3px solid var(--brand); background:var(--surface-soft); border-radius:9px; }
.ticket-admin-reply>strong { display:block; font-size:12px; }
.ticket-admin-reply>small { color:var(--muted); font-size:10px; }
.ticket-admin-reply>p { font-size:13px; line-height:1.8; overflow-wrap:anywhere; margin-top:8px; }
/* A shared phone rhythm prevents each section having a different left edge. */
@media(max-width:640px) {
  .page-shell { width:calc(100% - 32px); }
  .page-heading h1 { line-height:1.35; }
  .page-heading p { line-height:1.8; }
  .content-card { padding:22px 18px; border-radius:20px; }
  .breadcrumbs { font-size:12px; gap:8px; flex-wrap:wrap; line-height:1.8; }
  .breadcrumbs>a { min-height:40px; display:inline-flex; align-items:center; }
  .data-table td { gap:12px; overflow-wrap:anywhere; }
  .data-table td:before { font-size:12px; }
  .data-table td .text-link { min-width:44px; min-height:44px; justify-content:center; }
  .pagination a,.copy-button,.password-wrap>button { min-width:44px; min-height:44px; }
  .bank-details dd>span { min-width:0; overflow-wrap:anywhere; }
  .bank-details dd>.copy-button { flex-shrink:0; }
  .payment-amounts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .amount-button>span { min-height:48px; font-size:14px; display:flex; align-items:center; justify-content:center; }
  .profile-card { padding:24px 20px; }
  .profile-card>p { font-size:13px; overflow-wrap:anywhere; }
  .profile-card h2,.wallet-card strong { overflow-wrap:anywhere; }
  .profile-grid .stat-card { padding:16px 12px; }
  .profile-grid .stat-card strong { font-size:clamp(19px,5.4vw,25px); overflow-wrap:anywhere; }
  .settings-links>a { font-size:13px; padding:14px 10px; }
  .settings-links small { font-size:11px; line-height:1.6; }
  .article-toc>a { min-height:44px; font-size:13px; }
  .article-toc,.notice-card { padding:20px; }
  .empty-state h3 { font-size:17px; }
}
