/**
 * CSS Bundle: archive
 * Generated: 2026-05-31 11:36:04
 * Files: 4
 * Signature: 5c29ec76ed0505665464da605f3968d21563debf
 */

/* === page-archive.css === */
/* ==========================================================================
   ARCHIVE & LISTING PAGE STYLES
   ========================================================================== */

/* ==========================================================================
   ARCHIVE HEADERS
   ========================================================================== */

.arci-content {
height: auto;
margin: 20px auto;
/*padding: 20px 40px;*/
border: none;
background: #f5f5f5;
text-align: left;
word-break: break-all;
word-wrap: break-word;
}

.arci-content h1 {
font-size: 1.5rem;
margin-bottom: 10px;
}

.arci-content p {
font-size: 1rem;
margin: 10px auto;
}

/* ==========================================================================
   POST LIST CONTAINER
   ========================================================================== */

#arte-t6-t {
width: 100%;
margin: 0 auto;
text-align: center;
}

/* ==========================================================================
   HORIZONTAL CATEGORY MENU
   ========================================================================== */

/* --- Term Navigation Container --- */
.listing-term-nav {
--listing-term-nav-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.94));
--listing-term-nav-border: rgba(15, 23, 42, 0.08);
--listing-term-nav-text: #172033;
--listing-term-nav-muted: #6b7280;
--listing-term-nav-chip-bg: rgba(255, 255, 255, 0.88);
--listing-term-nav-chip-border: rgba(15, 23, 42, 0.1);
--listing-term-nav-chip-hover: #111827;
--listing-term-nav-accent: #d20243;
position: relative;
margin: 0 0 24px;
overflow: hidden;
background: var(--listing-term-nav-bg);
border: 1px solid var(--listing-term-nav-border);
border-radius: 18px;
box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
padding: 16px;
}

.listing-term-nav::after {
content: "";
position: absolute;
right: 0;
bottom: 0;
width: 92px;
height: 92px;
background: radial-gradient(circle, rgba(210, 2, 67, 0.13), transparent 68%);
pointer-events: none;
}

.listing-term-nav__header {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
color: var(--listing-term-nav-text);
}

.listing-term-nav--no-header {
padding-block: 12px;
}

.listing-term-nav--no-header .listing-term-nav__scroller {
padding-top: 0;
}

.listing-term-nav--no-header::after {
opacity: 0.58;
}

.listing-term-nav__eyebrow {
font-size: 0.88rem;
font-weight: 700;
letter-spacing: 0.04em;
}

.listing-term-nav__hint {
font-size: 0.78rem;
color: var(--listing-term-nav-muted);
white-space: nowrap;
}

.listing-term-nav__scroller {
position: relative;
z-index: 1;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: thin;
scrollbar-color: rgba(210, 2, 67, 0.35) transparent;
-webkit-overflow-scrolling: touch;
}

.listing-term-nav__scroller::-webkit-scrollbar {
height: 6px;
}

.listing-term-nav__scroller::-webkit-scrollbar-track {
background: transparent;
}

.listing-term-nav__scroller::-webkit-scrollbar-thumb {
background: rgba(210, 2, 67, 0.3);
border-radius: 999px;
}

.listing-term-nav__list {
display: flex;
align-items: center;
list-style: none;
padding: 0 2px 6px;
margin: 0;
gap: 10px;
flex-wrap: nowrap;
}

.listing-term-nav__list:not(:has(.listing-term-nav__item)) {
display: none;
}

.listing-term-nav__item {
flex: 0 0 auto;
}

.listing-term-nav__link {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 38px;
padding: 9px 16px;
border: 1px solid var(--listing-term-nav-chip-border);
border-radius: 999px;
background: var(--listing-term-nav-chip-bg);
color: var(--listing-term-nav-text);
font-weight: 650;
font-size: 0.94rem;
line-height: 1.2;
text-decoration: none;
white-space: nowrap;
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.listing-term-nav__link:hover,
.listing-term-nav__link:focus-visible {
background: var(--listing-term-nav-chip-hover);
border-color: var(--listing-term-nav-chip-hover);
color: #fff;
box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
transform: translateY(-1px);
outline: none;
}

.listing-term-nav__link:focus-visible {
box-shadow: 0 0 0 3px rgba(210, 2, 67, 0.22), 0 12px 24px rgba(17, 24, 39, 0.16);
}

.listing-term-nav__link.active,
.listing-term-nav__link[aria-current="page"] {
background: var(--listing-term-nav-accent);
border-color: var(--listing-term-nav-accent);
color: #fff;
}

/* ==========================================================================
   CARDS (POSTCARD)
   ========================================================================== */

.postcard {
position: relative;
margin: 0 0 1em;
padding: 0;
border-radius: 8px;
background-size: calc(10 * 1px) calc(10 * 1px);
color: #eee;
}

.postcard a {
display: flex !important;
gap: 3% !important;
flex-wrap: wrap;
justify-content: flex-start;
align-content: center;
padding: 10px;
border: 1px solid #eee;
border-radius: 2px;
background: #fff;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease-in-out;
box-sizing: border-box;
}

.postcard a:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transform: translateY(-2px);
}

.postcard_thumbnail {
width: 38% !important;
height: auto;
min-width: 20px;
min-height: 10px;
max-height: 276px;
display: flex;
flex-shrink: 0;
aspect-ratio: auto !important; /* Override forced 4:3 from CLS prevention */
min-height: auto !important; /* Fix vertical distortion from CLS min-height */
}

.postcard_thumbnail img {
width: 100%;
height: inherit !important;
object-fit: cover;
}

.postcard_content {
display: flex;
flex-direction: column;
justify-content: start;
width: 56%;
}

.postcard_title h3 {
display: -webkit-box;
opacity: 0.9;
padding-top: 0;
padding-bottom: 7px;
overflow: hidden;
color: #1f1d1d;
font-weight: 900;
font-size: 1.2rem;
line-height: 1.5;
letter-spacing: 2px;
text-decoration: none;
text-align: left;
text-overflow: ellipsis;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
}

