/* ============================================================
   pokemon-summary.css  — 全ポケモン評価一覧テーブル
   ============================================================ */

#pokego-pokemon-summary {
    --pks-accent:   #0c6d7d;
    --pks-accent-s: #d9eff2;
    --pks-ink:      #1f2430;
    --pks-soft:     #667085;
    --pks-line:     #d8dde6;
    --pks-paper:    #ffffff;
    --pks-surface:  #f4f6fb;
    --pks-radius:   10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 12px 48px;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN',
                 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--pks-ink);
    font-size: 13px;
}

/* ---- コントロールバー ---- */
.pks-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pks-search-wrap {
    position: relative;
    flex: 1 1 200px;
    min-width: 140px;
    max-width: 320px;
}

.pks-search-wrap::before {
    content: "🔍";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
}

#pks-search {
    width: 100%;
    padding: 8px 10px 8px 32px;
    border: 1px solid var(--pks-line);
    border-radius: var(--pks-radius);
    font-size: 13px;
    color: var(--pks-ink);
    background: var(--pks-paper);
    box-sizing: border-box;
    outline: none;
}

#pks-search:focus {
    border-color: var(--pks-accent);
    box-shadow: 0 0 0 2px var(--pks-accent-s);
}

/* ---- 検索サジェスト ---- */
.pks-suggest {
    position: fixed;
    display: none;
    background: var(--pks-paper);
    border: 1px solid var(--pks-line);
    border-radius: var(--pks-radius);
    max-height: 280px;
    overflow-y: auto;
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.pks-suggest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.pks-suggest-item:last-child {
    border-bottom: none;
}

.pks-suggest-item:hover {
    background: var(--pks-accent-s);
}

/* ---- フィルタートグル ---- */
.pks-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pks-filter-label {
    font-size: 12px;
    color: var(--pks-soft);
    font-weight: 600;
}

.pks-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--pks-line);
    background: var(--pks-paper);
    color: var(--pks-soft);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pks-filter-btn::before {
    content: "☑";
    font-size: 12px;
}

.pks-filter-btn.excluded {
    background: #f5f5f5;
    color: #b0b0b0;
    border-color: #ddd;
    text-decoration: line-through;
}

.pks-filter-btn.excluded::before {
    content: "☐";
}

.pks-filter-btn[data-cat="shadow"]   { border-color: rgba(147,112,219,.5); color: #6a35c2; }
.pks-filter-btn[data-cat="mega"],
.pks-filter-btn[data-cat="gmax"]     { border-color: rgba(255,152,0,.5); color: #e65100; }
.pks-filter-btn[data-cat="legendary"]{ border-color: rgba(239,108,0,.5); color: #bf360c; }
.pks-filter-btn[data-cat="unreleased"]{ border-color: #d32f2f; color: #d32f2f; background: #fff3f0; font-weight: 700; }
.pks-filter-btn[data-cat="unreleased"]::before { content: "\26A0\FE0F"; }

.pks-filter-btn[data-cat="shadow"].excluded,
.pks-filter-btn[data-cat="mega"].excluded,
.pks-filter-btn[data-cat="gmax"].excluded,
.pks-filter-btn[data-cat="legendary"].excluded,
.pks-filter-btn[data-cat="unreleased"].excluded { color: #b0b0b0; border-color: #ddd; background: #f5f5f5; }
.pks-filter-btn[data-cat="unreleased"].excluded::before { content: "\26A0\FE0F"; }

.pks-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--pks-soft);
    white-space: nowrap;
}

.pks-count strong {
    color: var(--pks-ink);
    font-size: 14px;
}

/* ---- ソートショートカット ---- */
.pks-sort-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
}

.pks-sort-label {
    font-size: 12px;
    color: var(--pks-soft);
    font-weight: 600;
}

.pks-sort-btn {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--pks-line);
    background: var(--pks-paper);
    color: var(--pks-soft);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pks-sort-btn--active {
    background: var(--pks-accent);
    color: #fff;
    border-color: var(--pks-accent);
}

.pks-sort-btn:hover:not(.pks-sort-btn--active) {
    background: var(--pks-accent-s);
    border-color: var(--pks-accent);
}

/* ---- 展開ボタン ---- */
.pks-expand-btn {
    display: block;
    margin: 12px auto;
    padding: 10px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
}

.pks-expand-btn:hover {
    background: #005a87;
}

/* ---- テーブルラッパー ---- */
.pks-table-wrap {
    overflow-x: auto;
    overflow-y: auto; /* テーブル内スクロール → sticky thead が確実に機能する */
    max-height: 78vh;
    min-height: 400px;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--pks-line);
    border-radius: var(--pks-radius);
    box-shadow: 0 2px 8px rgba(17,24,39,.05);
}

#pks-table {
    width: auto;
    border-collapse: collapse;
    white-space: nowrap;
    table-layout: fixed;
}

