/* Anchor Core — Living Browser Showcase (Mobile Browser Viewport & Uniform Tabs) */

/* Character Break Prevention */
.anchor-living-browser * {
    box-sizing: border-box;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

@keyframes anchor-drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

.anchor-drift {
    animation: anchor-drift 9s ease-in-out infinite;
}

/* NO OUTER PADDING — 100% BLOCK COLUMN WIDTH */
.anchor-living-browser {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    min-width: 0;
}

.anchor-living-window {
    max-width: 100%;
}

.anchor-browser-frame {
    border: 1px solid rgba(29, 30, 32, 0.12);
    border-radius: 0.6rem;
    overflow: hidden;
    background-color: var(--anchor-porcelain, #faf8f4);
    box-shadow: 0 40px 80px -40px rgba(29, 30, 32, 0.35);
    width: 100%;
    min-width: 0;
}

.anchor-browser-header {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    background-color: rgba(241, 236, 228, 0.65);
    border-bottom: 1px solid rgba(29, 30, 32, 0.1);
    min-width: 0;
}

.anchor-browser-dots {
    display: flex;
    gap: 0.38rem;
    flex-shrink: 0;
}

.anchor-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background-color: rgba(29, 30, 32, 0.22);
}

/* Single-Line Address Bar */
.anchor-browser-address {
    margin-left: 0.85rem;
    flex: 1;
    min-width: 0;
    background: var(--anchor-porcelain, #faf8f4);
    padding: 0.22rem 0.65rem;
    border-radius: 0.25rem;
    overflow: hidden;
    white-space: nowrap;
}

.anchor-address-text {
    display: block;
    font-family: var(--anchor-font-mono, monospace);
    font-size: clamp(0.58rem, 2vw, 0.68rem);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--anchor-moss, #6c746f);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop Viewport */
.anchor-browser-viewport {
    position: relative;
    padding: 2rem 2.25rem;
    min-height: 420px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 700ms ease, color 700ms ease;
    width: 100%;
}

.anchor-window-viewport {
    padding: 2.5rem 2.75rem;
    min-height: 460px;
}

.anchor-texture-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    z-index: 1;
}

.anchor-texture-linen .anchor-texture-overlay {
    background-image: radial-gradient(#000 0.75px, transparent 0.75px), radial-gradient(#000 0.75px, #fff 0.75px);
    background-size: 6px 6px;
}

.anchor-texture-paper .anchor-texture-overlay {
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 1px, transparent 0, transparent 50%);
    background-size: 8px 8px;
}

.anchor-texture-vellum .anchor-texture-overlay {
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.06) 100%);
}

.anchor-texture-grain .anchor-texture-overlay {
    background-image: repeating-radial-gradient(circle at 17% 32%, rgba(0,0,0,0.08), rgba(0,0,0,0) 2px);
    background-size: 4px 4px;
}

.anchor-viewport-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 250ms ease, transform 250ms ease;
}

/* Topbar & Badges */
.anchor-layout-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    gap: 0.5rem;
    min-width: 0;
}

.anchor-eyebrow-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-family: var(--anchor-font-mono, monospace);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    white-space: nowrap;
    flex-shrink: 0;
}

.anchor-category-tag {
    font-family: var(--anchor-font-mono, monospace);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Footer & RESPONSIVE PROPORTIONAL CTA BUTTONS */
.anchor-layout-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.85rem;
    gap: 0.75rem;
    width: 100%;
}

.anchor-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-family: var(--anchor-font-mono, monospace);
    font-size: clamp(0.75rem, 1.5vw, 0.88rem);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    cursor: pointer;
    transition: transform 300ms ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.anchor-cta-btn:hover {
    transform: translateX(3px);
}

.anchor-step-num {
    font-family: var(--anchor-font-mono, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    opacity: 0.6;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 48px;
    text-align: right;
}

.anchor-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Layout 1: Cover */
.anchor-layout-cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.anchor-cover-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.anchor-headline-cover {
    font-family: var(--anchor-font-editorial, var(--anchor-font-serif, serif));
    font-size: clamp(1.75rem, 3.8vw, 2.8rem);
    line-height: 1.05;
    font-weight: 300;
    margin: 0 0 0.5rem;
}

.anchor-dek-cover {
    font-family: var(--anchor-font-editorial, var(--anchor-font-serif, serif));
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.4;
    font-weight: 300;
    opacity: 0.85;
    margin: 0 0 0.85rem;
    max-width: 48ch;
}

.anchor-cover-media {
    width: 100%;
    height: 160px;
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: var(--frame-accent, rgba(0,0,0,0.06));
    margin-bottom: 0.75rem;
}

/* Layout 2: Feature Spread */
.anchor-layout-feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.anchor-headline-feature {
    font-family: var(--anchor-font-editorial, var(--anchor-font-serif, serif));
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    line-height: 1.05;
    font-weight: 300;
    margin: 0 0 0.75rem;
}

.anchor-feature-media {
    height: 160px;
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: var(--frame-accent, rgba(0,0,0,0.06));
    margin-bottom: 0.75rem;
}

.anchor-dek-feature {
    font-family: var(--anchor-font-editorial, var(--anchor-font-serif, serif));
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.4;
    opacity: 0.85;
    margin: 0 0 0.75rem;
}

/* Layout 3: Gallery Placard */
.anchor-layout-placard {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.anchor-placard-box {
    border: 1px double currentColor;
    padding: 1.5rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.12);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    width: 100%;
}

.anchor-placard-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-family: var(--anchor-font-mono, monospace);
    font-size: clamp(0.6rem, 2vw, 0.68rem);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.8;
}