.tm-back-link {
display: inline-flex;
align-items: center;
gap: 6px;
margin: 0 0 12px;
padding: 6px 10px;
background: #fff;
border: 1px solid #ddd;
border-radius: 6px;
text-decoration: none;
color: #333;
font-weight: 700;
font-size: 14px;
}

.tm-back-link:hover {
background: #f7f7f7;
}

.postcard_description p {
display: -webkit-box;
margin: 0 auto;
padding-bottom: 5px;
overflow: hidden;
color: #565656;
font-size: 90%;
letter-spacing: 2px;
text-decoration: none;
text-align: justify;
word-break: break-all;
word-wrap: break-word;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
}

.postcard_meta {
opacity: 0.8;
padding: 5px;
color: #333;
font-size: 12px;
text-align: right;
}

/* ==========================================================================
   RESPONSIVE DESIGN - ARCHIVE
   ========================================================================== */

/* --- Tablet (768px and below) --- */
@media (max-width: 768px) {
.listing-term-nav {
padding: 14px;
border-radius: 16px;
}

.listing-term-nav--no-header {
padding: 12px 14px;
}

.listing-term-nav__header {
align-items: flex-start;
flex-direction: column;
gap: 4px;
margin-bottom: 10px;
}

.postcard a {
display: flex !important;
flex-direction: row !important;
align-items: flex-start !important; /* Align text to image top */
gap: 15px !important; /* Fixed gap for mobile */
}

.postcard_thumbnail {
width: 160px ;
flex: 0 0 160px;
min-height: auto;
}

.postcard_content {
width: auto !important;
flex: 1 !important;
padding: 2px 0; /* Reduced from 4px for tighter look */
}

.postcard_title h3 {
padding-left: 0;
padding-right: 0;
padding-top: 2px !important;
padding-bottom: 0;
height: auto;
text-decoration: none;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
margin: 0 auto;
color: #666;
display: -webkit-box;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
font-size: 1rem;
line-height: 1.4 !important; /* Better line height for mobile */
font-weight: 400;
}

.postcard_description p,
.postcard_meta {
display: none;
}
}

/* --- Mobile (479px and below) --- */
@media (max-width: 479px) {
.arci-content h1 {
font-size: 1.4rem;
}

.arci-content {
padding: 15px 20px;
}

.listing-term-nav {
padding: 12px;
}

.listing-term-nav--no-header {
padding: 10px 12px;
}

.listing-term-nav__list {
gap: 8px;
padding-bottom: 4px;
}

.listing-term-nav__link {
min-height: 34px;
padding: 7px 12px;
margin: 0px 0px 10px 0px;
font-size: 0.9rem;
}
}

/* ==========================================================================
   PAGINATION OVERRIDES (Archive/Category)
   Match homepage pagination layout
   ========================================================================== */

body.archive .pagination-container,
body.category .pagination-container,
body.tag .pagination-container {
text-align: center;
margin: 20px 0;
padding: 20px 0;
background: #f5f5f5;
}

body.archive .pagination,
body.category .pagination,
body.tag .pagination {
margin: 0;
}


/* === page-search.css === */
/* ==========================================================================
   SEARCH PAGE STYLES
   ========================================================================== */

/* ==========================================================================
   SEARCH HEADER
   ========================================================================== */

.arci-content {
height: auto;
margin: 20px auto;
/*padding: 20px 40px;*/
border: none;
background: #f5f5f5;
text-align: left;
word-break: break-all;
word-wrap: break-word;
}

.arci-content h1 {
font-size: 1.5rem;
margin-bottom: 10px;
}

.arci-content p {
font-size: 1rem;
margin: 10px auto;
}

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */

#search {
width: 100%;
margin: 20px auto;
text-align: center;
}

#search::before,
#search::after {
display: block;
visibility: hidden;
clear: both;
height: 0;
content: ".";
}

.search-form {
min-width: 1px;
min-height: 1px;
height: 40px;
width: 100%;
padding-top: 20px;
padding-bottom: 10px;
}

#search-from {
display: none;
}

#sform {
position: relative;
max-width: 300px;
margin: 0 auto;
}

#sbox {
height: 40px;
padding: 0 10px;
left: 0;
top: 0;
outline: 0;
background: #eee;
border: none;
width: 100%;
border-radius: 4px 0 0 4px;
}

#sbtn {
height: 40px;
width: 45px;
position: absolute;
left: calc(100% - 45px);
top: 0;
background: #d20243;
color: #fff;
border: none;
cursor: pointer;
border-radius: 0 4px 4px 0;
transition: background-color 0.3s ease;
}

#sbtn:hover {
background: #a00233;
}

#sbtn .fa-search {
font-size: 20px;
position: absolute;
top: 30%;
left: 30%;
}

#sbtn:before {
font-family: FontAwesome;
content: "\f002";
}

/* --- Search Form Alternative --- */
.search-form-a {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-top: 20px;
}

.search-input {
flex: 1 1 auto;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
outline: none;
min-width: 200px;
}

.search-button {
padding: 10px 20px;
border: none;
background-color: #0073aa;
color: white;
font-weight: bold;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s ease;
}

.search-button:hover {
background-color: #005f8d;
}

/* --- No Results --- */
.no-results {
text-align: center;
color: #666;
font-size: 16px;
margin-top: 20px;
padding: 40px 20px;
background: #f9f9f9;
border-radius: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN - SEARCH
   ========================================================================== */

/* --- Tablet (768px and below) --- */
@media (max-width: 768px) {
.search-form-a {
flex-wrap: wrap;
}

.search-input,
.search-button {
flex: 1 1 100%;
max-width: 100%;
}

.search-input {
margin-bottom: 10px;
}

#sform {
max-width: 100%;
width: calc(100% - 40px);
}
}

/* --- Mobile (479px and below) --- */
@media (max-width: 479px) {
.arci-content {
padding: 15px 20px;
}

.arci-content h1 {
font-size: 1.3rem;
}

#search {
margin: 15px auto;
}
}

/* ==========================================================================
   SEARCH RESULTS ENHANCEMENTS (V8)
   ========================================================================== */

.search-header-v8 {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #d8e1eb;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
    padding: 24px 28px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 16px;
    overflow: hidden;
}