/* ---- 列幅固定（colgroup で管理、CSS は補助のみ） ---- */
#pks-table .pks-col-name { overflow: hidden; }

/* ---- ヘッダー ---- */
#pks-table thead th {
    position: sticky;
    top: 0;
    background: var(--pks-surface);
    padding: 9px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--pks-soft);
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid var(--pks-line);
    z-index: 10;
}

#pks-table thead th.sortable {
    cursor: pointer;
    user-select: none;
}

#pks-table thead th.sortable:hover {
    background: #e8ecf0;
}

#pks-table thead th .sort-arrow {
    display: inline-block;
    margin-left: 4px;
    opacity: .35;
    font-size: 10px;
}

#pks-table thead th.sort-asc .sort-arrow { opacity: 1; }
#pks-table thead th.sort-asc .sort-arrow::after  { content: "▲"; }
#pks-table thead th.sort-desc .sort-arrow { opacity: 1; }
#pks-table thead th.sort-desc .sort-arrow::after { content: "▼"; }
#pks-table thead th:not(.sort-asc):not(.sort-desc) .sort-arrow::after { content: "⇅"; }

/* ---- 行 ---- */
#pks-table tbody tr {
    border-bottom: 1px solid var(--pks-line);
    transition: background 0.1s;
}

#pks-table tbody tr:last-child { border-bottom: none; }

#pks-table tbody tr:hover { background: #f0f9fb; }

#pks-table tbody td {
    padding: 6px 8px;
    vertical-align: middle;
    height: 52px;  /* 全行の高さを統一（画像44px+上下padding8px） */
    overflow: hidden;
}

/* 画像セル */
.pks-img-cell {
    width: 56px;
    padding: 4px !important;
    line-height: 0;  /* inline要素の余白を除去 */
}

.pks-pokemon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.pks-img-placeholder {
    width: 44px;
    height: 44px;
    background: var(--pks-surface);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--pks-soft);
}

