/**
 * Mac Claw - Top Page CSS
 * Generated from style.css split
 */

/* ============================================================
   6. Hero
   ============================================================ */

.hero {
    padding-top: calc(var(--header-h) + 0px);
    padding-bottom: 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: end;
    min-height: 555px;
}

.hero-content { padding-bottom: 35px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-red-light);
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.hero-badge--a2a { background: var(--accent-blue-light); color: var(--accent-blue); }
.hero-badge .lucide-icon { width: 13px; height: 13px; }

.hero-title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}
.hero-title .accent { color: var(--text-primary); display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 1.5em; }
.hero-title .accent-red { color: var(--accent-red); }
.hero-title-logo { height: 1em; width: auto; flex-shrink: 0; top: 1px; position: relative; }
.hero-mini { letter-spacing: -0.06em; }
.hero-swap { display: inline; margin-left: 0.15em; }
.hero-swap-text {
    border-right: 3px solid var(--accent-red);
    padding-right: 2px;
}
.hero-swap-text.typing-wait {
    animation: hero-blink 0.8s step-end infinite;
}
.hero-swap-text.typing-done { border-color: transparent; }
@keyframes hero-blink {
    0%, 100% { border-color: var(--accent-red); }
    50% { border-color: transparent; }
}
.hero-title .excl { letter-spacing: -0.15em; }

.hero-subtitle { font-size: 17px; color: var(--text-secondary); margin-bottom: 21px; line-height: 1.55; max-width: 550px; }

.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; margin-bottom: 24px; }

.hero-note { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.hero-note .lucide-icon { width: 14px; height: 14px; color: var(--accent-green); flex-shrink: 0; }

.hero-visual {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

}
.hero-visual-img { width: 100%; max-width: 720px; height: auto; object-fit: contain; }
.hero-visual-wrap { position: relative; max-width: 800px; width: 100%; left: -40px; }

.hero-mac-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    animation: mac-light-pulse 3s ease-in-out infinite;
}
@keyframes mac-light-pulse {
    0%, 100% { opacity: 0.5; filter: brightness(1) drop-shadow(0 0 2px rgba(220,38,38,0.3)); }
    50% { opacity: 1; filter: brightness(1.8) drop-shadow(0 0 8px rgba(220,38,38,0.9)) drop-shadow(0 0 20px rgba(220,38,38,0.5)); }
}

/* Hero visual bottom fade */
.hero-visual-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Hero - normal scroll */

/* FAQ grid pattern background */
.faq-bg-pattern {
    position: relative;
    background-color: var(--bg-primary);
}
.faq-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='15' x2='30' y2='15' stroke='%23eaeff3' stroke-width='0.3'/%3E%3Cline x1='15' y1='0' x2='15' y2='30' stroke='%23eaeff3' stroke-width='0.3'/%3E%3Ccircle cx='15' cy='15' r='1' fill='%23dde3ea' opacity='0.2'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    pointer-events: none;
}
[data-theme="dark"] .faq-bg-pattern::before {
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='15' x2='30' y2='15' stroke='%23333' stroke-width='0.3'/%3E%3Cline x1='15' y1='0' x2='15' y2='30' stroke='%23333' stroke-width='0.3'/%3E%3Ccircle cx='15' cy='15' r='1' fill='%23444' opacity='0.2'/%3E%3C/svg%3E");
}
.faq-bg-pattern > * {
    position: relative;
    z-index: 1;
}

.hero-stats { display: flex; gap: 36px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stat-item { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--accent-blue); line-height: 1.2; }
.hero-stat-label { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   6.5 Hero Badges (3つ訴求)
   ============================================================ */
.hero-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
}
@media (min-width: 769px) {
    .hero-badges { gap: 20px; }
    .hero-badge-wheat { height: 42px; }
    .hero-badge-label { font-size: .8rem; }
    .hero-badge-value { font-size: .95rem; }
}
.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 9px;
}
.hero-badge-wheat {
    height: 36px;
    width: auto;
}
.hero-badge-wheat:first-child {
    transform: scaleX(-1);
}
.hero-badge-text {
    text-align: center;
}
.hero-badge-label {
    display: block;
    font-size: .7rem;
    color: var(--text-muted);
    letter-spacing: .05em;
}
.hero-badge-value {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
@media (max-width: 768px) {
    .hero-badges { gap: 4px; justify-content: center; }
    .hero-badge-item { gap: 4px; }
    .hero-badge-wheat { height: 24px; }
    .hero-badge-label { font-size: .55rem; }
    .hero-badge-value { font-size: .65rem; }
}

/* ============================================================
   7. Merit Cards
   ============================================================ */

.merit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--merit-grid-gap, 24px); }
@media (max-width: 768px) {
    #merits .section-header { margin-bottom: 16px; }
    .merit-grid { grid-template-columns: 1fr; gap: 8px; }
    .merit-card { padding: 6px 0; }
    .merit-card:nth-child(3) { --img-rotate: 0deg !important; --img-scale: 100% !important; --img-y: 50% !important; --img-x: 50% !important; }
}