.search-header-v8::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f2f6fa 46%, #edf3f8 100%);
    border-radius: inherit;
    pointer-events: none;
}

.search-header-v8--compact {
    gap: 14px;
    margin-top: 28px;
}

.search-header-title-banner,
.search-title-wrapper,
.search-form-inline {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

.search-title-wrapper {
    min-width: 0;
}

.search-header-card {
    border: 1px solid #d8e1eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
    padding: 16px 18px;
}

.search-header-card--summary {
    align-self: stretch;
}

.search-header-card--title {
    padding: 18px 20px;
}

.search-header-card--form {
    align-self: stretch;
    display: grid;
    align-content: start;
}

.search-header-title-banner h1,
.search-title-wrapper h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #0f172a;
}

.search-header-meta {
    display: grid;
    gap: 14px;
}

.search-header-title-row {
    display: grid;
    gap: 10px;
}

.search-header-title-stack {
    display: grid;
    gap: 0;
}

.search-header-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    width: fit-content;
    max-width: 100%;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef2f7 0%, #e7edf4 100%);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    justify-self: start;
}

.search-query-info {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-summary-chip--query {
    min-width: 0;
    max-width: 100%;
}

.search-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7fa 0%, #fff1f5 100%);
    border: 1px solid #ffd6e3;
    color: #7a2842;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-summary-chip__label {
    font-size: 0.85rem;
    color: #9a6478;
    font-weight: 700;
}

.search-summary-copy {
    margin: 0;
    color: #475569;
    line-height: 1.72;
}

.search-summary-chip .query-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.search-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(216, 225, 235, 0.9);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.search-header-toolbar {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.search-page-type-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.search-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: all 0.2s ease;
}

.search-filter-link:hover,
.search-filter-link:focus-visible {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(148, 163, 184, 0.4);
    color: #0073aa;
}

.search-filter-link.is-active {
    background: #fff;
    color: #0073aa;
    border-color: rgba(0, 115, 170, 0.22);
    box-shadow: 0 8px 18px rgba(0, 115, 170, 0.12);
}

.query-text {
    font-weight: 700;
    color: #d20243;
}

.search-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #eef2f7 0%, #e7edf4 100%);
    font-size: 0.9rem;
    color: #475569;
    font-weight: 700;
}

.search-form-inline {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.search-form-inline__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(216, 225, 235, 0.85);
}

.search-form-inline__title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form-inline__eyebrow {
    min-height: 34px;
    padding: 0 12px;
}

.search-form-inline .search-form-container {
    width: 100%;
    min-width: 0;
}

.search-form-inline .search-form-v8 {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.search-form-inline .search-input-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #d8e1eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.03);
}

.search-form-inline .search-field {
    width: 100%;
    min-width: 0;
    height: 44px;
    border: 1px solid #d8e1eb;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
}

.search-form-inline .search-submit {
    min-height: 44px;
    border-radius: 12px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.search-form-inline .v8-search-scope-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d8e1eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.search-form-inline .v8-search-scope-btn {
    border-radius: 999px;
}

.search-form-inline .v8-live-search-results--inline {
    width: 100%;
}

/* --- Search Results List --- */
#arte-t6-t {
    display: grid;
    grid-template-columns: repeat(var(--listing-card-columns-desktop, 1), minmax(0, 1fr));
    gap: var(--listing-card-gap-desktop, 20px);
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.postcard.ex {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex {
    content-visibility: visible;
    contain-intrinsic-size: none;
}

@supports selector(.postcard.ex:has(+ .widget-area-wrapper)) {
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ .widget-area-wrapper),
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ [data-cls-widget-area="content-rand"]),
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ .wp-ad-position-wrapper),
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ .wp-ad-position-fallback),
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ .wp-ad-position-container) {
        border-bottom-color: transparent;
    }
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex > a {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#arte-t6-t[class*="listing-card-hover-"] .postcard.ex {
    transition: transform 0.2s ease;
}

#arte-t6-t[class*="listing-card-hover-"] .postcard.ex > a {
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#arte-t6-t[class*="listing-card-hover-"] .postcard.ex > a:hover {
    transform: none;
    box-shadow: none;
}

#arte-t6-t.listing-card-hover-shift .postcard.ex:hover {
    transform: translateX(5px);
}

#arte-t6-t.listing-card-hover-none .postcard.ex:hover {
    transform: none;
}

#arte-t6-t.listing-card-hover-border .postcard.ex:hover {
    transform: none;
}