.anchor-headline-placard {
    font-family: var(--anchor-font-editorial, var(--anchor-font-serif, serif));
    font-size: clamp(1.4rem, 3.6vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 300;
    margin: 0.5rem 0;
    line-height: 1.15;
}

.anchor-dek-placard {
    font-family: var(--anchor-font-editorial, var(--anchor-font-serif, serif));
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-style: italic;
    margin: 0 auto;
    max-width: 42ch;
    opacity: 0.85;
    line-height: 1.35;
}

.anchor-placard-divider {
    height: 1px;
    width: 45px;
    background-color: currentColor;
    margin: 0.5rem auto;
    opacity: 0.3;
}

.anchor-placard-meta {
    font-family: var(--anchor-font-mono, monospace);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.75;
    display: block;
}

.anchor-layout-placard .anchor-layout-footer {
    justify-content: center;
    gap: 1.5rem;
}

/* Layout 4: Table of Contents */
.anchor-layout-toc {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.anchor-toc-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.anchor-headline-toc {
    font-family: var(--anchor-font-editorial, var(--anchor-font-serif, serif));
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    font-style: italic;
    font-weight: 300;
    margin: 0 0 0.4rem;
    line-height: 1.15;
}

.anchor-meta-toc {
    font-family: var(--anchor-font-mono, monospace);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.7;
    margin-bottom: 0.75rem;
    display: block;
}

.anchor-toc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

.anchor-toc-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--anchor-font-mono, monospace);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    width: 100%;
}

.anchor-toc-index {
    opacity: 0.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.anchor-toc-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.anchor-toc-dots {
    flex: 1;
    border-bottom: 1px dotted currentColor;
    opacity: 0.3;
    height: 1px;
    min-width: 12px;
}

.anchor-toc-pg {
    opacity: 0.7;
    white-space: nowrap;
    flex-shrink: 0;
}

/* UNIFORM EQUAL-SIZE NAVIGATION TABS GRID */
.anchor-window-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
    width: 100%;
}

.anchor-window-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(29, 30, 32, 0.14);
    border-radius: 0.25rem;
    background-color: transparent;
    color: var(--anchor-charcoal, #1d1e20);
    cursor: pointer;
    transition: all 300ms ease;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
}

.anchor-tab-number {
    font-family: var(--anchor-font-mono, monospace);
    font-size: 0.65rem;
    opacity: 0.5;
}

.anchor-tab-name {
    font-family: var(--anchor-font-mono, monospace);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.anchor-window-tab.active {
    background-color: var(--anchor-charcoal, #1d1e20);
    color: var(--anchor-porcelain, #faf8f4);
    border-color: var(--anchor-charcoal, #1d1e20);
}

.anchor-fade-out {
    opacity: 0;
    transform: translateY(3px);
}

/* ==========================================================================
   NATIVE MOBILE WEB BROWSER VIEWPORT (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
    .anchor-living-browser,
    .anchor-living-window {
        width: 100%;
        max-width: 100%;
    }

    .anchor-browser-frame {
        width: 100%;
        min-width: 0;
    }

    .anchor-browser-viewport,
    .anchor-window-viewport {
        padding: 1.25rem 1rem;
        min-height: 320px;
        min-width: 0;
        width: 100%;
    }

    .anchor-browser-address {
        margin-left: 0.5rem;
        padding: 0.18rem 0.45rem;
    }

    .anchor-cover-media,
    .anchor-feature-media {
        height: 130px;
    }

    .anchor-category-tag {
        max-width: 120px;
    }

    .anchor-cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.72rem;
    }

    /* Single column tabs matching 100% browser width */
    .anchor-window-nav {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 0.5rem;
        margin-top: 0.85rem;
    }

    .anchor-window-tab {
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 1rem;
    }
}