/* ==========================================================================
   Pioneer Ocean Freight — Corporate Theme
   Theme: White / Corporate Red #D71920 / Corporate Navy #0A2E5C / Accent #174EA6
   Canonical served stylesheet (document root = /public).
   ========================================================================== */

:root {
    --red-600:   #D71920;
    --red-700:   #B5141B;
    --navy-900:  #0A2E5C;
    --navy-800:  #0F3A72;
    --accent-600:#174EA6;
    --accent-500:#2E63B8;

    --bg:        #F8FAFC;
    --white:     #FFFFFF;
    --ink-900:   #0E1726;
    --ink-700:   #33415C;
    --ink-500:   #64748B;
    --ink-200:   #E2E8F0;
    --ink-100:   #F1F5F9;

    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 14px rgba(10, 46, 92, .06);
    --shadow-md: 0 12px 30px rgba(10, 46, 92, .10);
    --shadow-lg: 0 20px 50px rgba(10, 46, 92, .16);
    --container: 1240px;
    --grad-red:  linear-gradient(135deg, #D71920 0%, #B5141B 100%);
    --grad-navy: linear-gradient(135deg, #0A2E5C 0%, #174EA6 100%);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

/* Safety net: an image must never exceed its container, whatever else
   happens. Without this a photo whose layout rule failed to load renders at
   its intrinsic 1600px and the page tears apart. Bootstrap Reboot does not
   set this — only its .img-fluid class does. */
img, picture, video, canvas, svg { max-width: 100%; }
img { height: auto; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", "Segoe UI", system-ui, "Noto Sans Thai", sans-serif;
    color: var(--ink-900);
    background: var(--white);
    line-height: 1.65;
    margin: 0;
}
html[lang="th"] body { line-height: 1.8; }

h1, h2, h3, h4, h5 { font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
p { color: var(--ink-700); }
a { text-decoration: none; }
img { max-width: 100%; }
section { position: relative; }

.container { max-width: var(--container); }
.bg-light-soft { background: var(--bg); }
.text-navy   { color: var(--navy-900) !important; }
.text-red    { color: var(--red-600) !important; }
.text-accent { color: var(--accent-600) !important; }
.bg-navy     { background: var(--navy-900) !important; }

.section-pad   { padding: 96px 0; }
@media (max-width: 991px){ .section-pad { padding: 64px 0; } }

.overline {
    display: inline-block;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .78rem;
    color: var(--red-600);
    margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.section-sub  { color: var(--ink-500); max-width: 620px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .7rem 1.5rem; transition: .18s ease; }
.btn-brand { background: var(--grad-red); border: none; color: #fff; box-shadow: 0 8px 20px rgba(215,25,32,.28); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(215,25,32,.36); }
.btn-navy { background: var(--grad-navy); border: none; color: #fff; }
.btn-navy:hover { color: #fff; transform: translateY(-2px); }
.btn-outline-navy { border: 1.6px solid var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-900); color: #fff; }
.btn-outline-light { border: 1.6px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); }
.btn-lg { padding: .9rem 2rem; font-size: 1.02rem; }

/* ---------- Navbar (transparent over hero -> solid white on scroll) ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: .5rem 0;
}
.site-header .navbar-brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.site-header .brand-logo { height: 46px; width: auto; display: inline-block; }
.site-footer .foot-brand .logo-fallback { background: #fff; border-radius: 8px; padding: 4px; }
@media (max-width: 575px){ .site-header .brand-logo { height: 38px; } }
.site-header .brand-mark {
    width: 38px; height: 38px; border-radius: 10px; background: var(--grad-red);
    display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
}
.site-header .nav-link { font-weight: 500; padding: .5rem .9rem; transition: color .15s; }
.site-header .lang-switch a { font-weight: 600; padding: 0 .25rem; }
.site-header .lang-switch a.active { color: var(--red-600); }

/* transparent state (over hero) */
.site-header.at-top { background: transparent; }
.site-header.at-top .navbar-brand,
.site-header.at-top .nav-link,
.site-header.at-top .lang-switch a { color: #fff; }
.site-header.at-top .nav-link:hover { color: #ffd5d8; }
.site-header.at-top .btn-outline-navy { border-color: rgba(255,255,255,.7); color:#fff; }
.site-header.at-top .btn-outline-navy:hover { background:#fff; color: var(--navy-900); }

/* scrolled state (solid) */
.site-header.scrolled { background: #fff; box-shadow: 0 4px 20px rgba(10,46,92,.08); padding: .25rem 0; }
.site-header.scrolled .navbar-brand,
.site-header.scrolled .nav-link { color: var(--navy-900); }
.site-header.scrolled .nav-link:hover { color: var(--red-600); }
.site-header.scrolled .lang-switch a { color: var(--ink-700); }
@media (max-width: 991px){
    .site-header { background:#fff; box-shadow: 0 4px 20px rgba(10,46,92,.08); }
    .site-header.at-top .navbar-brand,
    .site-header.at-top .nav-link,
    .site-header.at-top .lang-switch a { color: var(--navy-900); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    color: #fff; overflow: hidden;
}
.hero__video, .hero__fallback {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
/* Hero backdrop. The photo is painted here rather than on the <video poster>
   attribute: when /assets/videos/hero.mp4 is absent the browser never paints
   the poster, so the image would silently disappear. Drop a real hero.mp4 in
   and the video simply plays on top of this.
   image-set() serves WebP where supported and falls back to JPEG elsewhere. */
.hero__fallback {
    background: var(--navy-900) url('../images/photos/hero-network.jpg') center / cover no-repeat;
    background-image: image-set(
        url('../images/photos/hero-network.webp') type('image/webp'),
        url('../images/photos/hero-network.jpg')  type('image/jpeg')
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* Browsers that support WebP get the smaller file. */
@supports (background-image: image-set(url('x.webp') type('image/webp'))) {
    .hero__fallback {
        background-image: image-set(
            url('../images/photos/hero-network.webp') type('image/webp'),
            url('../images/photos/hero-network.jpg')  type('image/jpeg')
        );
    }
}
@media (max-width: 767.98px) {
    .hero__fallback { background-image: url('../images/photos/hero-network-800.jpg'); }
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(120deg, rgba(8,24,48,.92) 0%, rgba(10,46,92,.78) 45%, rgba(10,46,92,.45) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__badge {
    display:inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px); border-radius: 30px; padding: .4rem 1rem; font-size: .82rem; font-weight: 600;
    margin-bottom: 1.2rem;
}
.hero__title { color:#fff; font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.08; }
.hero__subtitle { color: rgba(255,255,255,.86); font-size: 1.15rem; max-width: 38rem; margin: 1.2rem 0 2rem; }
.hero__scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
    color: rgba(255,255,255,.8); font-size: .8rem; text-align: center; letter-spacing: .1em;
}
.hero__scroll i { display:block; font-size: 1.4rem; animation: bounce 1.8s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; background: var(--grad-navy); color:#fff; padding: 150px 0 70px; overflow:hidden;
}
.page-hero::after {
    content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(8,24,48,.5), transparent);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color:#fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin:0; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb .active { color:#fff; }

/* ---------- Cards / generic ---------- */
.card-soft {
    background:#fff; border:1px solid var(--ink-200); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}
.card-soft:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* Service card */
.service-card { padding: 1.75rem; position: relative; overflow: hidden; }
.service-card .ico {
    width: 58px; height: 58px; border-radius: 14px; background: var(--ink-100); color: var(--navy-900);
    display:flex; align-items:center; justify-content:center; font-size: 1.6rem; margin-bottom: 1rem;
    transition: .2s ease;
}
.service-card:hover .ico { background: var(--grad-red); color:#fff; transform: scale(1.05); }
.service-card h5 { margin-bottom: .5rem; font-size: 1.12rem; }
.service-card p { color: var(--ink-500); font-size: .94rem; margin-bottom: 1rem; }
.service-card .more { color: var(--red-600); font-weight: 600; font-size: .9rem; }
.service-card .more i { transition: transform .2s; }
.service-card:hover .more i { transform: translateX(4px); }
.service-card::before {
    content:""; position:absolute; top:0; left:0; right:0; height:3px; background: var(--grad-red);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.service-card:hover::before { transform: scaleX(1); }

/* Intro */
.intro-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; min-height: 320px; }
.intro-img img { width:100%; height:100%; object-fit: cover; display:block; }
.intro-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.intro-list li { display:flex; gap:.7rem; align-items:flex-start; margin-bottom:.7rem; color: var(--ink-700); }
.intro-list i { color: var(--red-600); font-size: 1.15rem; margin-top: 2px; }

/* Why choose */
.why-item { display:flex; gap:1rem; align-items:flex-start; }
.why-item .ico {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background:#fff; color: var(--accent-600);
    display:flex; align-items:center; justify-content:center; font-size:1.4rem; box-shadow: var(--shadow-sm);
}
.why-item h5 { font-size: 1.05rem; margin-bottom: .25rem; }
.why-item p { font-size: .92rem; color: var(--ink-500); margin: 0; }

/* Industries grid */
.industry-tile {
    background:#fff; border:1px solid var(--ink-200); border-radius: var(--radius-md);
    padding: 1.6rem 1rem; text-align:center; transition:.2s ease; height:100%;
}
.industry-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.industry-tile i { font-size: 2rem; color: var(--accent-600); transition:.2s; }
.industry-tile:hover i { color: var(--red-600); }
.industry-tile span { display:block; margin-top:.6rem; font-weight:600; color: var(--navy-900); font-size:.95rem; }

/* Process timeline */
.process-step { text-align:center; position: relative; }
.process-step .num {
    width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%;
    background: var(--grad-navy); color:#fff; display:flex; align-items:center; justify-content:center;
    font-size: 1.5rem; font-weight: 800; box-shadow: var(--shadow-md); position: relative; z-index: 2;
}
.process-step h6 { color: var(--navy-900); font-weight:700; margin-bottom:.35rem; }
.process-step p { font-size:.88rem; color: var(--ink-500); }
.process-line { position:absolute; top:35px; left:50%; width:100%; height:2px;
    background: repeating-linear-gradient(90deg, var(--ink-200) 0 8px, transparent 8px 16px); z-index:1; }
.process-step:last-child .process-line { display:none; }
@media (max-width: 767px){ .process-line { display:none; } .process-step { margin-bottom: 2rem; } }

/* Stats */
.stats-band { background: var(--grad-navy); color:#fff; }
.stat .val { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; color:#fff; line-height:1; }
.stat .val .suffix { color: #ffd5d8; }
.stat .label { color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing:.06em; font-size:.82rem; margin-top:.5rem; }

/* Certificates */
.cert-card { text-align:center; padding: 1.8rem 1.2rem; }
.cert-card .ico { width:64px; height:64px; margin:0 auto 1rem; border-radius:16px; background: var(--ink-100);
    color: var(--navy-900); display:flex; align-items:center; justify-content:center; font-size:1.8rem; }
.cert-card h6 { font-weight:700; }
.cert-card p { font-size:.88rem; color: var(--ink-500); margin:0; }

/* Testimonials */
.testi-card { padding: 2rem; }
.testi-card .quote-mark { font-size: 2.4rem; color: var(--red-600); line-height: 0; }
.testi-card p { color: var(--ink-700); font-style: italic; }
.testi-card .who { display:flex; align-items:center; gap:.8rem; margin-top:1.2rem; }
.testi-card .logo-ph { width:46px; height:46px; border-radius:10px; background: var(--ink-100);
    display:flex; align-items:center; justify-content:center; color: var(--ink-500); }
.testi-card .who strong { color: var(--navy-900); display:block; font-size:.95rem; }
.testi-card .who small { color: var(--ink-500); }

/* News */
.news-card .thumb { height: 190px; background: var(--grad-navy); border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative; overflow:hidden; }
.news-card .thumb .cat { position:absolute; top:12px; left:12px; background: var(--red-600); color:#fff;
    font-size:.72rem; font-weight:600; padding:.25rem .7rem; border-radius:20px; }
.news-card .body { padding: 1.3rem; }
.news-card .date { color: var(--ink-500); font-size:.8rem; }
.news-card h5 { font-size: 1.05rem; margin:.4rem 0 .5rem; }
.news-card p { font-size:.9rem; color: var(--ink-500); }

/* CTA */
.cta-band { background: var(--grad-red); color:#fff; border-radius: var(--radius-lg); padding: 3rem; overflow:hidden; position:relative; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* Contact preview */
.contact-item { display:flex; gap:1rem; align-items:flex-start; margin-bottom:1.2rem; }
.contact-item .ico { width:46px; height:46px; border-radius:12px; background: var(--ink-100); color: var(--accent-600);
    display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex:0 0 auto; }
.contact-item .lbl { font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-500); }
.contact-item .val { font-weight:600; color: var(--navy-900); }
.social-row a { width:42px; height:42px; border-radius:10px; background: var(--ink-100); color: var(--navy-900);
    display:inline-flex; align-items:center; justify-content:center; margin-right:.5rem; transition:.18s; }
.social-row a:hover { background: var(--grad-red); color:#fff; transform: translateY(-2px); }
/* Map embed — holds a lazily-loaded Google Maps iframe (partials/map.php).
   Height comes from the --map-h custom property the partial sets inline. */
.map-embed { position: relative; height: var(--map-h, 420px); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-md); background: var(--ink-100); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 767.98px) { .map-embed { height: min(var(--map-h, 420px), 320px); } }

/* Footer */
.site-footer { background: var(--navy-900); color: #aeb6bf; padding: 4rem 0 1.5rem; }
.site-footer h6 { color:#fff; text-transform:uppercase; font-size:.8rem; letter-spacing:.08em; margin-bottom:1rem; }
.site-footer a { color:#aeb6bf; font-size:.92rem; line-height: 2; }
.site-footer a:hover { color:#fff; }
.site-footer .foot-brand { color:#fff; font-weight:800; font-size:1.2rem; }
.site-footer .legal { border-top:1px solid rgba(255,255,255,.12); margin-top:2.2rem; padding-top:1.2rem; font-size:.85rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Honeypot field — off-screen rather than display:none, which some bots skip. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Photographs rendered through partials/photo.php */
.intro-img picture, .service-cover picture { display: block; }
.intro-img img, .service-cover img { width: 100%; height: auto; display: block; }
.service-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}
.service-cover img { aspect-ratio: 21 / 9; object-fit: cover; }

/* Service card with a photo header. The icon becomes a badge sitting on the
   image edge, so the card keeps its identity without a second coloured block. */
.service-card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card__media { position: relative; }
.service-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.service-card--photo .service-card__media .ico {
    position: absolute; left: 1.25rem; bottom: -1.1rem;
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--grad-red); color: #fff; font-size: 1.15rem;
    box-shadow: 0 8px 18px rgba(215,25,32,.3);
}
.service-card--photo .service-card__body { padding: 2rem 1.5rem 1.5rem; }
.service-card--photo .service-card__body h5 { margin-bottom: .5rem; }


/* ---------- Photo blocks ---------- */
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.photo-frame img, .intro-img img { display: block; width: 100%; height: auto; }
.photo-hero { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 2rem; }
.photo-hero img { display: block; width: 100%; height: auto; }


/* ---------- Knowledge base ---------- */
.chip-row { display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; }
.chip {
    display:inline-flex; align-items:center; gap:.45rem; padding:.45rem 1rem;
    border-radius:999px; border:1.5px solid var(--ink-200); background:#fff;
    color: var(--ink-700); font-size:.92rem; font-weight:600; text-decoration:none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.chip:hover { border-color: var(--red-600); color: var(--red-600); }
.chip--active { background: var(--navy-900); border-color: var(--navy-900); color:#fff; }
.chip__count { font-size:.78rem; opacity:.65; }
.chip--active .chip__count { opacity:.8; }

.article-card { display:flex; flex-direction:column; height:100%; padding:0; overflow:hidden; }
.article-card__media { display:block; overflow:hidden; aspect-ratio:16/9; }
.article-card__media img { width:100%; height:100%; object-fit:cover; transition: transform .45s ease; }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__body { padding:1.4rem; display:flex; flex-direction:column; gap:.2rem; flex:1; }
.article-card__meta { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem;
    font-size:.8rem; color: var(--ink-500); }
.article-card h3 a { color: var(--ink-900); text-decoration:none; }
.article-card h3 a:hover { color: var(--red-600); }
.article-card .more { margin-top:auto; padding-top:.6rem; }

.badge-soft { display:inline-block; padding:.2rem .7rem; border-radius:999px;
    background: var(--ink-100); color: var(--navy-900); font-size:.78rem; font-weight:600; }

.article-hook { color: var(--ink-700); font-size:1.15rem; line-height:1.75; }
.key-points { background: var(--ink-100); border-left:4px solid var(--red-600);
    border-radius: var(--radius-md); padding:1.4rem 1.6rem; margin:1.8rem 0; }
.key-points h2 { letter-spacing:.08em; color: var(--ink-500); font-size:.78rem; margin-bottom:.9rem; }
.key-points ul { list-style:none; margin:0; padding:0; display:grid; gap:.7rem; }
.key-points li { display:flex; gap:.7rem; align-items:flex-start; }
.key-points li i { color: var(--red-600); margin-top:.28rem; }

.rich-text { color: var(--ink-700); line-height:1.85; }
.rich-text h2 { font-size:1.5rem; font-weight:800; color: var(--navy-900); margin:2.2rem 0 .9rem; }
.rich-text h3 { font-size:1.18rem; font-weight:700; color: var(--navy-900); margin:1.8rem 0 .7rem; }
.rich-text p { margin-bottom:1.1rem; }
.rich-text ul, .rich-text ol { margin:0 0 1.2rem 1.1rem; }
.rich-text li { margin-bottom:.5rem; }
.rich-text table { width:100%; border-collapse:collapse; margin:1.4rem 0; font-size:.95rem; }
.rich-text th, .rich-text td { border:1px solid var(--ink-200); padding:.65rem .9rem; text-align:left; }
.rich-text th { background: var(--ink-100); color: var(--navy-900); font-weight:700; }
.rich-text blockquote { border-left:4px solid var(--ink-200); margin:1.4rem 0; padding:.3rem 0 .3rem 1.2rem;
    color: var(--ink-500); font-style:italic; }

.share-row { display:flex; align-items:center; gap:.5rem; }
.share-btn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px;
    border-radius:10px; background: var(--ink-100); color: var(--navy-900); text-decoration:none;
    transition: background .2s ease, color .2s ease; }
.share-btn:hover { background: var(--navy-900); color:#fff; }

@media (min-width: 992px) { .sticky-side { position: sticky; top: 100px; } }

/* ---------- FAQ accordion ---------- */
.faq-block { margin: 3rem 0 0; }
.faq-accordion .accordion-item { border:1px solid var(--ink-200); border-radius: var(--radius-md) !important;
    margin-bottom:.7rem; overflow:hidden; background:#fff; }
.faq-accordion .accordion-button { font-weight:700; color: var(--navy-900); background:#fff;
    padding:1.05rem 1.25rem; font-size:1rem; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--red-600); background: var(--ink-100); box-shadow:none; }
.faq-accordion .accordion-button:focus { box-shadow:none; border-color: var(--ink-200); }
.faq-accordion .accordion-button::after { width:1rem; height:1rem; background-size:1rem; }
.faq-accordion .accordion-body { color: var(--ink-700); line-height:1.8; padding:0 1.25rem 1.25rem; }

/* ---------- External announcement strip ---------- */
.ext-list { list-style:none; margin:0; padding:0; }
.ext-list li { padding:.8rem 0; border-bottom:1px dashed var(--ink-200); }
.ext-list li:last-child { border-bottom:0; }
.ext-list a { display:block; color: var(--navy-900); font-size:.92rem; font-weight:600;
    line-height:1.55; text-decoration:none; }
.ext-list a:hover { color: var(--red-600); }
.ext-list a i { font-size:.75rem; opacity:.55; margin-left:.25rem; }
.ext-list time { display:block; margin-top:.25rem; font-size:.78rem; color: var(--ink-500); }
.ext-source { margin:1rem 0 0; padding-top:.9rem; border-top:1px solid var(--ink-200);
    font-size:.76rem; color: var(--ink-500); }

/* ---------------------------------------------------------------------------
   Skip link — ลิงก์ข้ามเมนูไปที่เนื้อหา
   ---------------------------------------------------------------------------
   มองไม่เห็นจนกว่าจะถูกโฟกัสด้วยคีย์บอร์ด จึงไม่กระทบหน้าตาของเว็บเลย
   ไม่ใช้ display:none หรือ visibility:hidden เพราะสองอย่างนั้นทำให้ element
   หลุดจากลำดับการกด Tab ไปด้วย ลิงก์ก็จะโฟกัสไม่ได้ตั้งแต่แรก
--------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: .75rem 1.25rem;
    background: var(--navy-900);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom-right-radius: var(--radius-md);
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 0;
    outline: 3px solid var(--accent-500);
    outline-offset: 2px;
    color: #fff;
}

/* ---------------------------------------------------------------------------
   กรอบโฟกัสที่มองเห็นได้ทั่วทั้งเว็บ
   ---------------------------------------------------------------------------
   :focus-visible ขึ้นเฉพาะตอนใช้คีย์บอร์ด ไม่ขึ้นตอนคลิกเมาส์ จึงไม่ไป
   รบกวนหน้าตาปกติ แต่คนที่ใช้คีย์บอร์ดจะรู้ตลอดว่าตอนนี้อยู่ตรงไหน
   เกณฑ์ WCAG 2.4.7 Focus Visible (ระดับ AA)
--------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid var(--accent-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* <main> ถูกโฟกัสด้วยโปรแกรม (จาก skip link) ไม่ใช่ด้วยการกด Tab
   จึงไม่ต้องวาดกรอบให้ ซึ่งจะดูแปลกเพราะครอบทั้งหน้า */
main:focus,
main:focus-visible {
    outline: none;
}