.merit-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--merit-card-py, 32px) var(--merit-card-px, 28px);
}

.merit-card-img { overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin: calc(var(--merit-card-py, 32px) * -1) calc(var(--merit-card-px, 28px) * -1) var(--merit-img-mb, 16px); height: var(--img-h, 200px); position: relative; background: var(--bg-primary); }
.merit-card-img img { width: var(--img-scale, 125%); display: block; position: absolute; left: var(--img-x, 50%); top: var(--img-y, 50%); transform: translate(-50%, -50%) rotate(var(--img-rotate, 0deg)); }

.merit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    flex-shrink: 0;
}
.merit-icon .lucide-icon { width: 22px; height: 22px; }
.merit-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.merit-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.marker-red {
    background: linear-gradient(transparent 60%, rgba(220, 38, 38, 0.55) 60%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    padding-bottom: 1px;
    transition: background-size 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    color: #1a1a1a;
    text-shadow: 0 0 2px rgba(255,255,255,0.9), 0 0 1px rgba(255,255,255,0.8);
}
.marker-red.is-drawn { background-size: 100% 100%; }
.merit-card h3 .excl { letter-spacing: -0.15em; }
.merit-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

#why-first {
  position: relative;
}
#why-first > .container {
  position: relative;
  z-index: 1;
}
.why-first-bg {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/why-first-bg.png') center / cover no-repeat;
  filter: blur(6px);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

/* Competitor grid (3-col) */
.why-first-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.why-first-image { position: sticky; top: 100px; }
.why-first-image img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.competitor-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.competitor-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 11px 15px 11px 15px;
    display: flex;
    flex-direction: column;
}
.competitor-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.competitor-favicon { width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0; }
.competitor-item h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0; }
.competitor-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; flex: 1; }
.competitor-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.competitor-link:hover { color: var(--accent-blue); }
.competitor-link .lucide-icon { width: 12px; height: 12px; }
/* SP用: サマリー上の画像 */
.why-first-summary-img { display: none; }
@media (max-width: 768px) {
    .why-first-layout { grid-template-columns: 1fr; gap: 24px; }
    .why-first-image { display: none; }
    .why-first-summary-img {
        display: block;
        width: 50%;
        margin: 24px auto 0;
    }
    .why-first-summary-img img {
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
    }
    .competitor-grid { grid-template-columns: 1fr; }
}
.why-first-summary { text-align: left; margin-top: 24px; font-size: 15px; color: var(--text-primary); font-weight: 600; line-height: 1.7; }
.world-first-note-text { margin-top: 16px; font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   8. Steps / Flow
   ============================================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(10% + 32px);
    right: calc(10% + 32px);
    height: 2px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-blue-dark));
    z-index: 0;
}

.step-card { text-align: center; position: relative; z-index: 1; padding: 0 8px; }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--text-white);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--accent-blue-light);
}
.step-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); line-height: 1.4; }
.step-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.step-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: var(--text-muted); }
.step-icon .lucide-icon { width: 20px; height: 20px; }

/* ============================================================
   9. Item Grid (Marketplace) - KEY SECTION
   ============================================================ */

.marketplace-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 80px;
}
.items-area { min-width: 0; }

.items-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; gap: 12px; flex-wrap: wrap; }
.items-count { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.items-count strong { color: var(--text-primary); font-weight: 700; }

.items-sort { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.sort-select {
    padding: 7px 32px 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-sans);
    background: var(--bg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: var(--text-primary);
}
.sort-select:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); }

.view-toggle { display: flex; gap: 4px; }
.view-toggle-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}
.view-toggle-btn:hover { color: var(--accent-blue); border-color: var(--accent-blue); }
.view-toggle-btn.is-active { background: var(--accent-blue); color: var(--text-white); border-color: var(--accent-blue); }
.view-toggle-btn .lucide-icon { width: 14px; height: 14px; }

/* Items Grid - responsive auto-fill */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* Item Card */
.item-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
}
.item-card:hover { color: var(--text-primary); }

/* 1:1 aspect ratio image container */
.item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-surface);
}
.item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.item-card:hover .item-image img { transform: none; }
.item-image::before { display: none; }

/* Badges container - top-right, wraps on overflow */
.item-badges {
    position: absolute;
    top: 8px; right: 8px;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-end;
    z-index: 2;
}
.spec-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    font-family: var(--font-sans);
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.4;
    z-index: 1;
}
.item-badges .spec-badge {
    position: static;
}

/* Bottom bar - price left, likes right, aligned */
.item-image-bottom {
    position: absolute;
    bottom: 8px; left: 8px; right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}
.item-image-price {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    background: rgba(0,0,0,0.25);
    padding: 4px 8px;
    border-radius: 6px;
}
button.item-image-likes {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    background: rgba(0,0,0,0.25);
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.15s ease;
    font-family: var(--font-sans);
}
button.item-image-likes:hover { transform: scale(1.1); }
button.item-image-likes:active { transform: scale(0.95); }
button.item-image-likes.is-liked { color: var(--accent-red); }
.item-image-likes .lucide-icon { width: 13px; height: 13px; }