#arte-t6-t.listing-card-hover-border .postcard.ex > a:hover {
    border-color: #64748b;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_description {
    margin-top: 12px;
    --listing-excerpt-pad-block: 12px;
    --listing-excerpt-pad-inline: 14px;
    --listing-excerpt-line-height: 1.72;
    --listing-excerpt-height-buffer: 0.85em;
    --listing-excerpt-content-height-desktop: 5.16em;
    --listing-excerpt-content-height-tablet: 5.16em;
    --listing-excerpt-content-height-mobile: 5.16em;
    padding: var(--listing-excerpt-pad-block) var(--listing-excerpt-pad-inline);
    border-radius: 14px;
    background: linear-gradient(180deg, #f3f5f7 0%, #eef2f5 100%);
    color: #475569;
    text-align: left;
    line-height: var(--listing-excerpt-line-height);
    font-size: 0.96rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: var(--excerpt-lines-desktop, var(--search-results-excerpt-lines, 3));
    -webkit-line-clamp: var(--excerpt-lines-desktop, var(--search-results-excerpt-lines, 3));
    box-sizing: border-box;
    max-height: calc(
        (var(--excerpt-lines-desktop, var(--search-results-excerpt-lines, 3)) * var(--listing-excerpt-line-height))
        + (var(--listing-excerpt-pad-block) * 2)
        + var(--listing-excerpt-height-buffer)
    );
    max-height: calc(
        var(--listing-excerpt-content-height-desktop)
        + (var(--listing-excerpt-pad-block) * 2)
        + var(--listing-excerpt-height-buffer)
    );
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    white-space: normal;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    /* 確保在單欄佈局中摘要不會超出容器 */
    min-height: 0;
    flex-shrink: 0;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
    padding: 12px 0 0;
    color: #475569;
    text-align: left;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta:empty {
    display: none;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    color: currentColor;
    opacity: 0.72;
    line-height: 1;
    user-select: none;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta.postcard_meta--align-right {
    justify-content: flex-end;
    text-align: right;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_content,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_title,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_title h3,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .widget-area-wrapper,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-position-fallback,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-single,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-content-wrapper,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-fixed-wrapper {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail {
    aspect-ratio: 16 / 9;
    min-height: clamp(156px, 18vw, 220px);
    overflow: hidden;
    background: #f3f4f6;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail picture,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail img,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail_placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef2f6 0%, #e2e8f0 100%);
    color: #94a3b8;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .widget-area-wrapper,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"] {
    min-height: var(--cls-archive-widget-min-height, 280px);
}

.listing-context-card {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #dde5ed;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.listing-context-card__media {
    width: 100%;
}

.listing-context-card__media img,
.listing-context-card__media .avatar {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.listing-context-card__content {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.listing-context-card__eyebrow {
    width: fit-content;
    max-width: 100%;
}

.listing-context-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.listing-context-card__description {
    color: #475569;
    line-height: 1.78;
}

.listing-context-card__description > :first-child {
    margin-top: 0;
}

.listing-context-card__description > :last-child {
    margin-bottom: 0;
}

.listing-context-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.listing-context-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #d8e1eb;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-context-card__link:hover,
.listing-context-card__link:focus-visible {
    transform: translateY(-1px);
    border-color: #b7c7d7;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}

.listing-context-card__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: currentColor;
}

.listing-context-card__link-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
}

.listing-context-card__link-label {
    min-width: 0;
}

.travel-listing-return {
    margin-bottom: 14px;
}

.travel-listing-return__card {
    padding: 14px 18px;
}

.travel-listing-return__meta {
    margin-bottom: 8px;
}

.travel-listing-return__chip {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.travel-listing-return__links {
    gap: 8px;
}

.travel-listing-return__link {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 0.9rem;
    line-height: 1.35;
}

#article-author.listing-context-card {
    margin-top: 0;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
        "author-avatar author-text"
        "author-avatar author-social";
    align-items: start;
    gap: 0 18px;
    padding: 18px;
    border-radius: 18px;
}

#article-author.listing-context-card #author-avatar {
    grid-area: author-avatar;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
}

#article-author.listing-context-card #author-avatar img,
#article-author.listing-context-card #author-avatar .avatar {
    display: block;
    width: 104px;
    height: 104px;
    max-width: 104px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

#article-author.listing-context-card--avatar-square #author-avatar img,
#article-author.listing-context-card--avatar-square #author-avatar .avatar {
    border-radius: 0;
}

#article-author.listing-context-card .author-text {
    grid-area: author-text;
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    padding: 0;
    background: transparent;
    word-break: normal;
    overflow-wrap: anywhere;
}

#article-author.listing-context-card .author-name {
    margin: 0;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1.28;
    letter-spacing: 0;
    color: #111827;
}

#article-author.listing-context-card .author-description {
    margin: 0;
    color: #526071;
    line-height: 1.72;
}

#article-author.listing-context-card .author-description > :first-child {
    margin-top: 0;
}

#article-author.listing-context-card .author-description > :last-child {
    margin-bottom: 0;
}

#article-author.listing-context-card .author-social {
    grid-area: author-social;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 0 0;
    opacity: 1;
    text-align: left;
}

#article-author.listing-context-card .author-social a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d8e1eb;
    border-radius: 999px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
}

.v8-placeholder {
    font-size: 2rem;
    color: #ddd;
}

/* --- No Results & Recommendations --- */
.search-no-results {
    padding: 40px 0;
}

.no-results-message {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
}

.message-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.search-recommendations h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.search-recommendations h3:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d20243;
    border-radius: 2px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* --- Search Highlight --- */
.search-highlight,
mark.search-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 1px 3px;
    border-radius: 2px;
    font-style: normal;
}