/* 図鑑番号 */
.pks-dex {
    color: var(--pks-soft);
    font-size: 11px;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

/* ポケモン名 */
.pks-name-inner {
    max-width: 216px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pks-name-link {
    color: var(--pks-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.pks-name-link:hover { text-decoration: underline; }

/* task #262 #5: 名前セルのサブ行 (mobile 専用、desktop では No/フォルム/カテゴリ列があるため非表示) */
.pks-name-sub {
    display: none;
    font-size: 9px;
    color: var(--pks-soft);
    line-height: 1.2;
    margin-top: 1px;
}

/* フォルム */
.pks-form {
    font-size: 11px;
    color: var(--pks-soft);
    min-width: 60px;
}

/* カテゴリバッジ */
.pks-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.pks-badge--shadow   { background: rgba(147,112,219,.18); color: #6a35c2; }
.pks-badge--mega     { background: rgba(255,152,0,.18); color: #e65100; }
.pks-badge--gmax     { background: rgba(255,87,34,.18); color: #c62828; }
.pks-badge--legendary{ background: rgba(239,108,0,.12); color: #bf360c; }
.pks-badge--normal   { display: none; }

/* タイプチップ */
.pks-type-chips {
    display: flex;
    /* task #264: PC は chip 内に icon が入り横幅が増えるため縦積み (タイプ列幅 124px 不変) */
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    overflow: hidden;
}

.pks-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

/* task #264: chip 内タイプアイコン (type-ranking .pkr-type-icon 準拠、chip 用 16px) */
.pks-type-icon--chip {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.pks-type--ノーマル  { background: #9fa19f; }
.pks-type--ほのお    { background: #e62829; }
.pks-type--みず      { background: #2980ef; }
.pks-type--でんき    { background: #fac000; color: #3a2e00; }
.pks-type--くさ      { background: #3fa129; }
.pks-type--こおり    { background: #3dcef3; color: #003a48; }
.pks-type--かくとう  { background: #ff8000; }
.pks-type--どく      { background: #9141cb; }
.pks-type--じめん    { background: #915121; }
.pks-type--ひこう    { background: #81b9ef; color: #1a3055; }
.pks-type--エスパー  { background: #ef4179; }
.pks-type--むし      { background: #91a119; }
.pks-type--いわ      { background: #b0ab82; color: #2e2a16; }
.pks-type--ゴースト  { background: #704170; }
.pks-type--ドラゴン  { background: #5060e1; }
.pks-type--あく      { background: #4f3f3d; }
.pks-type--はがね    { background: #60a1b8; color: #fff; }
.pks-type--フェアリー{ background: #ef70ef; }

/* 数値セル */
.pks-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 50px;
    font-size: 12px;
}

/* 10段階評価セル */
.pks-step10-cell {
    text-align: center;
    min-width: 60px;
}

.pks-step10-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.pks-step10-null {
    color: #ccc;
    font-size: 11px;
}

/* ---- ローディング ---- */
.pks-loading {
    text-align: center;
    padding: 40px;
    color: var(--pks-soft);
    font-size: 14px;
}

/* ---- エラー ---- */
.pks-error {
    text-align: center;
    padding: 24px;
    color: #c62828;
    font-size: 13px;
    background: #ffebee;
    border-radius: var(--pks-radius);
    margin: 12px 0;
}

/* ---- 件数0 ---- */
.pks-empty {
    text-align: center;
    padding: 40px;
    color: var(--pks-soft);
    font-size: 13px;
}

/* ============================================================
   静的SEOブロック（クローラ向け常時HTML出力 / JSロード後は静的テーブルを非表示）
   ============================================================ */

.pks-static-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 12px 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN',
                 'Hiragino Sans', Meiryo, sans-serif;
    color: #1f2430;
    font-size: 13px;
}

/* 静的テーブルはデフォルト非表示（JSレンダリング優先。クローラーは読める）*/
.pks-static-table-wrap { display: none; }
/* JS無効環境では <noscript> 経由で表示 */

/* ---- 「このページの見方」 ---- */
.pks-intro-wrap {
    background: #f4f6fb;
    border: 1px solid #d8dde6;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.pks-intro-heading {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #0c6d7d;
}

.pks-intro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pks-intro-table th {
    padding: 5px 14px 5px 0;
    text-align: left;
    white-space: nowrap;
    color: #667085;
    font-weight: 600;
    width: 110px;
    vertical-align: top;
}

.pks-intro-table td {
    padding: 5px 0;
    color: #1f2430;
    line-height: 1.5;
}

/* ---- 静的一覧テーブル ---- */
.pks-static-note {
    font-size: 12px;
    color: #667085;
    margin: 0 0 8px;
}

.pks-static-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    border: 1px solid #d8dde6;
    border-radius: 10px;
    overflow: hidden;
}

.pks-static-tbl th {
    background: #f4f6fb;
    padding: 7px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #667085;
    border-bottom: 2px solid #d8dde6;
    white-space: nowrap;
}

.pks-static-tbl td {
    padding: 5px 10px;
    border-bottom: 1px solid #d8dde6;
    vertical-align: middle;
}

.pks-static-tbl tr:last-child td { border-bottom: none; }

.pks-static-tbl td:first-child a {
    color: #0c6d7d;
    text-decoration: none;
    font-weight: 600;
}

.pks-static-tbl td:first-child a:hover { text-decoration: underline; }

/* ---- 左固定列（画像列を sticky で固定） ---- */
#pks-table .pks-col-img {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 44px;  /* sticky 時に列幅が縮まないよう保護 */
    box-shadow: 2px 0 4px rgba(0,0,0,.06);
}
#pks-table thead th.pks-col-img {
    z-index: 12;
}
#pks-table tbody td.pks-col-img {
    background: var(--pks-paper);
}
#pks-table tbody tr:hover td.pks-col-img {
    background: #f0f9fb;
}

/* テーマの max-width:100% / height:auto がポケモン画像を変形させないよう上書き */
.pks-pokemon-img {
    max-width: none !important;
    width: 44px !important;
    height: 44px !important;
}

/* ---- デスクトップ: 幅いっぱいに展開 ---- */
/* Affingerのコンテンツ幅制約はWPページ側で上書き済み。こちらは100%で収める。 */
@media (min-width: 960px) {
    #pokego-pokemon-summary {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    /* セルの左右パディングを詰めて全カラムを画面内に収める */
    #pks-table thead th,
    #pks-table tbody td {
        padding-left: 7px;
        padding-right: 7px;
    }
}

/* ---- レスポンシブ ---- */
@media (max-width: 640px) {
    #pokego-pokemon-summary {
        padding: 10px 8px 32px;
    }
    .pks-controls {
        gap: 8px;
    }
    .pks-count {
        margin-left: 0;
        width: 100%;
    }
    /* モバイルの列非表示は JS (MOBILE_HIDE / activeColumns) が担当 (task #262 #5)。
       旧: ここで .pks-col-durability 等を display:none にしていたが、
       table-layout:fixed では cell 非表示が colgroup とのズレを生むため廃止 */

    /* ---- task #262 #5: 一望性 — 列ダイエット + 名前列 sticky + 全体縮小 ----
       列の絞り込みと幅は JS 側 MOBILE_HIDE/MOBILE_WIDTH (buildColgroup) が担当。
       No/フォルム/カテゴリは名前セルのサブ行 .pks-name-sub に統合 */
    #pks-table thead th,
    #pks-table tbody td {
        padding: 4px 2px;
        font-size: 10px;
    }
    /* 狭幅列 (バッジ/SCP/タイプ/能力値) の見出しは縦書きで幅 24-46px に収める。
       ⚠️ writing-mode は th 直接ではなく内側 span (.pks-th-txt) に当てる —
       WebKit/iOS Safari は table cell への writing-mode を無視する (2026-07-04 実機で顕在化) */
    #pks-table {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    #pks-table thead th.pks-col-raid,
    #pks-table thead th.pks-col-gym,
    #pks-table thead th.pks-col-gl,
    #pks-table thead th.pks-col-ul,
    #pks-table thead th.pks-col-ml,
    #pks-table thead th.pks-col-mega,
    #pks-table thead th.pks-col-rocket,
    #pks-table thead th.pks-col-scp-gl,
    #pks-table thead th.pks-col-scp-ul,
    #pks-table thead th.pks-col-scp-ml,
    #pks-table thead th.pks-col-type,
    #pks-table thead th.pks-col-cp,
    #pks-table thead th.pks-col-atk,
    #pks-table thead th.pks-col-def,
    #pks-table thead th.pks-col-hp {
        text-transform: none;
        letter-spacing: 0;
        font-size: 9px;
        padding: 6px 1px;
        height: 76px;
        vertical-align: middle;
        text-align: center;
    }
    #pks-table thead th.pks-col-raid .pks-th-txt,
    #pks-table thead th.pks-col-gym .pks-th-txt,
    #pks-table thead th.pks-col-gl .pks-th-txt,
    #pks-table thead th.pks-col-ul .pks-th-txt,
    #pks-table thead th.pks-col-ml .pks-th-txt,
    #pks-table thead th.pks-col-mega .pks-th-txt,
    #pks-table thead th.pks-col-rocket .pks-th-txt,
    #pks-table thead th.pks-col-scp-gl .pks-th-txt,
    #pks-table thead th.pks-col-scp-ul .pks-th-txt,
    #pks-table thead th.pks-col-scp-ml .pks-th-txt,
    #pks-table thead th.pks-col-type .pks-th-txt,
    #pks-table thead th.pks-col-cp .pks-th-txt,
    #pks-table thead th.pks-col-atk .pks-th-txt,
    #pks-table thead th.pks-col-def .pks-th-txt,
    #pks-table thead th.pks-col-hp .pks-th-txt {
        display: inline-block;
        -webkit-writing-mode: vertical-rl;
        writing-mode: vertical-rl;
        line-height: 1.1;
        max-height: 66px;
        overflow: hidden;
        white-space: nowrap;
    }
    #pks-table tbody td { height: 42px; }
    .pks-img-cell { width: 36px; }
    .pks-pokemon-img,
    .pks-img-placeholder {
        width: 30px !important;
        height: 30px !important;
    }
    #pks-table .pks-col-img { min-width: 30px; }
    /* 名前列: 折返し可 + 画像列 (36px) の右に sticky 固定 */
    .pks-name-inner {
        max-width: 90px;
        white-space: normal;
        word-break: break-all;
        line-height: 1.25;
    }
    .pks-name-link { font-size: 11px; }
    .pks-name-sub { display: block; }
    #pks-table .pks-col-name {
        position: sticky;
        left: 36px;
        z-index: 2;
        box-shadow: 2px 0 4px rgba(0,0,0,.06);
    }
    #pks-table thead th.pks-col-name { z-index: 12; background: var(--pks-surface); }
    #pks-table tbody td.pks-col-name { background: var(--pks-paper); }
    #pks-table tbody tr:hover td.pks-col-name { background: #f0f9fb; }
    /* タイプはアイコンのみ (縦積み)。chip fallback 用の縮小も維持 */
    .pks-type-icons { display: flex; flex-direction: column; align-items: center; gap: 2px; }
    .pks-type-icon { width: 18px !important; height: 18px !important; max-width: none !important; display: block; }
    .pks-type-chips { flex-direction: column; align-items: flex-start; gap: 1px; }
    .pks-type-chip { padding: 1px 5px; font-size: 9px; }
    .pks-badge { padding: 1px 5px; font-size: 9px; }
    /* 評価バッジは 24px 列に収まる 22px 箱 (中央寄せ、iOS font boosting は上の text-size-adjust で抑止) */
    #pks-table tbody td.pks-step10-cell { padding-left: 1px; padding-right: 1px; text-align: center; }
    .pks-step10-badge {
        display: inline-block;
        box-sizing: border-box;
        width: 22px;
        padding: 2px 0;
        font-size: 10px;
        border-radius: 4px;
        text-align: center;
    }
    .pks-num { font-size: 10px; }
}

/* ============================================================
   おすすめポケモンセクション（静的HTML・SEO用）
   ============================================================ */
.pks-rec-wrap {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding: 32px 12px 48px;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN',
                 'Hiragino Sans', Meiryo, sans-serif;
    color: #1f2430;
    font-size: 13px;
}

.pks-rec-section {
    margin: 0 0 32px;
}

.pks-rec-section h2 {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #d8dde6;
}

.pks-rec-section h3 {
    font-size: 0.95em;
    font-weight: 600;
    margin: 20px 0 8px;
    color: #333;
}

.pks-rec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pks-rec-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 6px 4px;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    transition: background 0.15s, border-color 0.15s;
}

.pks-rec-card:hover {
    background: #e8f4fd;
    border-color: #90caf9;
}

.pks-rec-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.pks-rec-rank {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    margin-bottom: 2px;
}

.pks-rec-name {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    margin-top: 2px;
    word-break: break-all;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 480px) {
    .pks-rec-card {
        width: 64px;
        padding: 4px 2px;
    }
    .pks-rec-card img {
        width: 44px;
        height: 44px;
    }
    .pks-rec-name {
        font-size: 9px;
    }
}

/* ---- Breadcrumb ---- */
.pks-breadcrumb {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}
.pks-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}
.pks-breadcrumb a:hover {
    text-decoration: underline;
}
.pks-breadcrumb .pks-bc-sep {
    margin: 0 6px;
    color: #999;
}

/* ---- Quick Nav CTA ---- */
.pks-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f0f7fa;
    border-radius: 10px;
    border: 1px solid #d0e4ec;
}
.pks-quick-nav a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: #fff;
    color: #0c6d7d;
    border: 1px solid #0c6d7d;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.pks-quick-nav a:hover {
    background: #0c6d7d;
    color: #fff;
}
.pks-quick-nav a.pks-qn-primary {
    background: #0c6d7d;
    color: #fff;
}
.pks-quick-nav a.pks-qn-primary:hover {
    background: #095662;
}
@media (max-width: 640px) {
    .pks-quick-nav {
        gap: 6px;
        padding: 10px;
    }
    .pks-quick-nav a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ---- Mobile Fixed Footer Bar ---- */
.pks-mobile-bar {
    display: none;
}
@media (max-width: 768px) {
    .pks-mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        background: #fff;
        border-top: 1px solid #ddd;
        box-shadow: 0 -2px 8px rgba(0,0,0,.1);
        padding: 6px 4px;
        justify-content: space-around;
        gap: 2px;
    }
    .pks-mobile-bar a,
    .pks-mobile-bar button {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 4px 8px;
        background: none;
        border: none;
        color: #0c6d7d;
        font-size: 10px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        min-width: 56px;
    }
    .pks-mobile-bar .pks-mb-icon {
        font-size: 18px;
        line-height: 1;
    }
    .pks-back-to-top {
        bottom: 60px;
    }
}

/* ---- Back to Top ---- */
.pks-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(12, 109, 125, 0.85);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: opacity 0.3s, background 0.15s;
}
.pks-back-to-top:hover {
    background: rgba(12, 109, 125, 1);
}
.pks-back-to-top.visible {
    display: flex;
}