/* SOLD badge - top-left on image */
.item-sold-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    z-index: 3;
}

/* Condition Badge - top-right */
.condition-badge {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.5;
    z-index: 1;
}
.condition-badge.new { background: var(--accent-blue); color: var(--text-white); }
.condition-badge.used-good { background: var(--accent-green-light); color: var(--accent-green); }
.condition-badge.used-fair { background: var(--accent-orange-light); color: var(--accent-orange); }
.condition-badge.used-poor { background: var(--accent-red-light); color: var(--accent-red); }

/* SOLD overlay */
.item-card.sold .item-image::after {
    content: 'SOLD';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 0.12em;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2;
}
.item-card.sold { opacity: 0.82; }

/* Item Card Body */
.item-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.item-card > .item-info { padding: 10px 14px 12px; display: flex; flex-direction: column; flex: 1; }

/* Price Tag - large bold blue */
.price-tag {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1.2;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}
.price-tag .price-currency { font-size: 13px; font-weight: 700; margin-right: 1px; }
.price-tag .price-unit { font-size: 11px; font-weight: 500; color: var(--text-muted); }

/* Item Title - truncated 2 lines */
.item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    transition: color var(--transition-base);
}
.item-card:hover .item-title { opacity: 0.6; }

/* Item Footer */
.item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 6px; }

/* Seller info */
.item-seller { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); min-width: 0; }
.seller-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-surface); flex-shrink: 0; overflow: hidden; }
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Like count */
.item-likes {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    cursor: pointer;
    transition: color var(--transition-base);
    background: none;
    border: none;
    padding: 4px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
}
.item-likes:hover { color: var(--accent-red); background: var(--accent-red-light); }
.item-likes.is-liked { color: var(--accent-red); }
.item-likes .lucide-icon { width: 13px; height: 13px; }
.item-likes.is-liked .lucide-icon { fill: var(--accent-red); }

/* List view variant */
.items-grid.list-view { grid-template-columns: 1fr; gap: 10px; }
.items-grid.list-view .item-card { flex-direction: row; align-items: center; }
.items-grid.list-view .item-image { width: 100px; height: 100px; aspect-ratio: unset; flex-shrink: 0; }
.items-grid.list-view .item-body { padding: 12px 16px; flex: 1; }
.items-grid.list-view .price-tag { font-size: 18px; }
.items-grid.list-view .item-title { -webkit-line-clamp: 1; font-size: 14px; }

/* セクション区切り斜線 */
#latest {
    border-bottom: 6px solid #030303;
}
#why-first {
    position: relative;
}
#why-first::before,
#why-first::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: #030303;
    transform: rotate(-1.5deg);
}
#why-first::before { top: -3px; }
#why-first::after { bottom: -3px; }

/* FAQ幅制限 */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-more { max-width: 780px; margin: 24px auto 0; text-align: center; }

@media (min-width: 769px) {
    #articles.section { padding: 80px 0 40px 0; }
}

/* ============================================================
   17b. Top Articles Grid (ClawBuilder style)
   ============================================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* article-card (shared with page.css) */
.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.article-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card-thumbnail .article-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}
.article-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-thumbnail .thumb-placeholder {
    font-size: 40px;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; gap: 12px; }
    .article-card { flex-direction: row; padding: 0; border-radius: var(--radius-md); align-items: stretch; }
    .article-card-thumbnail { width: 130px; min-width: 130px; flex-shrink: 0; aspect-ratio: auto; height: auto; border-radius: var(--radius-md) 0 0 var(--radius-md); }
    .article-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
    .article-card-thumbnail .article-category-badge { display: none; }
    .article-card-body { padding: 10px 10px; min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
    .article-card-title { font-size: .8rem; -webkit-line-clamp: 2; margin-bottom: 0; }
    .article-card-excerpt { display: -webkit-box !important; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: .7rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0; }
    .article-card-readmore { display: block; font-size: .7rem; color: var(--text-muted); }
    .article-card-desc { display: none !important; }
    .article-card-meta { display: none !important; }
}
.article-card-readmore { display: none; }

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 3px;
    border-radius: 100px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-sans);
    width: fit-content;
}
.article-category-badge .lucide-icon { width: 11px; height: 11px; flex-shrink: 0; }

.article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 768px) {
    .article-card-body {
        padding: 6px 11px !important;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px !important;
        flex: 1;
    }
}
.article-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 768px) {
    .article-card-title {
        font-size: .9rem !important;
        -webkit-line-clamp: 2;
        margin-bottom: 0;
        line-height: 1.3rem !important;
    }
}
.article-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
@media (max-width: 768px) {
    .article-card-excerpt { -webkit-line-clamp: 1; font-size: .7rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0; flex: none; }
}
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}
.article-card-meta time {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) and (max-width: 1200px) {
    .articles-grid { grid-template-columns: repeat(3, 1fr); }
}