.search-results-empty-note {
    font-size: 0.95rem;
    color: #777;
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-v8 {
    background: linear-gradient(180deg, #161c23 0%, #12171d 100%);
    border-color: #2e3944;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-v8::before {
    background: linear-gradient(180deg, #202833 0%, #1a2330 48%, #16202b 100%);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-title-banner h1,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-title-wrapper h1 {
    color: #eee;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-card {
    background: linear-gradient(180deg, #18202a 0%, #141b23 100%);
    border-color: #2e3944;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-eyebrow {
    background: #20262d;
    color: #d7dce2;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-query-info,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-page-type-label,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-results-empty-note {
    color: #aaa;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-summary-chip {
    background: #2b1820;
    border-color: #5a3040;
    color: #ffd6e3;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-summary-chip__label {
    color: #f0a8c0;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-count-badge {
    background: #20262d;
    border-color: #39424c;
    color: #d7dce2;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-bar,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-form-inline .search-input-wrapper,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-form-inline .v8-search-scope-switcher {
    background: linear-gradient(180deg, #18202a 0%, #141b23 100%);
    border-color: #2e3944;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-title-row,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-form-inline__header,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-bar {
    border-color: #2e3944;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .no-results-message {
    background: #1e1e1e;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-link {
    background: #1b2330;
    border-color: transparent;
    color: #d7d7d7;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-link:hover,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-link:focus-visible {
    border-color: rgba(120, 173, 214, 0.28);
    color: #9bd4ff;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-link.is-active {
    background: #111827;
    border-color: rgba(120, 173, 214, 0.32);
    color: #9bd4ff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-form-inline .search-field {
    background: #0f141a;
    border-color: #2e3944;
    color: #e5edf5;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-highlight,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) mark.search-highlight {
    background: #4a3d00;
    color: #ffd;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark):is(.search, .page-template-page-all, .page-template-page-all-php, .category, .tag, .author, .archive, .tax-rtlist) #arte-t6-t .postcard_description {
    background: linear-gradient(180deg, #1d2630 0%, #17202a 100%);
    color: #d4deea;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark):is(.search, .page-template-page-all, .page-template-page-all-php, .category, .tag, .author, .archive, .tax-rtlist) #arte-t6-t .postcard_meta {
    color: #c7d2de;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card {
    background: linear-gradient(180deg, #18202a 0%, #141b23 100%);
    border-color: #2e3944;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__title {
    color: #eef4fb;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__description {
    color: #c7d2de;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__link {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__link:hover,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__link:focus-visible {
    border-color: #4b647c;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

/* Listing header tone variants. */
.search-header-v8.listing-header-tone-default {
    /* Marker class: keep the existing classic gray header without overrides. */
}

.search-header-v8.listing-header-tone-soft {
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    border-color: #c9dff4;
    box-shadow: 0 16px 34px rgba(59, 130, 246, 0.08);
}

.search-header-v8.listing-header-tone-soft::before {
    background: radial-gradient(circle at top left, rgba(125, 180, 232, 0.2), transparent 42%), linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
}

.search-header-v8.listing-header-tone-soft .search-header-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: #c9dff4;
}

.search-header-v8.listing-header-tone-soft .search-header-eyebrow,
.search-header-v8.listing-header-tone-soft .search-count-badge {
    background: #e4f0fb;
    border-color: #c9dff4;
    color: #24557a;
}

.search-header-v8.listing-header-tone-soft .search-summary-chip {
    background: #edf6ff;
    border-color: #b9d7f0;
    color: #1f5a85;
}

.search-header-v8.listing-header-tone-soft .search-summary-chip__label,
.search-header-v8.listing-header-tone-soft .query-text {
    color: #2f73a6;
}

.search-header-v8.listing-header-tone-brand {
    background: linear-gradient(135deg, #fff5f8 0%, #fff 42%, #f8fbff 100%);
    border-color: #ffd1df;
    box-shadow: 0 18px 36px rgba(210, 2, 67, 0.1);
}

.search-header-v8.listing-header-tone-brand::before {
    background: radial-gradient(circle at top right, rgba(210, 2, 67, 0.14), transparent 38%), linear-gradient(180deg, #fff9fb 0%, #fff2f6 100%);
}

.search-header-v8.listing-header-tone-brand .search-header-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ffd1df;
}

.search-header-v8.listing-header-tone-brand .search-header-eyebrow,
.search-header-v8.listing-header-tone-brand .search-count-badge {
    background: #fff0f5;
    border-color: #ffd1df;
    color: #a50235;
}

.search-header-v8.listing-header-tone-brand .search-summary-chip {
    background: #fff6f9;
    border-color: #ffc2d5;
    color: #8c173d;
}

.search-header-v8.listing-header-tone-brand .search-summary-chip__label,
.search-header-v8.listing-header-tone-brand .query-text {
    color: #d20243;
}

.search-header-v8.listing-header-tone-minimal {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.search-header-v8.listing-header-tone-minimal::before {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
}

.search-header-v8.listing-header-tone-minimal .search-header-card {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: none;
}

.search-header-v8.listing-header-tone-minimal .search-header-eyebrow,
.search-header-v8.listing-header-tone-minimal .search-count-badge,
.search-header-v8.listing-header-tone-minimal .search-summary-chip {
    background: #f8fafc;
    border-color: #e5e7eb;
    color: #334155;
    box-shadow: none;
}

.search-header-v8.listing-header-tone-minimal .search-summary-chip__label {
    color: #64748b;
}

.search-header-v8.listing-header-tone-contrast {
    background: linear-gradient(135deg, #111827 0%, #172033 100%);
    border-color: #334155;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

.search-header-v8.listing-header-tone-contrast::before {
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 42%), linear-gradient(180deg, #172033 0%, #0f172a 100%);
}

.search-header-v8.listing-header-tone-contrast .search-header-card {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.search-header-v8.listing-header-tone-contrast .search-header-title-banner h1,
.search-header-v8.listing-header-tone-contrast .search-title-wrapper h1 {
    color: #f8fafc;
}

.search-header-v8.listing-header-tone-contrast .search-summary-copy,
.search-header-v8.listing-header-tone-contrast .search-page-type-label {
    color: #cbd5e1;
}

.search-header-v8.listing-header-tone-contrast .search-header-eyebrow,
.search-header-v8.listing-header-tone-contrast .search-count-badge {
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

.search-header-v8.listing-header-tone-contrast .search-summary-chip {
    background: rgba(210, 2, 67, 0.18);
    border-color: rgba(255, 194, 213, 0.34);
    color: #ffd6e3;
}

.search-header-v8.listing-header-tone-contrast .search-summary-chip__label {
    color: #f0a8c0;
}

.search-header-v8.listing-header-tone-contrast .query-text {
    color: #fda4c2;
}

.search-header-v8.listing-header-tone-soft .listing-context-card__link,
.search-header-v8.listing-header-tone-brand .listing-context-card__link,
.search-header-v8.listing-header-tone-minimal .listing-context-card__link,
.search-header-v8.listing-header-tone-contrast .listing-context-card__link {
    background: rgba(255, 255, 255, 0.9);
    border-color: currentColor;
}

.search-header-v8.listing-header-tone-contrast .listing-context-card__link {
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
}

@media (min-width: 1181px) {
    .v8-hide-desktop {
        display: none !important;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="listing-card-layout-d2-"] .postcard.ex > a,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="listing-card-layout-d3-"] .postcard.ex > a {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="listing-card-layout-d2-"] .postcard_thumbnail,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="listing-card-layout-d2-"] .postcard_content,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="listing-card-layout-d3-"] .postcard_thumbnail,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="listing-card-layout-d3-"] .postcard_content {
        width: 100% !important;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .v8-hide-tablet {
        display: none !important;
    }

    #arte-t6-t {
        grid-template-columns: repeat(var(--listing-card-columns-tablet, 1), minmax(0, 1fr));
        gap: var(--listing-card-gap-tablet, 20px);
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-t2-"] .postcard.ex > a,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-t3-"] .postcard.ex > a {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-t2-"] .postcard_thumbnail,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-t2-"] .postcard_content,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-t3-"] .postcard_thumbnail,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-t3-"] .postcard_content {
        width: 100% !important;
        max-width: 100%;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .v8-hide-mobile {
        display: none !important;
    }

    #arte-t6-t {
        grid-template-columns: repeat(var(--listing-card-columns-mobile, 1), minmax(0, 1fr));
        gap: var(--listing-card-gap-mobile, 20px);
    }

    .search-header-v8 {
        padding: 20px;
    }
    
    .search-form-inline {
        width: 100%;
        flex: none;
    }

    .search-filter-bar {
        align-items: flex-start;
    }

    .search-form-inline .search-input-wrapper {
        grid-template-columns: 1fr;
    }

    .search-form-inline .search-submit {
        width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex {
        width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex > a {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_content {
        width: 100% !important;
        max-width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail {
        aspect-ratio: 16 / 9;
        min-height: 180px;
        max-height: none;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_content {
        display: flex;
        flex-direction: column !important;
        justify-content: flex-start;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail picture,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .widget-area-wrapper,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"],
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-single,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-fixed-wrapper,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .admobile {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .adsbygoogle {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .widget-area-wrapper,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"] {
        min-height: var(--cls-archive-widget-min-height-mobile, 260px);
        contain-intrinsic-size: auto var(--cls-archive-widget-min-height-mobile, 260px);
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-single iframe,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .adsbygoogle iframe {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        left: 0 !important;
    }

    .listing-context-card,
    #article-author.listing-context-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    #article-author.listing-context-card {
        grid-template-areas:
            "author-avatar"
            "author-text"
            "author-social";
        text-align: center;
    }

    #article-author.listing-context-card #author-avatar {
        justify-content: center;
    }

    #article-author.listing-context-card #author-avatar img,
    #article-author.listing-context-card #author-avatar .avatar {
        margin: 0 auto;
    }

    .listing-context-card__media img,
    .listing-context-card__media .avatar {
        max-width: 140px;
        margin: 0 auto;
    }

    .listing-context-card__links,
    #article-author.listing-context-card .author-social {
        justify-content: center;
    }

    .travel-listing-return__card {
        padding: 14px;
    }

    .travel-listing-return__links {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   LISTING RESPONSIVE REFINEMENTS
   ========================================================================== */

.search-header-v8,
.search-header-card,
.search-title-wrapper,
.search-header-title-banner,
.search-form-inline,
.listing-context-card,
.listing-context-card__content,
.listing-context-card__description,
.listing-context-card__links {
    min-width: 0;
}

.search-header-v8 {
    word-break: normal;
    overflow-wrap: anywhere;
}

.search-header-title-banner h1,
.search-title-wrapper h1,
.listing-context-card__title {
    overflow-wrap: anywhere;
}

.search-summary-copy,
.listing-context-card__description,
.rtlist-listing-subtitle {
    word-break: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
    .search-header-v8 {
        padding: 22px 24px;
        gap: 14px;
    }

    .search-header-card {
        padding: 16px 18px;
    }

    .search-form-inline__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-context-card {
        grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
        gap: 16px;
        padding: 18px;
    }

    .listing-context-card__media img,
    .listing-context-card__media .avatar {
        max-width: 150px;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_description {
        line-clamp: var(--excerpt-lines-tablet, 3);
        -webkit-line-clamp: var(--excerpt-lines-tablet, 3);
        max-height: calc(
            (var(--excerpt-lines-tablet, 3) * var(--listing-excerpt-line-height))
            + (var(--listing-excerpt-pad-block) * 2)
            + var(--listing-excerpt-height-buffer)
        );
        max-height: calc(
            var(--listing-excerpt-content-height-tablet)
            + (var(--listing-excerpt-pad-block) * 2)
            + var(--listing-excerpt-height-buffer)
        );
    }
}

@media (max-width: 768px) {
    .search-header-v8 {
        padding: 16px;
        margin-bottom: 22px;
        border-radius: 16px;
    }

    .search-header-card {
        padding: 14px 15px;
        border-radius: 14px;
    }

    .search-header-title-banner h1,
    .search-title-wrapper h1 {
        font-size: 1.45rem;
        line-height: 1.4;
    }

    .search-header-title-row,
    .search-header-meta {
        gap: 12px;
    }

    .search-summary-chip,
    .search-count-badge {
        min-height: 36px;
        max-width: 100%;
        padding: 0 12px;
    }

    .search-summary-chip {
        white-space: normal;
    }

    .search-filter-bar {
        gap: 8px;
        padding: 12px;
        border-radius: 12px;
    }

    .search-filter-list {
        gap: 8px;
    }

    .search-filter-link {
        min-height: 34px;
        padding: 0 12px;
    }

    .search-form-inline .search-input-wrapper {
        gap: 8px;
        padding: 8px;
        border-radius: 14px;
    }

    .search-form-inline .search-field,
    .search-form-inline .search-submit {
        height: 42px;
        min-height: 42px;
        border-radius: 10px;
    }

    .search-form-inline .v8-search-scope-switcher {
        padding: 8px 10px;
        border-radius: 14px;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex {
        padding-bottom: 18px;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:hover {
        transform: none;
    }

    #arte-t6-t.listing-card-hover-shift .postcard.ex:hover {
        transform: none;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_title h3 {
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_description {
        margin-top: 10px;
        --listing-excerpt-pad-block: 10px;
        --listing-excerpt-pad-inline: 12px;
        --listing-excerpt-height-buffer: 0.85em;
        padding: var(--listing-excerpt-pad-block) var(--listing-excerpt-pad-inline);
        font-size: 0.93rem;
        line-clamp: var(--excerpt-lines-mobile, 3);
        -webkit-line-clamp: var(--excerpt-lines-mobile, 3);
        max-height: calc(
            (var(--excerpt-lines-mobile, 3) * var(--listing-excerpt-line-height))
            + (var(--listing-excerpt-pad-block) * 2)
            + var(--listing-excerpt-height-buffer)
        );
        max-height: calc(
            var(--listing-excerpt-content-height-mobile)
            + (var(--listing-excerpt-pad-block) * 2)
            + var(--listing-excerpt-height-buffer)
        );
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta {
        gap: 8px 12px;
        font-size: 0.92rem;
    }

    .listing-context-card,
    #article-author.listing-context-card {
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    #article-author.listing-context-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "author-avatar"
            "author-text"
            "author-social";
        text-align: center;
    }

    #article-author.listing-context-card #author-avatar {
        justify-content: center;
    }

    #article-author.listing-context-card #author-avatar img,
    #article-author.listing-context-card #author-avatar .avatar {
        width: 96px;
        height: 96px;
        max-width: 96px;
        margin: 0 auto;
    }

    .listing-context-card__content {
        gap: 8px;
    }

    .listing-context-card__links,
    #article-author.listing-context-card .author-social,
    .travel-listing-return__links,
    .rtlist-listing-return__links {
        gap: 8px;
    }

    #article-author.listing-context-card .author-social {
        justify-content: center;
        padding-top: 8px;
    }

    .travel-listing-return__link,
    .rtlist-listing-return__link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .search-header-v8 {
        padding: 14px;
    }

    .search-header-title-banner h1,
    .search-title-wrapper h1 {
        font-size: 1.3rem;
    }

    .search-header-eyebrow,
    .search-count-badge,
    .search-summary-chip {
        font-size: 0.82rem;
    }

    .listing-context-card__link {
        width: 100%;
        justify-content: center;
    }

    .listing-context-card__media img,
    .listing-context-card__media .avatar {
        max-width: 124px;
    }
}


/* === page-author.css === */
/* --- Authors Page V8 --- */
.authors-page-v8 { padding: 40px 0; width: 100%; }
.authors-header { text-align: center; margin-bottom: 50px; }
.authors-eyebrow { display: block; font-size: 14px; font-weight: 600; text-transform: uppercase; color: #e91e63; letter-spacing: 2px; margin-bottom: 10px; }
.authors-header .page-title { font-size: 42px; font-weight: 900; color: #333; margin: 0 0 15px !important; letter-spacing: -1px; text-align: center; }
.authors-intro { max-width: 700px; margin: 0 auto; color: #666; line-height: 1.6; font-size: 17px; }
.authors-intro p { font-size: 17px; margin: 0; }

.authors-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px; 
    padding: 0;
    margin-top: 30px;
}

.author-card-v8 {
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.author-card-v8:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e91e63;
}

.author-card-inner {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.author-card-avatar {
    margin-bottom: 25px;
    text-align: center;
}

.author-card-avatar img {
    width: 110px !important;
    height: 110px !important;
    object-fit: cover !important;
    border: 4px solid #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
    margin: 0 auto !important;
}

.author-avatar-shape-circle .author-card-avatar img { border-radius: 50% !important; }
.author-avatar-shape-square .author-card-avatar img { border-radius: 12px !important; }

.author-card-v8:hover .author-card-avatar img {
    transform: scale(1.05);
}

.author-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.author-card-name {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 0 12px !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

.author-card-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.author-card-name a:hover {
    color: #e91e63;
}

.author-card-bio {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.author-card-bio p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    color: inherit !important;
    display: inline !important; /* 使其成為行內元素以便 line-clamp 正常運作 */
}

.author-card-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    margin-top: auto;
}

.author-card-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #f8fafc;
    border-radius: 10px;
    color: #64748b;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
}

.author-card-link-item:hover {
    background: #e91e63;
    color: #fff !important;
    border-color: #e91e63;
    transform: scale(1.05);
}

.author-card-link-item svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

/* 針對需要 Stroke 的圖示（如信箱、連結）進行修正 */
.author-card-link-item svg:has(polyline),
.author-card-link-item svg:has(line),
.author-card-link-item .unified-v8-icon-mail,
.author-card-link-item .unified-v8-icon-link,
.author-card-link-item .unified-v8-icon-external-link {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.author-card-link-item i {
    font-size: 18px;
    vertical-align: middle;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-label { font-size: 13px; font-weight: 600; }

.author-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.view-posts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #e91e63;
    text-decoration: none;
    transition: all 0.2s;
}

.view-posts-btn:hover {
    gap: 12px;
    opacity: 0.8;
}

.view-posts-btn svg {
    width: 16px;
    height: 16px;
}

.no-authors {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: #f8fafc;
    border-radius: 20px;
    color: #64748b;
    font-size: 18px;
    border: 2px dashed #e2e8f0;
}

/* --- Responsive Adaptations --- */
@media (max-width: 991px) {
    .authors-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .authors-header .page-title { font-size: 32px !important; }
    .authors-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
    .author-card-inner { padding: 20px; }
}

@media (max-width: 480px) {
    .authors-page-v8 { padding: 20px 0; }
    .authors-header { margin-bottom: 30px; }
    .authors-header .page-title { font-size: 26px !important; }
    .authors-grid { grid-template-columns: 1fr; padding: 0; }
}
#article-author { display:grid; height:100%; border:20px solid #f1f1f1; margin:20px auto; grid-template-columns:.26fr 1fr; grid-template-rows:1fr; gap:0 10px; grid-auto-flow:column; grid-template-areas:"author-avatar author-text" "author-avatar author-social"; }
#article-author a { text-decoration:none; }
#article-author a:hover { opacity:1; text-decoration:none; }
#author-avatar { padding:15px; grid-area:author-avatar; }
#author-avatar img { border:none; vertical-align:middle; }
.author-text { height:auto; padding:15px; background:#fff; word-break:break-all; word-wrap:break-word; grid-area:author-text; }
.author-social { opacity:.8; padding:10px 15px; color:#333; text-align:right; grid-area:author-social; }
.author-social a { margin-left:0; }
.author-name { display:block; padding:0 0 7px; overflow:hidden; font-weight:900; font-size:1.25rem; line-height:1.5; letter-spacing:2px; text-decoration:none; text-overflow:ellipsis; line-clamp:3; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.author-description { overflow:hidden; }

/* Matching the article page author box style */
.author-box-container {
    margin: 40px 0;
    padding: 30px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.ab-tabs { 
    display: flex; 
    gap: 20px; 
    margin-bottom: -2px;
}

.ab-tab-btn {
    background: none; 
    border: none; 
    font-size: 1rem; 
    font-weight: 600;
    color: #333; 
    cursor: default; 
    position: relative; 
    padding: 0 0 15px 0;
}

.ab-tab-btn.active { color: #e91e63; }

.ab-tab-btn.active::after {
    content: ''; 
    position: absolute; 
    bottom: 0px; 
    left: 0; 
    width: 100%;
    height: 3px; 
    background: #e91e63; 
    z-index: 1;
}

.author-box-container .listing-context-card--author {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    grid-template-areas: 
        "avatar content"
        "avatar social" !important;
    gap: 0 20px !important;
    background: #fff !important;
    padding: 22px 24px !important;
    border: 1px solid #e6edf3 !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
}

.author-box-container #author-avatar {
    grid-area: avatar !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
}

.author-box-container #author-avatar img {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    min-width: 96px !important;
    object-fit: cover !important;
    display: block !important;
    border: none !important;
}

.author-avatar-shape-circle #author-avatar img { border-radius: 50% !important; }
.author-avatar-shape-square #author-avatar img { border-radius: 0 !important; }

.author-box-container .author-text {
    grid-area: content !important;
    padding: 0 !important;
    background: transparent !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
}

.author-box-container .listing-context-card__eyebrow {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #e91e63 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    background: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    width: auto !important;
}

.author-box-container .author-name {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.author-post-count {
    background: #e91e63;
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ab-prefix {
    color: #999;
    font-weight: normal;
    margin-right: 8px;
    font-size: 0.95rem;
}

.author-box-container .author-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-bottom: 0 !important;
    display: block !important;
}

.author-box-container .author-description p {
    margin: 0 !important;
    padding: 0 !important;
}

.author-box-container .author-social {
    grid-area: social !important;
    padding: 15px 0 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    opacity: 1 !important;
    text-align: left !important;
}

.author-box-container .listing-context-card__link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: auto !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #666 !important;
    text-decoration: none !important;
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    transform: none !important;
}

.author-box-container .listing-context-card__link:hover {
    color: #e91e63 !important;
    background: #fff !important;
    border-color: #e91e63 !important;
}

/* --- Responsive: Tablet & Mobile --- */
@media (max-width: 768px) {
    .author-box-container {
        padding: 20px !important;
        margin: 20px 0 !important;
    }
    .author-box-container .listing-context-card--author {
        grid-template-columns: 1fr !important;
        grid-template-areas: 
            "avatar"
            "content"
            "social" !important;
        gap: 15px !important;
        padding: 20px !important;
        text-align: center !important;
    }
    .author-box-container #author-avatar {
        justify-content: center !important;
    }
    .author-box-container .author-text {
        text-align: center !important;
    }
    .author-box-container .author-social {
        justify-content: center !important;
        padding-top: 10px !important;
    }
}

@media (max-width: 479px) {
  .page-title { font-size:24px; }
  .author-card { padding:16px; }
  .author-avatar img { width:96px; height:96px; }
  #article-author { border-width:8px; margin:15px auto; }
}


/* === page-taxonomy-custom.css === */
/* ==========================================================================
   CUSTOM TAXONOMY: RTLIST, SCHEDULE, CALENDAR, FILTER
   ========================================================================== */


.info-grid-container, .music-grid-container, .broadcast-grid-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.broadcast-grid-container {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.music-divider {
border: 0;
border-top: 1px dashed #ccc;
margin: 20px 0;
}
.text-link-list p {
margin: 0 0 10px;
}

.taxonomy-breadcrumb {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 5px;
}
.taxonomy-breadcrumb li:not(:last-child)::after {
content: '>';
margin-left: 5px;
color: #888;
}
.child-terms, .sibling-terms {
list-style: none;
padding-left: 0;
}
.child-terms li, .sibling-terms li {
padding: 5px 0;
}
#toggle-child-terms, #toggle-sibling-terms {
margin-top: 10px;
padding: 5px 10px;
cursor: pointer;
}
.hidden { display: none; }
.season-ended-badge {
display: inline-block;
background-color: #6c757d;
color: white;
font-size: 0.8em;
padding: 2px 8px;
border-radius: 4px;
margin-top: 5px;
}
.schedule-archived-badge {
background-color: #475569;
margin-left: 6px;
}
.schedule-link-disabled {
display: inline-block;
cursor: default;
color: inherit;
}
.rtlist-image .schedule-link-disabled {
display: block;
}

/* --- 4. Page-Specific & Related Posts Styles --- */
.calendar-container {
margin-top: 20px;
}
#arte-t6-t {
width: 100%;
}
.filter-rtlist-navigation {
margin-bottom: 20px;
}
.year-navigation, .month-navigation {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #f0f0f0;
}
.filter-rtlist-display .filter-rtlist-item {
border: 1px solid #eee;
padding: 15px;
border-radius: 5px;
}


/* --- 5. Responsive Styles --- */
@media (max-width: 900px) {
.terminal-header-grid {
grid-template-columns: 1fr;
}
.terminal-image-container {
max-width: 300px;
margin: 0 auto;
}
.info-grid-container, .music-grid-container {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.rtlist-display {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
}

.schedule-meta-container { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; margin-bottom: 24px; }
.schedule-broadcast-date { margin: 0; }
.schedule-broadcast-date.active-month-highlight {
color: #d20243;
font-weight: bold;
}
.schedule-original-title {
font-size: 1.2rem;
color: #555;
margin-top: 0px;
margin-bottom: 20px;
font-weight: normal;
line-height: 1.4;
}

/* ============================================
   分頁樣式 (Pagination Styles)
   ============================================ */
/* .pagination-container {
    margin: 40px 0;
    text-align: center;
} */

/* .pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
} */

/* .pagination a,
.pagination .current,
.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f8f9fa;
    border-color: #d20243;
    color: #d20243;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(210, 2, 67, 0.15);
}

.pagination .current {
    background-color: #d20243;
    color: #fff;
    border-color: #d20243;
    cursor: default;
    font-weight: 600;
} */

/* .pagination .dots {
    border: none;
    background: transparent;
    cursor: default;
} */

/* 上一頁/下一頁箭頭 */
.pagination .prev,
.pagination .next {
font-weight: 600;
}

/* Responsive adjustments for pagination */
/* @media (max-width: 480px) {
    .pagination a,
    .pagination .current,
    .pagination .dots {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination-container {
        margin: 25px 0;
    }
} */
