/* Departure Mono font declaration */
@font-face {
    font-family: 'Departure Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/departure-mono/DepartureMono-Regular.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/departure-mono/DepartureMono-Regular.woff') format('woff'),
         url('/https/hvpandya.com/assets/fonts/departure-mono/DepartureMono-Regular.otf') format('opentype');
}

/* Ivar Headline font declarations */
@font-face {
    font-family: 'Ivar Headline';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-Regular.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Headline';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-Italic.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-Italic.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Headline';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-Medium.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-Medium.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Headline';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-MediumItalic.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-MediumItalic.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Headline';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-SemiBold.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-SemiBold.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Headline';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-SemiBoldItalic.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-SemiBoldItalic.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Headline';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-Bold.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Headline';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-BoldItalic.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-headline/IvarHeadline-BoldItalic.otf') format('opentype');
}

/* Ivar Text font declarations */
@font-face {
    font-family: 'Ivar Text';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-Regular.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Text';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-Italic.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-Italic.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Text';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-Medium.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-Medium.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Text';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-MediumItalic.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-MediumItalic.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Text';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-SemiBold.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-SemiBold.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Text';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-SemiBoldItalic.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-SemiBoldItalic.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Text';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-Bold.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'Ivar Text';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-BoldItalic.woff2') format('woff2'),
         url('/https/hvpandya.com/assets/fonts/ivar-text/IvarText-BoldItalic.otf') format('opentype');
}

/* Selection styles */
::selection {
    background-color: rgba(81, 117, 63, 0.2);
    color: inherit;
}

::-moz-selection {
    background-color: rgba(81, 117, 63, 0.2);
    color: inherit;
}

:root {
    --white: #ffffff;
    --gray-000: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #5d636a;
    --gray-800: #343a40;
    --gray-850: #202124;
    --gray-900: #000000;
    --red: #e6320e;
    --pink: #e64980;
    --grape: #be4bdb;
    --purple: #7950f2;
    --indigo: #4c6ef5;
    --blue: #228be6;
    --cyan: #15aabf;
    --teal: #12b886;
    --green: #40c057;
    --yellow: #fab005;
    --orange: #fd7e14;
    --blue-300: #74c0fc;
    --blue-400: #4dabf7;
    --anthropic-brown: #ffffff;
    --anthropic-link: #51753f;
    --anthropic-link-hover: #3a5330;
    --yellow-100: #e8f0e2;
    --dark-blue: #1b316f;

    /* Japanese Palette - Pastels (speech bubbles, nav hovers) */
    --sage-green: #6b8f5a;
    --dusty-rose: #c4837a;
    --lavender: #9b7bb8;
    --warm-gold: #b59858;
    --coral: #d4826a;

    /* Japanese Palette - Lozenge text colors (darker for readability) */
    --matcha: #4a6848;
    --indigo: #2d4a6f;
    --kohaku: #8a6830;
    --vermillion: #9a4a3a;
    --wisteria: #6a5878;
    --sakura: #96525e;
    --madder: #7a4a48;
    --hanada: #3a6878;
    /* Font stacks */
    --body-font: "Ivar Text", "Georgia", "Times New Roman", serif;
    --header-font: "Ivar Headline", "Georgia", "Times New Roman", serif;
    --code-font: "Departure Mono", ui-monospace, SFMono-Regular, "SF Mono", Monaco, "Menlo", "Consolas", "Liberation Mono", "Courier New", monospace;
    --code-block-font: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Monaco, "Menlo", "Consolas", monospace;
    --code-color: #51753f;
    --body-font-size: 17px;
    --body-line-height: 1.45;
    --body-color: var(--gray-900);
    --body-bg: #f1f2f3;
    --link-color: var(--anthropic-link);
    --link-hover-color: var(--anthropic-link-hover);
    --heading-color: var(--gray-900);
    --border-color: var(--gray-300);
    --border-radius: 0px;
    --code-bg: transparent;
    --code-block-bg: #ecf3e6;
    --spacer: 1rem;
    --spacer-2: calc(var(--spacer) * 1.5);
    --spacer-2half: calc(var(--spacer) * 2);
    --spacer-3: calc(var(--spacer) * 3);
    --spacer-4: calc(var(--spacer) * 4);
    --masthead-title: var(--gray-900);
    --masthead-title-link: var(--gray-900);
    --masthead-small-link: var(--gray-800);
    --masthead-border: var(--gray-200);
    --message-text: var(--gray-900);
    --message-background: #f1f3f4;
}

/* Base container width - centered content column */
.container {
    max-width: 46rem;
    padding-inline: 0;
    margin-inline: auto;
}

@media only screen and (min-width: 1280px) {
    .container { max-width: 48rem; }
}
@media only screen and (min-width: 1470px) {
    .container { max-width: 50rem; }
}
@media only screen and (min-width: 1920px) {
    .container { max-width: 52rem; }
}

/* Responsive font scaling for larger viewports */
@media only screen and (min-width: 768px) {
    :root {
        --body-font-size: 17px;
        --body-line-height: 1.45;
    }
}

@media only screen and (min-width: 1280px) {
    :root {
        --body-font-size: 17px;
        --body-line-height: 1.45;
    }
}

@media only screen and (min-width: 1470px) {
    :root {
        --body-font-size: 18px;
        --body-line-height: 1.45;
    }
}

@media only screen and (min-width: 1920px) {
    :root {
        --body-font-size: 19px;
        --body-line-height: 1.45;
    }
}

/* Apply fonts */
:root {
    font-family: var(--body-font);
}

body, p, li, td, th, input, textarea, select {
    font-family: var(--body-font);
}

/* Apply Inter character variants (only affects Inter Variable when used) */
body, p, li, td, th, input, textarea, select,
h1, h2, h3, h4, h5, h6,
footer, .copyright-text,
h4.masthead-title a, h4.masthead-title .small a,
.post-title-list-items a, .also-read a {
    font-feature-settings: "cv11" 1, "cv06" 1; /* single-story-a, simplified-u - only applies to Inter Variable */
}

h1 {
    font-family: var(--header-font);
    color: var(--gray-900);
}

h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
}

img.x-large {
    display: block;
    max-width: 80rem;
    margin-left: -15rem;
    border-radius: var(--border-radius);
    margin-top: var(--spacer-3);
    margin-bottom: var(--spacer-3);
}

.image-mosaic.large {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, minmax(0, 300px));
    width: 160%;
    margin-left: -30%;
    margin-right: -30%;
    margin-top: var(--spacer-2);
    margin-bottom: var(--spacer-2);
}

.mosaic-item {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    border-radius: var(--border-radius);
}

.mosaic-main {
    grid-column: span 4;
    grid-row: span 2;
}

.mosaic-top-right {
    grid-column: span 2;
    grid-row: span 1;
}

.mosaic-bottom-right {
    grid-column: span 2;
    grid-row: span 1;
}

@media only screen and (max-width: 1280px) {
    .image-mosaic.large {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media only screen and (max-width: 480px) {
    .image-mosaic.large {
        width: 100%;
        margin: var(--spacer-2) auto;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, minmax(0, 200px));
        gap: 0.5rem;
    }
    
    /* Using the main mosaic item styles */
    
    .mosaic-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: relative;
        left: 0;
        transform: none;
        margin: 0 !important;
    }
    
    .mosaic-main,
    .mosaic-top-right,
    .mosaic-bottom-right {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

@keyframes bounceIn {
    0% { 
        transform: scale(0.995);
        opacity: 0;
    }
    50% {
        transform: scale(1.002);
        opacity: 0.9;
    }
    70% { 
        transform: scale(0.998);
        opacity: 0.95;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    cursor: default;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.99);
}

.lightbox.active img {
    animation: bounceIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lightbox.closing {
    opacity: 0;
}

.lightbox.closing img {
    transform: scale(0.98);
    opacity: 0;
}

/* Clickable image styles */
img:not(.lightbox img):not(.footer-image) {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Mobile optimization */
@media only screen and (max-width: 480px) {
    .lightbox img {
        max-width: 95%;
        max-height: 95vh;
    }
}

/* Navigation buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 20px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    opacity: 0.7;
    z-index: 1001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent; /* Removes tap highlight on mobile */
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.lightbox-nav:focus {
    outline: none;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Loading state */
.lightbox-image.loading {
    opacity: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

/* Navigation styles */
.nav-links {
    float: right;
    font-size: 1.1em;
}

@media only screen and (max-width: 480px) {
    .nav-links {
        float: none;
        display: flex;
        flex-wrap: wrap;
        margin-top: 0.5rem;
        font-size: 1.05em;
    }

    .nav-links a {
        margin-right: 0.5rem;
    }

    .nav-links span[aria-hidden="true"] {
        margin-right: 0.5rem;
    }
}

/* Mobile adjustments */
@media only screen and (max-width: 768px) {
    .lightbox-nav {
        padding: 15px;
        font-size: 18px;
        width: 45px;
        height: 45px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 95vh;
    }
}

/* Smaller mobile devices */
@media only screen and (max-width: 480px) {
    .lightbox-nav {
        padding: 12px;
        font-size: 16px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav.prev {
        left: 5px;
    }
    
    .lightbox-nav.next {
        right: 5px;
    }
}

/* Prevent scrolling when lightbox is active */
body.lightbox-active {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px); /* Prevents layout shift */
}

/* Hide navigation for single images */
.lightbox-overlay:not([data-grid]) .lightbox-nav {
    display: none;
}

/* Hero image styles */
.hero-image {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/https/hvpandya.com/assets/hvpandya-3.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0), rgb(0, 0, 0, 1))
}

@media only screen and (max-width: 480px) {
    .hero-image {
        height: 400px;
}

.hero-image::before {
    background-position: 36% 0
    }
}

.leader-entity {
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.05em;
}

.bottom-center {
    position: absolute;
    bottom: 6%;
    transform: translate(-50%, 0%);
    padding: 0 auto;
    image-rendering: auto;
    left: 50%;
    text-shadow: 0px 2px 8px #111111;
}

@media only screen and (max-width: 480px) {
    .bottom-center {
        bottom: 10%;
    }
    
}

@media only screen and (max-width: 1440px) {
    img.x-large {
        max-width: 140%;
        margin-left: -20%;
    }
}

@media only screen and (min-width: 1441px) {
    img.x-large {
        max-width: 90rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Large images - flush edge to edge within page */
img.large {
    display: block;
    width: calc(100vw - 2rem - 4rem); /* viewport - page margin (2rem) - page padding (4rem) */
    max-width: none;
    margin-left: calc(50% - (50vw - 1rem - 2rem)); /* Break out of container to page edges */
    margin-right: calc(50% - (50vw - 1rem - 2rem));
    margin-top: var(--spacer-2half);
    margin-bottom: var(--spacer-2half);
    border-radius: var(--border-radius);
    object-fit: contain;
}

@media (max-width: 768px) {
    img.large {
        width: calc(100vw - 1rem - 2rem); /* viewport - page margin (1rem) - page padding (2rem) */
        margin-left: calc(50% - (50vw - 0.5rem - 1rem));
        margin-right: calc(50% - (50vw - 0.5rem - 1rem));
        margin-top: var(--spacer-2);
        margin-bottom: var(--spacer-2);
    }
}

img {
    display: block;
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    -webkit-tap-highlight-color: transparent;
}

/* GIFs should always be full container width */
img[src$=".gif"],
img[src*=".gif"] {
    width: 100% !important;
    max-width: 100% !important;
}

figcaption {
    margin-top: 0.75rem;
    font-family: var(--code-font);
    margin-bottom: 0;
    color: var(--gray-600);
    font-size: 0.75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: normal;
}

/* Empty figcaptions shouldn't affect spacing */
figcaption:empty {
    display: none;
}

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    /* Background image directly on html for iOS Safari compatibility */
    /* This allows the image to extend behind status bar and URL bar */
    background-color: #e8e4df;
    background-image: url('/https/hvpandya.com/assets/background-images/bg-4-hamlet.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    font-family: var(--body-font);
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    color: var(--body-color);
    background-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    position: relative;
    min-height: 100vh;
}

/* Page wrapper - the white paper with small margin showing background */
.page-wrapper {
    background: var(--white);
    margin: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    min-height: calc(100vh - 2rem);
    position: relative;
    box-sizing: border-box;
}

/* Mobile: smaller margin */
@media only screen and (max-width: 768px) {
    .page-wrapper {
        margin: 0.5rem;
        padding: 1rem;
        min-height: calc(100vh - 1rem);
    }
}

/* Mobile styles for elements other than font size */
@media only screen and (max-width: 480px) {
    

    h4.masthead-title a {
        font-size: 1.5em !important;
    }
    span.small a {
        font-size: 1em !important;
    }
    h4.masthead-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-bottom: 0.75rem; /* Add some padding before the underline */
    }

    h4.masthead-title > a {
        display: block;
        margin-bottom: 0.75rem;
    }

    h4.masthead-title small {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        width: 100%;
    }

    h4.masthead-title small a {
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }
}

a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color);
}

* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
}

/* Custom focus indicators for accessibility - visible focus ring for keyboard navigation */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

*:active,
*:target {
    -webkit-tap-highlight-color: transparent;
}

.skip-to-main-content-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: white;
    color: black;
    opacity: 0;
}

.skip-to-main-content-link:focus {
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

input, textarea {
    -webkit-user-select: text !important;
    user-select: text !important;
}

a strong {
    color: inherit;
}

table {
    margin-bottom: var(--spacer-2);
    width: 100%;
    margin-left: 0;
    border: 1px solid var(--gray-200);
    border-collapse: collapse;
}

@media only screen and (max-width: 480px) {
    table {
        width: 100%;
        margin-left: 0;
        max-width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

td,
th {
    padding: var(--spacer);
    border-color: var(--gray-200);
    border-style: solid;
    border-width: 0;
    border-bottom-width: 1px;
    vertical-align: top;
}

.no-padding-above {
    padding-top: 0 !important;
}

.no-padding-below {
    padding-bottom: 0 !important;
}

th {
    text-align: left;
    background-color: var(--gray-100);
    font-family: var(--header-font);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: none;
}

thead th {
    border-bottom-color: var(--gray-200);
}

mark {
    padding: 0.15rem;
    background-color: var(--yellow-100);
    border-radius: 0.125rem;
}

/* Typography Scale */
h1 {
    font-family: var(--header-font);
    font-weight: bold;
    color: var(--gray-900);
}

h2, h3, h4, h6 {
    font-family: var(--header-font);
    font-weight: bold;
    line-height: 1.4;
    color: var(--gray-900);
}

h1 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.45rem;
    line-height: 1.4;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Post List - Standard component for listing posts anywhere */
.post-list {
    display: flex;
    flex-direction: column;
    margin: 0.75rem 0;
}

.post-list-item {
    margin: 0.65rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.post-list-item a {
    font-family: var(--header-font);
    font-size: var(--body-font-size);
    font-weight: bold;
    line-height: 1.4;
    color: var(--link-color);
    text-decoration: underline;
}

.post-list-item a:hover {
    color: var(--link-hover-color);
}

/* Legacy aliases - use .post-list and .post-list-item instead */
.post-title-list {
    /* No margin - posts should be equally spaced regardless of month grouping */
}

.post-title-list h3.post-title-list-items,
.post-title-list h3.post-title-list-items b,
.post-title-list h3.post-title-list-items a {
    font-size: var(--body-font-size) !important;
    font-weight: bold !important;
    line-height: 1.4;
}

h3.post-title-list-items,
div.post-title-list-items {
    margin: 0.65rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

h4 {
    font-size: var(--body-font-size);
    font-weight: bold;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h6 {
    font-family: "Departure Mono", ui-monospace, SFMono-Regular, "SF Mono", Monaco, "Menlo", "Consolas", monospace;
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}


.post-subtitle {
    font-family: var(--body-font);
    font-size: 1.25rem;
    color: var(--gray-600);
    font-weight: 400;
    margin-top: -0.75rem;
    margin-bottom: 2rem;
    display: block;
    line-height: 1.4;
}

@media only screen and (max-width: 480px) {
    .post-subtitle {
        font-size: 1.1rem;
        margin-top: -0.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
}

/* Post cover image */
.post-cover-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
}

@media only screen and (max-width: 480px) {
    .post-cover-image {
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
}

h5 {
    color: var(--gray-700);
    font-family: var(--code-font);
    font-weight: normal;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}


h5.monospace {
    font-family: var(--body-font);
    font-size: 1em;
    font-weight: normal;
}

h5 + p {
    margin-top: -0.5rem !important;
}
h5 + h3 {
    margin-top: -0.5rem !important;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

del {
    color: var(--gray-700);
}

/* Unordered lists */
ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
}

ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.9rem;
    height: 0.9rem;
    background-color: var(--anthropic-link);
    -webkit-mask-image: url('/https/hvpandya.com/assets/arrow-right.svg');
    mask-image: url('/https/hvpandya.com/assets/arrow-right.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Ordered lists */
ol {
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    counter-reset: item;
}

ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    list-style: none;
    counter-increment: item;
}

ol li::before {
    content: counter(item);
    position: absolute;
    left: -0.25rem;
    top: 0.25rem;
    color: var(--gray-900); /* Black number/text */
    font-weight: normal;
    background-color: var(--gray-200); /* Light grey background */
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Nested lists within ordered lists should use arrows */
ol ul {
    margin-top: var(--spacer);
    margin-bottom: var(--spacer);
    padding-left: 0;
    list-style: none;
}

ol ul li {
    counter-increment: none;
}

ol ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.9rem;
    height: 0.9rem;
    background-color: var(--anthropic-link);
    -webkit-mask-image: url('/https/hvpandya.com/assets/arrow-right.svg');
    mask-image: url('/https/hvpandya.com/assets/arrow-right.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

div.career-companies ul {
    padding-left: 0 !important;
}

div.career-companies ul:first-child {
    margin-top: 0 !important;
}

div.career-projects h2 {
    margin-top: 0 !important;
}

dt {
    font-weight: bold;
}

dd {
    margin-bottom: 0.5rem;
}

hr {
    position: relative;
    margin: var(--spacer-2half) 0;
    border: 0;
    height: 3px;
    background-image: linear-gradient(to right, var(--gray-400) 3px, transparent 3px);
    background-size: 8px 3px;
    background-repeat: repeat-x;
}

/* ===================
 * PIXEL ART SEPARATORS
 * Small retro creatures made of 3px squares
 * Usage: <div class="pixel-crab"></div>
 * =================== */

/* 16x16 Pixel Art Separators - bitmap game style */

/* Crab - top-down view, 16x16 */
.pixel-crab {
    display: block;
    width: 3px;
    height: 3px;
    margin: 2rem auto;
    background-color: #ced4da;
    box-shadow:
        /* Row 1 - claws top */
        -15px -18px 0 #ced4da, -12px -18px 0 #ced4da, 15px -18px 0 #ced4da, 18px -18px 0 #ced4da,
        /* Row 2 - claws */
        -18px -15px 0 #ced4da, -15px -15px 0 #ced4da, -12px -15px 0 #ced4da, -9px -15px 0 #ced4da,
        12px -15px 0 #ced4da, 15px -15px 0 #ced4da, 18px -15px 0 #ced4da, 21px -15px 0 #ced4da,
        /* Row 3 - claws */
        -18px -12px 0 #ced4da, -15px -12px 0 #ced4da, -12px -12px 0 #ced4da,
        15px -12px 0 #ced4da, 18px -12px 0 #ced4da, 21px -12px 0 #ced4da,
        /* Row 4 - arms */
        -15px -9px 0 #ced4da, -3px -9px 0 #ced4da, 0px -9px 0 #ced4da, 3px -9px 0 #ced4da, 6px -9px 0 #ced4da, 18px -9px 0 #ced4da,
        /* Row 5 - body top */
        -6px -6px 0 #ced4da, -3px -6px 0 #ced4da, 0px -6px 0 #ced4da, 3px -6px 0 #ced4da, 6px -6px 0 #ced4da, 9px -6px 0 #ced4da,
        /* Row 6 - body + legs */
        -18px -3px 0 #ced4da, -9px -3px 0 #ced4da, -6px -3px 0 #ced4da, -3px -3px 0 #ced4da, 0px -3px 0 #ced4da, 3px -3px 0 #ced4da, 6px -3px 0 #ced4da, 9px -3px 0 #ced4da, 12px -3px 0 #ced4da, 21px -3px 0 #ced4da,
        /* Row 7 - body + eyes (base element is here at 0,0) */
        -21px 0px 0 #ced4da, -12px 0px 0 #ced4da, -9px 0px 0 #ced4da, -6px 0px 0 #ced4da, 3px 0px 0 #ced4da, 9px 0px 0 #ced4da, 12px 0px 0 #ced4da, 15px 0px 0 #ced4da, 24px 0px 0 #ced4da,
        /* Row 8 - body */
        -9px 3px 0 #ced4da, -6px 3px 0 #ced4da, -3px 3px 0 #ced4da, 0px 3px 0 #ced4da, 3px 3px 0 #ced4da, 6px 3px 0 #ced4da, 9px 3px 0 #ced4da, 12px 3px 0 #ced4da,
        /* Row 9 - body + legs */
        -18px 6px 0 #ced4da, -9px 6px 0 #ced4da, -6px 6px 0 #ced4da, -3px 6px 0 #ced4da, 0px 6px 0 #ced4da, 3px 6px 0 #ced4da, 6px 6px 0 #ced4da, 9px 6px 0 #ced4da, 12px 6px 0 #ced4da, 21px 6px 0 #ced4da,
        /* Row 10 - legs */
        -21px 9px 0 #ced4da, -6px 9px 0 #ced4da, -3px 9px 0 #ced4da, 0px 9px 0 #ced4da, 3px 9px 0 #ced4da, 6px 9px 0 #ced4da, 9px 9px 0 #ced4da, 24px 9px 0 #ced4da,
        /* Row 11 - body bottom */
        -3px 12px 0 #ced4da, 0px 12px 0 #ced4da, 3px 12px 0 #ced4da, 6px 12px 0 #ced4da,
        /* Row 12 - tail */
        0px 15px 0 #ced4da, 3px 15px 0 #ced4da !important;
}

/* Cat Face - front view, 16x16 */
.pixel-cat {
    display: block;
    width: 3px;
    height: 3px;
    margin: 2rem auto;
    background-color: #ced4da;
    box-shadow:
        /* Row 1 - ear tips */
        -15px -18px 0 #ced4da, -12px -18px 0 #ced4da, 15px -18px 0 #ced4da, 18px -18px 0 #ced4da,
        /* Row 2 - ears */
        -18px -15px 0 #ced4da, -15px -15px 0 #ced4da, -12px -15px 0 #ced4da, -9px -15px 0 #ced4da,
        12px -15px 0 #ced4da, 15px -15px 0 #ced4da, 18px -15px 0 #ced4da, 21px -15px 0 #ced4da,
        /* Row 3 - ears + head */
        -18px -12px 0 #ced4da, -15px -12px 0 #ced4da, -12px -12px 0 #ced4da, -9px -12px 0 #ced4da, -6px -12px 0 #ced4da, -3px -12px 0 #ced4da, 0px -12px 0 #ced4da, 3px -12px 0 #ced4da, 6px -12px 0 #ced4da, 9px -12px 0 #ced4da, 12px -12px 0 #ced4da, 15px -12px 0 #ced4da, 18px -12px 0 #ced4da, 21px -12px 0 #ced4da,
        /* Row 4 - head */
        -18px -9px 0 #ced4da, -15px -9px 0 #ced4da, -12px -9px 0 #ced4da, -9px -9px 0 #ced4da, -6px -9px 0 #ced4da, -3px -9px 0 #ced4da, 0px -9px 0 #ced4da, 3px -9px 0 #ced4da, 6px -9px 0 #ced4da, 9px -9px 0 #ced4da, 12px -9px 0 #ced4da, 15px -9px 0 #ced4da, 18px -9px 0 #ced4da, 21px -9px 0 #ced4da,
        /* Row 5 - head */
        -18px -6px 0 #ced4da, -15px -6px 0 #ced4da, -12px -6px 0 #ced4da, -9px -6px 0 #ced4da, -6px -6px 0 #ced4da, -3px -6px 0 #ced4da, 0px -6px 0 #ced4da, 3px -6px 0 #ced4da, 6px -6px 0 #ced4da, 9px -6px 0 #ced4da, 12px -6px 0 #ced4da, 15px -6px 0 #ced4da, 18px -6px 0 #ced4da, 21px -6px 0 #ced4da,
        /* Row 6 - eyes row (holes for eyes) */
        -18px -3px 0 #ced4da, -15px -3px 0 #ced4da, -6px -3px 0 #ced4da, -3px -3px 0 #ced4da, 0px -3px 0 #ced4da, 3px -3px 0 #ced4da, 6px -3px 0 #ced4da, 9px -3px 0 #ced4da, 18px -3px 0 #ced4da, 21px -3px 0 #ced4da,
        /* Row 7 - eyes row (holes for eyes) */
        -18px 0px 0 #ced4da, -15px 0px 0 #ced4da, -6px 0px 0 #ced4da, -3px 0px 0 #ced4da, 0px 0px 0 #ced4da, 3px 0px 0 #ced4da, 6px 0px 0 #ced4da, 9px 0px 0 #ced4da, 18px 0px 0 #ced4da, 21px 0px 0 #ced4da,
        /* Row 8 - face */
        -18px 3px 0 #ced4da, -15px 3px 0 #ced4da, -12px 3px 0 #ced4da, -9px 3px 0 #ced4da, -6px 3px 0 #ced4da, -3px 3px 0 #ced4da, 0px 3px 0 #ced4da, 3px 3px 0 #ced4da, 6px 3px 0 #ced4da, 9px 3px 0 #ced4da, 12px 3px 0 #ced4da, 15px 3px 0 #ced4da, 18px 3px 0 #ced4da, 21px 3px 0 #ced4da,
        /* Row 9 - nose (holes) */
        -18px 6px 0 #ced4da, -15px 6px 0 #ced4da, -12px 6px 0 #ced4da, -9px 6px 0 #ced4da, -6px 6px 0 #ced4da, -3px 6px 0 #ced4da, 6px 6px 0 #ced4da, 9px 6px 0 #ced4da, 12px 6px 0 #ced4da, 15px 6px 0 #ced4da, 18px 6px 0 #ced4da, 21px 6px 0 #ced4da,
        /* Row 10 - face + whiskers */
        -18px 9px 0 #ced4da, -15px 9px 0 #ced4da, -12px 9px 0 #ced4da, -9px 9px 0 #ced4da, -6px 9px 0 #ced4da, -3px 9px 0 #ced4da, 0px 9px 0 #ced4da, 3px 9px 0 #ced4da, 6px 9px 0 #ced4da, 9px 9px 0 #ced4da, 12px 9px 0 #ced4da, 15px 9px 0 #ced4da, 18px 9px 0 #ced4da, 21px 9px 0 #ced4da,
        /* Row 11 - mouth */
        -12px 12px 0 #ced4da, -9px 12px 0 #ced4da, -6px 12px 0 #ced4da, 0px 12px 0 #ced4da, 3px 12px 0 #ced4da, 9px 12px 0 #ced4da, 12px 12px 0 #ced4da, 15px 12px 0 #ced4da,
        /* Row 12 - chin */
        -9px 15px 0 #ced4da, -6px 15px 0 #ced4da, -3px 15px 0 #ced4da, 0px 15px 0 #ced4da, 3px 15px 0 #ced4da, 6px 15px 0 #ced4da, 9px 15px 0 #ced4da, 12px 15px 0 #ced4da,
        /* Row 13 - chin bottom */
        -6px 18px 0 #ced4da, -3px 18px 0 #ced4da, 0px 18px 0 #ced4da, 3px 18px 0 #ced4da, 6px 18px 0 #ced4da, 9px 18px 0 #ced4da !important;
}

/* Snail - side view, 16x16 */
.pixel-snail {
    display: block;
    width: 3px;
    height: 3px;
    margin: 2rem auto;
    background-color: #ced4da;
    box-shadow:
        /* Row 1 - antennae */
        9px -18px 0 #ced4da, 15px -18px 0 #ced4da,
        /* Row 2 - antennae */
        9px -15px 0 #ced4da, 15px -15px 0 #ced4da,
        /* Row 3 - shell top + head */
        -3px -12px 0 #ced4da, 0px -12px 0 #ced4da, 3px -12px 0 #ced4da, 6px -12px 0 #ced4da, 9px -12px 0 #ced4da, 12px -12px 0 #ced4da, 15px -12px 0 #ced4da,
        /* Row 4 - shell */
        -6px -9px 0 #ced4da, -3px -9px 0 #ced4da, 0px -9px 0 #ced4da, 3px -9px 0 #ced4da, 6px -9px 0 #ced4da, 9px -9px 0 #ced4da, 12px -9px 0 #ced4da, 15px -9px 0 #ced4da,
        /* Row 5 - shell spiral */
        -9px -6px 0 #ced4da, -6px -6px 0 #ced4da, -3px -6px 0 #ced4da, 6px -6px 0 #ced4da, 9px -6px 0 #ced4da, 12px -6px 0 #ced4da, 15px -6px 0 #ced4da, 18px -6px 0 #ced4da,
        /* Row 6 - shell spiral */
        -9px -3px 0 #ced4da, -6px -3px 0 #ced4da, 0px -3px 0 #ced4da, 3px -3px 0 #ced4da, 6px -3px 0 #ced4da, 9px -3px 0 #ced4da, 12px -3px 0 #ced4da, 15px -3px 0 #ced4da, 18px -3px 0 #ced4da,
        /* Row 7 - shell spiral (base element) */
        -9px 0px 0 #ced4da, -6px 0px 0 #ced4da, 3px 0px 0 #ced4da, 6px 0px 0 #ced4da, 9px 0px 0 #ced4da, 12px 0px 0 #ced4da, 15px 0px 0 #ced4da, 18px 0px 0 #ced4da,
        /* Row 8 - shell spiral */
        -9px 3px 0 #ced4da, -6px 3px 0 #ced4da, 0px 3px 0 #ced4da, 3px 3px 0 #ced4da, 6px 3px 0 #ced4da, 9px 3px 0 #ced4da, 12px 3px 0 #ced4da, 15px 3px 0 #ced4da, 18px 3px 0 #ced4da,
        /* Row 9 - shell bottom */
        -9px 6px 0 #ced4da, -6px 6px 0 #ced4da, 6px 6px 0 #ced4da, 9px 6px 0 #ced4da, 12px 6px 0 #ced4da, 15px 6px 0 #ced4da,
        /* Row 10 - shell + body */
        -6px 9px 0 #ced4da, -3px 9px 0 #ced4da, 0px 9px 0 #ced4da, 3px 9px 0 #ced4da, 6px 9px 0 #ced4da, 9px 9px 0 #ced4da, 12px 9px 0 #ced4da,
        /* Row 11 - body/foot */
        -21px 12px 0 #ced4da, -18px 12px 0 #ced4da, -15px 12px 0 #ced4da, -12px 12px 0 #ced4da, -9px 12px 0 #ced4da, -6px 12px 0 #ced4da, -3px 12px 0 #ced4da, 0px 12px 0 #ced4da, 3px 12px 0 #ced4da, 6px 12px 0 #ced4da, 9px 12px 0 #ced4da, 12px 12px 0 #ced4da, 15px 12px 0 #ced4da, 18px 12px 0 #ced4da,
        /* Row 12 - body/foot */
        -15px 15px 0 #ced4da, -12px 15px 0 #ced4da, -9px 15px 0 #ced4da, -6px 15px 0 #ced4da, -3px 15px 0 #ced4da, 0px 15px 0 #ced4da, 3px 15px 0 #ced4da, 6px 15px 0 #ced4da, 9px 15px 0 #ced4da, 12px 15px 0 #ced4da, 15px 15px 0 #ced4da !important;
}

abbr {
    font-size: 85%;
    font-weight: bold;
    color: var(--gray-600);
    text-transform: uppercase;
}

abbr[title] {
    cursor: help;
    border-bottom: 1px dotted var(--border-color);
}

/*
 * BLOCKQUOTE VARIANTS
 * ===================
 * Default: Green (matches site accent)
 *
 * Usage in markdown:
 *   > Quote text here              ← default green
 *   {:.bq-blue}                    ← add class after for variants
 *
 * With author attribution:
 *   > Quote text here
 *   > <cite>— Author Name</cite>
 *
 * Available variants:
 *   (default)  - Green   - Standard quotes
 *   .bq-blue   - Blue    - Tech/product quotes
 *   .bq-orange - Orange  - Motivational/energy
 *   .bq-gray   - Gray    - Neutral/subtle
 *   .bq-red    - Red     - Warning/important
 */

/* Base blockquote */
blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--anthropic-link);
    background: rgba(81, 117, 63, 0.06);
    color: #6b8f5a;
    font-style: italic;
    font-family: var(--body-font);
    font-size: 1em;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9em;
    color: var(--anthropic-link);
    font-style: normal;
    font-weight: 700;
}

/* Blue variant: .bq-blue */
blockquote.bq-blue {
    border-left-color: #228be6;
    background: rgba(34, 139, 230, 0.06);
}
blockquote.bq-blue cite {
    color: #228be6;
}

/* Orange variant: .bq-orange */
blockquote.bq-orange {
    border-left-color: #f59f00;
    background: rgba(245, 159, 0, 0.06);
}
blockquote.bq-orange cite {
    color: #c77c00;
}

/* Gray variant: .bq-gray */
blockquote.bq-gray {
    border-left-color: #868e96;
    background: rgba(134, 142, 150, 0.08);
}
blockquote.bq-gray cite {
    color: #5d636a;
}

/* Red variant: .bq-red */
blockquote.bq-red {
    border-left-color: #e6320e;
    background: rgba(230, 50, 14, 0.06);
}
blockquote.bq-red cite {
    color: #c92a0d;
}

figure {
    margin: 1.5rem 0;
    overflow: visible;
}

figure img,
figure img.large {
    margin-top: 0;
    margin-bottom: 0;
}

a[href^="#fn:"],
a[href^="#fnref:"] {
    display: inline-block;
    margin-left: 0.1rem;
    font-weight: bold;
}

.footnotes {
    margin-top: 2rem;
    font-size: 85%;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Code block base styles */
/* Code styles */
code,
pre {
    font-family: var(--code-font);
    color: var(--code-color);
    background: var(--code-bg);
    font-variant-ligatures: none;
    font-feature-settings: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-size: 0.9rem;
    color: var(--code-color);
    background-color: rgba(81, 117, 63, 0.08);
    padding: 0.15em 0.35em;
    border-radius: 3px;
    line-height: 1;
}

/* Remove background from code blocks (they have their own styling) */
pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

pre {
    display: block;
    margin: 0 0 var(--spacer-3);
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--code-color);
    font-family: var(--code-block-font);
}

/* Code block container */
.code-block-container {
    position: relative;
    margin: var(--spacer-2) 0;
    border-radius: 3px;
    overflow: hidden;
    background-color: rgba(81, 117, 63, 0.08);
}

.code-block-header {
    background-color: rgba(81, 117, 63, 0.14);
    padding: var(--spacer);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: none;
}

.header-text {
    font-family: var(--code-font);
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Code highlighting */
.highlight {
    padding: var(--spacer);
    margin: 0;
    background-color: transparent;
}

.highlight code {
    font-family: var(--code-block-font);
    font-size: 0.9rem;
    font-variant-ligatures: none;
    font-feature-settings: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media only screen and (max-width: 480px) {
    code,
    .highlight code {
        font-size: 0.8rem !important;
    }
}

.highlight .highlight {
    padding: 0;
}

.gist .markdown-body {
    padding: 15px !important;
}

.container-wider {
    max-width: 80rem;
    padding-inline: var(--spacer-2);
    margin-inline: auto;
}

header {
    padding: 0 0;
    background-color: var(--anthropic-brown);
    color: var(--gray-900) !important;
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

/* Removed gradient horizontal rule under header */

/* Breadcrumb navigation styling */
.breadcrumb {
    margin-bottom: var(--spacer-2);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--anthropic-link);
    text-decoration: underline;
}

@media only screen and (max-width: 480px) {
    header {
        margin-bottom: var(--spacer-1);
    }
}

footer {
    font-family: var(--body-font);
    color: var(--gray-600);
    bottom: 0;
    margin-top: var(--spacer-1);
    margin-bottom: var(--spacer-1);
}

.footer-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
    margin-top: 3rem; /* Add space between page content and footer image */
}

.footer-image-container picture {
    display: flex;
    justify-content: center;
}

.footer-image {
    max-width: 25%; /* Half-sized footer image */
    height: auto;
    pointer-events: none; /* Non-clickable */
    margin: 0 auto;
    padding: 0;
}

.copyright-text {
    font-family: var(--code-font);
    text-align: center;
    margin-top: var(--spacer-2);
    margin-bottom: var(--spacer-1);
    color: var(--gray-700);
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .copyright-text {
        max-width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
}
h4.masthead-title {
    padding-top: var(--spacer-2);
    padding-bottom: var(--spacer-2);
    margin-bottom: 0;
    margin-top: 0;
}

h4.masthead-title a {
    text-decoration: none;
    font-family: var(--code-font);
    color: var(--gray-850);
    font-weight: normal;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

h4.masthead-title a .text-grey {
    color: var(--gray-600);
    transition: color 0.3s ease;
}

h4.masthead-title a:hover .text-grey {
    color: var(--gray-850);
}

/* Style for the small links in the masthead */
h4.masthead-title .small a {
    font-family: var(--code-font);
    color: var(--gray-850);
    font-weight: normal;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover effect for masthead title */
h4.masthead-title > a:hover {
    color: var(--anthropic-link);
}

/* Individual nav link hover colors - pastel palette */
h4.masthead-title .small a:nth-of-type(1):hover {
    color: #6b8f5a; /* Sage green - Notes */
}

h4.masthead-title .small a:nth-of-type(2):hover {
    color: #c4837a; /* Dusty rose - Talks */
}

h4.masthead-title .small a:nth-of-type(3):hover {
    color: #9b7bb8; /* Lavender - User manual */
}

h4.masthead-title .small a:nth-of-type(4):hover {
    color: #b59858; /* Warm gold - Stuff */
}

h4.masthead-title .small a:nth-of-type(5):hover,
h4.masthead-title .small a.nav-ama:hover {
    color: var(--coral); /* Coral - AMA */
}

/* Nav separator - 3x3px grey square */
.nav-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    background-color: #ced4da;
    margin: 0 0.35em;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Remove underline on hover */
h4.masthead-title a:hover,
h4.masthead-title .small a:hover {
    text-decoration: none;
}

/* Underline effect on hover */
h4.masthead-title a::after,
h4.masthead-title .small a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--gray-600);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

h4.masthead-title a:hover::after,
h4.masthead-title .small a:hover::after {
    visibility: visible;
    transform: scaleX(1);
}

.page li + li,
.post li + li {
    margin-top: 0.25rem;
}

.page-title,
.post-title {
    color: var(--heading-color);
}

.page-title,
.post-title {
    margin-top: var(--spacer-2);
    margin-bottom: var(--spacer-2half);
}


/*Video embeds*/
video.large {
    display: block;
    width: calc(100vw - 3rem); /* Extend to viewport edges with 1.5rem margin on each side */
    max-width: min(120rem, 1920px); /* Limit expansion on very large screens - 1920px max */
    height: auto; /* Maintain aspect ratio */
    min-height: 200px; /* Prevent white box collapse */
    margin-left: calc(50% - 50vw + 1.5rem); /* Break out of container, add margin */
    margin-right: calc(50% - 50vw + 1.5rem);
    margin-top: var(--spacer-2half);
    margin-bottom: var(--spacer-2half);
    border-radius: var(--border-radius);
    object-fit: contain;
    background-color: var(--gray-200); /* Show background while loading */
    aspect-ratio: 16 / 9; /* Default aspect ratio until video loads */
}

@media only screen and (max-width: 1280px) {
    video.large {
        /* Keep same styling on smaller screens */
    }
}

@media only screen and (max-width: 480px) {
    video.large {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: var(--spacer-2);
        margin-bottom: var(--spacer-2);
        padding: 0;
        box-sizing: border-box;
    }
}

/* YouTube embed with large class styling */
.youtube-embed-large {
    display: block;
    width: calc(100vw - 3rem); /* Extend to viewport edges with 1.5rem margin on each side */
    max-width: min(120rem, 1920px); /* Limit expansion on very large screens - 1920px max */
    margin-left: calc(50% - 50vw + 1.5rem); /* Break out of container, add margin */
    margin-right: calc(50% - 50vw + 1.5rem);
    margin-top: var(--spacer-2half);
    margin-bottom: var(--spacer-2half);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
}

.youtube-embed-large iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media only screen and (max-width: 480px) {
    .youtube-embed-large {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: var(--spacer-2);
        margin-bottom: var(--spacer-2);
    }
}

/*Video embeds*/
.video {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-top: var(--spacer-2half);
    margin-bottom: var(--spacer-2half);
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

@media only screen and (max-width: 1280px) {
    .video {
        width: 100vw;
        max-width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media only screen and (max-width: 480px) {
    .video {
        width: 100vw;
        max-width: 100vw;
        margin: var(--spacer-2) 0;
        padding: 0;
        padding-bottom: 56.25%;
        box-sizing: border-box;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Portfolio project page styles */
img.portfolio-image {
    margin-top: 0rem !important;
    margin-bottom: 0rem !important;
}

section.project-intro {
    display: flex;
    margin: 0 auto;
    clear: none;
    word-wrap: break-word;
}
.project-details {
    width: 60%;
    padding-right: 2rem;
    vertical-align: top;
    float: left;
}
.project-details p {
    margin-bottom: 0.5rem !important;
}
.project-thumbnail {
    width: 40%;
    padding-left: 2rem;
    vertical-align: top;
    float: right;
}

/* Accessibility */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Share Section */
.share-card {
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
    padding: 1.25rem 0;
    margin: 2rem 0;
}

.share-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.share-card h4 {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.25em;
}

.share-card button {
    font-family: var(--code-font);
    font-weight: normal;
    text-transform: uppercase;
}

/* Copy Link Button */
.copy-link-container {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    position: relative;
    z-index: 1;
}

.copy-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: var(--gray-850);
    color: white;
    font-family: var(--code-font);
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-link-button:hover {
    opacity: 0.9;
}

.copy-link-button.copied {
    opacity: 0.8;
}

/* High contrast mode */
@media (forced-colors: active) {
    * {
        border-color: currentColor;
    }
}


/* Portfolio Page Styles - Scoped to avoid affecting other pages */
.portfolio-page {
    max-width: 100%;
    margin-bottom: 4rem;
}

/* Horizontal Company Navigation */
.company-nav {
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.company-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.company-nav-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.company-nav-item {
    display: inline-block;
    color: var(--gray-700);
    background-color: var(--gray-100);
    border-radius: 2rem;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.company-nav-item:hover {
    color: var(--anthropic-link);
    background-color: var(--gray-200);
    text-decoration: none;
}

.company-nav-item.active {
    color: var(--anthropic-link);
    background-color: var(--gray-200);
    font-weight: 500;
}

.company-nav-name {
    font-weight: 700;
    color: var(--gray-800);
}

.company-nav-years {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-left: 0.25rem;
}

.portfolio-page .portfolio-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0 0.5rem 0;
    flex-wrap: nowrap;
}

.portfolio-page .company-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 1.5rem;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
}

@media (max-width: 768px) {
    .portfolio-page {
        overflow-x: hidden;
    }
    /* Removed portfolio header responsive styles to maintain desktop alignment on mobile */
}

.portfolio-page .company-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0;
}

.portfolio-page .placeholder-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gray-700);
    background-color: var(--gray-200);
}

.portfolio-page .company-info {
    flex-grow: 1;
    min-width: 0; /* Allows text to truncate if needed */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.portfolio-page .company-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.8em;
    line-height: 1.3;
    font-weight: 700;
    color: var(--heading-color);
}

@media (max-width: 768px) {
    .portfolio-page .company-name {
        margin-bottom: 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.portfolio-page .company-role {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 500;
}

@media (max-width: 768px) {
    .portfolio-page .company-role {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.portfolio-page .portfolio-separator {
    margin-top: 1rem;
    border: none;
    height: 1px;
    background-color: var(--gray-300);
}

.portfolio-page .portfolio-content {
    margin-top: 2rem;
    max-width: 100%;
}

.portfolio-page .portfolio-content h2 {
    color: var(--heading-color);
}

.portfolio-page .portfolio-content h3 {
    color: var(--heading-color);
}

.portfolio-page .portfolio-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-page .portfolio-content ul, 
.portfolio-page .portfolio-content ol {
    margin-bottom: 2rem;
    padding-left: 0;
}

.portfolio-page .portfolio-content li {
    margin-bottom: 0.75rem;
}

.portfolio-page .portfolio-content img {
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-page .portfolio-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

.portfolio-page .portfolio-nav {
    display: flex;
    justify-content: flex-start;
}

.portfolio-page .portfolio-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--gray-700);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portfolio-page .portfolio-back-link:hover {
    color: var(--anthropic-link);
    text-decoration: none;
}

/* Portfolio Grid for Index Page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.portfolio-preview {
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.company-logo-small {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 1rem;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.placeholder-logo-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gray-700);
    background-color: var(--gray-200);
}

.company-info-small {
    flex-grow: 1;
}

.company-name-small {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.company-years-small {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Removed mobile-specific portfolio header styles to maintain desktop layout on mobile */

/* Remove dark mode for now */

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    abbr[title]::after {
        content: " (" attr(title) ")";
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Optimize images - height auto only, width handled earlier */
img {
    height: auto;
}

.homepage-hero {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem auto;
    display: block;
    object-fit: contain;
    background-color: #f0f0f0; /* Placeholder color while loading */
}

.full-width {
    display: flex;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.one-third {
    float: auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.one-third:first-child {
    padding-left: 0rem !important;
}
.one-third:last-child {
    padding-right: 0rem !important;
}

.one-half {
    float: auto;
    width: 50%;
    padding-left: 3rem;
    padding-right: 3rem;
}
.one-half:first-child {
    padding-left: 0rem !important;
}
.one-half:last-child {
    padding-right: 0rem !important;
}

h5.project-subtitle {
    margin-top: 0rem;
}
h5.smaller-header {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.post-title-list-items a,
.also-read a {
    font-family: var(--header-font);
    font-size: var(--body-font-size);
    line-height: 1.35;
    color: var(--link-color);
    text-decoration: underline;
    font-weight: bold;
}

/* Base ordered list styles */
ol {
    padding-left: 0;
    margin-top: var(--spacer-2);
    margin-bottom: var(--spacer-2);
    counter-reset: item;
}

ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: var(--spacer);
    list-style: none;
    counter-increment: item;
}

ol li::before {
    content: counter(item);
    position: absolute;
    left: -0.25rem;
    top: 0.25rem;
    color: var(--gray-900); /* Black number/text */
    font-weight: normal;
    background-color: var(--gray-200); /* Light grey background */
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Nested lists within ordered lists should use arrows */
ol ul {
    margin-top: var(--spacer);
    margin-bottom: var(--spacer);
    padding-left: 0;
    list-style: none;
}

ol ul li {
    counter-increment: none;
}

ol ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.9rem;
    height: 0.9rem;
    background-color: var(--anthropic-link);
    -webkit-mask-image: url('/https/hvpandya.com/assets/arrow-right.svg');
    mask-image: url('/https/hvpandya.com/assets/arrow-right.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Also Read section */
.also-read {
    margin: var(--spacer-3) 0;
}

.also-read > h3 {
    margin-bottom: var(--spacer-2);
    font-size: 1.25em;
}


/* Generic link list for consistent spacing */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.75rem 0;
}

.link-list p {
    margin: 0;
}

.post-suggestion {
    color: var(--link-color);
    text-decoration: underline;
    font-weight: bold;
    font-size: var(--body-font-size);
    line-height: 1.35;
}

.post-suggestion:hover {
    color: var(--link-hover-color);
}

.post-suggestion:last-child {
    margin-bottom: 0;
}

.post hr {
    margin: var(--spacer-2half) 0;
    border: 0;
}


/* Special styling for Atlassian, Google, Google Cloud, and Unacademy logos */
.company-icon:nth-child(1) .company-icon-image,
.company-icon:nth-child(3) .company-icon-image,
.company-icon:nth-child(4) .company-icon-image,
.company-icon:nth-child(5) .company-icon-image {
    background-color: white;
    /* Border is already set in the main .company-icon-image style */
}

/* Special styling for Airlearn logo */
.company-icon:nth-child(2) .company-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.company-icon:hover .company-icon-image {
    transform: translateY(-3px);
    border: 2px solid var(--gray-500);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.45), 0 10px 20px rgba(17, 24, 39, 0.3);
}

.company-icon-image img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Make Google, Google Cloud, and Unacademy logos larger */
.company-icon:nth-child(3) .company-icon-image img,
.company-icon:nth-child(4) .company-icon-image img,
.company-icon:nth-child(5) .company-icon-image img {
    width: 56px;
    height: 56px;
}

.company-icon-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    text-align: left;
    margin: 0.5rem 0 0 0;
    width: 100%;
}

@media (max-width: 768px) {
    .company-icon-grid {
        grid-template-columns: repeat(5, 70px);
        gap: 0.75rem;
        justify-content: start;
    }
    
    .company-icon-image {
        width: 70px;
        height: 70px;
    }
    
    .company-icon {
        width: 70px;
    }
}

@media (max-width: 480px) {
    .company-icon-grid {
        grid-template-columns: repeat(5, 60px);
        gap: 0.5rem;
        justify-content: start;
    }
    
    .company-icon {
        width: 60px;
    }
    
    .company-icon-image {
        width: 60px;
        height: 60px;
    }
}

/* iOS status bar color */
meta[name="theme-color"] {
    content: "#f4f2ee";
}

/* Work Qualities Styles */
.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.quality-card {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quality-card h3 {
    color: var(--anthropic-link);
    margin-bottom: 1rem;
}

.quality-card p {
    color: var(--gray-700);
    margin-bottom: 0;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--anthropic-brown);
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: default;
    opacity: 0;
    transform: scale(0.995);
}

.modal.active .modal-content {
    animation: bounceIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal.closing {
    opacity: 0;
}

.modal.closing .modal-content {
    transform: scale(0.98);
    opacity: 0;
}

.modal-title {
    color: var(--anthropic-link);
    margin-bottom: 1.5rem;
}

.modal-body {
    color: var(--gray-800);
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
}

/* Mobile Styles */
@media only screen and (max-width: 480px) {
    .qualities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quality-card {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

.work-qualities-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.work-qualities-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.work-qualities-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.9rem;
    height: 0.9rem;
    background-color: var(--anthropic-link);
    -webkit-mask-image: url('/https/hvpandya.com/assets/arrow-right.svg');
    mask-image: url('/https/hvpandya.com/assets/arrow-right.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.quality-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.quality-link:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}


/* Image wrapper styles */
figure.image-large-wrapper,
figure.twitter-image-wrapper {
    padding: 16px;
    margin-top: var(--spacer-2half);
    margin-bottom: var(--spacer-2half);
    box-sizing: border-box;
}

/* Specific styles for large image wrapper - flush edge to edge within page */
figure.image-large-wrapper {
    width: calc(100vw - 2rem - 4rem); /* viewport - page margin (2rem) - page padding (4rem) */
    max-width: none;
    margin-left: calc(50% - (50vw - 1rem - 2rem)); /* Break out of container to page edges */
    margin-right: calc(50% - (50vw - 1rem - 2rem));
    background-color: #edf3e9;
}

@media (max-width: 768px) {
    figure.image-large-wrapper {
        width: calc(100vw - 1rem - 2rem); /* viewport - page margin (1rem) - page padding (2rem) */
        margin-left: calc(50% - (50vw - 0.5rem - 1rem));
        margin-right: calc(50% - (50vw - 0.5rem - 1rem));
    }
}

figure.image-large-wrapper img {
    margin: 0;
    width: 100%;
}

figure.image-large-wrapper figcaption {
    margin: 1rem auto 0;
    font-family: var(--code-font);
    color: var(--anthropic-link);
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: normal;
}

/* Specific styles for twitter image wrapper */
figure.twitter-image-wrapper {
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(29, 161, 242, 0.1);
}

figure.twitter-image-wrapper img {
    margin: 0;
    width: 100%;
}

figure.twitter-image-wrapper figcaption {
    margin: 1rem auto 0;
    font-family: var(--code-font);
    color: rgb(29, 161, 242);
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: normal;
}

/* Handle consecutive wrappers */
figure.image-large-wrapper + figure.image-large-wrapper,
figure.twitter-image-wrapper + figure.twitter-image-wrapper,
figure.image-large-wrapper + figure.twitter-image-wrapper,
figure.twitter-image-wrapper + figure.image-large-wrapper {
    margin-top: -8px;
    padding-top: 0;
}

/* Mobile adjustments for wrappers */
@media only screen and (max-width: 480px) {
    figure.image-large-wrapper,
    figure.twitter-image-wrapper {
        padding: 8px;
    }

    figure.image-large-wrapper + figure.image-large-wrapper,
    figure.twitter-image-wrapper + figure.twitter-image-wrapper,
    figure.image-large-wrapper + figure.twitter-image-wrapper,
    figure.twitter-image-wrapper + figure.image-large-wrapper {
        margin-top: -8px;
        padding-top: 0;
    }

    figure.image-large-wrapper figcaption,
    figure.twitter-image-wrapper figcaption {
        font-size: 11px;
        margin: 0.5rem auto 0;
    }
}

.table-top-aligned td {
    vertical-align: top !important;
}

/* Hide canvas link on mobile devices */
@media only screen and (max-width: 768px) {
    .masthead-title a[href="/https/hvpandya.com/canvas"] {
        display: none !important;
    }
    
    /* Hide the separator after canvas link on mobile */
    .masthead-title a[href="/https/hvpandya.com/canvas"] + span {
        display: none !important;
    }
}

/* Table of Contents Styling */
.toc {
    margin: 2rem 0;
}

.toc h3 {
    margin: 0 0 1rem 0;
    color: var(--gray-900);
    font-weight: bold;
}

.toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
}

.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
}

.toc li {
    margin: 0.25rem 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
}

.toc a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--gray-700);
    text-decoration: underline;
}

.toc li::before {
    display: none;
}

/* ==========================================================================
   POST TAGS/LOZENGES SYSTEM
   Japanese-inspired color palette (Ai, Kohaku, Matcha, Shu, Fuji, Sakura)
   To remove: delete this section and remove `tags: [...]` from post frontmatter
   ========================================================================== */

/* ==========================================================================
   Button Styles
   ========================================================================== */

/* Base button styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--code-font);
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Primary button - solid dark background */
.btn-primary {
    background: var(--gray-850);
    color: white;
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Secondary button - soft grey background */
.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-850);
    border: none;
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* Button spacing within post lists */
.post-title-list .btn {
    margin-top: 0.5rem;
}

/* Base lozenge styles */
.post-lozenges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-lozenge {
    display: inline-block;
    font-family: var(--code-font);
    font-size: 0.7rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    background-color: rgba(92, 128, 88, 0.15);
    color: var(--matcha);
    white-space: nowrap;
}

/* Container for multiple lozenges */
.post-lozenges-inline {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* Tag colors - Japanese palette */
.post-lozenge[data-tag="leadership"] {                    /* 藍 Ai - Indigo */
    background-color: rgba(48, 76, 112, 0.12);
    color: var(--indigo);
}

.post-lozenge[data-tag="career"] {                        /* 琥珀 Kohaku - Amber */
    background-color: rgba(184, 138, 72, 0.15);
    color: var(--kohaku);
}

.post-lozenge[data-tag="design"] {                        /* 抹茶 Matcha - Tea green */
    background-color: rgba(92, 128, 88, 0.15);
    color: var(--matcha);
}

.post-lozenge[data-tag="product"] {                       /* 朱 Shu - Vermillion */
    background-color: rgba(188, 92, 72, 0.12);
    color: var(--vermillion);
}

.post-lozenge[data-tag="observations"] {                  /* 藤 Fuji - Wisteria */
    background-color: rgba(138, 112, 158, 0.15);
    color: var(--wisteria);
}

.post-lozenge[data-tag="ai-experiments"] {                /* 桜 Sakura - Cherry blossom */
    background-color: rgba(198, 132, 142, 0.15);
    color: var(--sakura);
}

.post-lozenge[data-tag="life"] {                          /* 茜 Akane - Madder red */
    background-color: rgba(168, 100, 96, 0.15);
    color: var(--madder);
}

.post-lozenge[data-tag="travel"] {                        /* 縹 Hanada - Blue */
    background-color: rgba(72, 128, 152, 0.15);
    color: var(--hanada);
}

/* Meta lozenges container (tags + reactions on /notes) */
.post-meta-lozenges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Reaction count lozenge */
.reaction-count-lozenge {
    display: none;
    font-family: var(--code-font);
    font-size: 0.7rem;
    font-weight: normal;
    line-height: 1.2;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    background-color: rgba(156, 163, 175, 0.15);
    color: #6b7280;
    white-space: nowrap;
}

.reaction-count-lozenge.has-reactions {
    display: inline-block;
}

/* Gold styling for top 10% (viral tier) posts */
.reaction-count-lozenge.viral-tier {
    background-color: rgba(184, 138, 72, 0.18) !important;
    color: #785a26 !important; /* Darkened from #8a6830 for WCAG AA contrast */
}

/* Loading state for reaction lozenges */
.reaction-count-lozenge.loading {
    /* Fixed dimensions to prevent layout shift during animation */
    /* Height = (font-size 0.7rem × line-height 1.2) + (padding 0.25rem × 2) */
    min-width: 3rem;
    min-height: calc(0.7rem * 1.2 + 0.5rem);
    position: relative;
}

.loading-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Three 2x2 square dots */
.loading-dots::after {
    content: '';
    display: block;
    width: 2px;
    height: 2px;
    background-color: currentColor;
    box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor;
    animation: loadingDotsPulse 1s ease-in-out infinite;
}

@keyframes loadingDotsPulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.5; }
}

/* Hide tag lozenges on mobile, keep reaction counts */
@media (max-width: 768px) {
    .post-lozenges-inline {
        display: none;
    }
}

/* ==========================================================================
   TOOLTIP COMPONENT
   Base tooltip styles shared across all tooltip variants.
   ========================================================================== */

.tooltip {
    position: fixed;
    background: #000000;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--code-font);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Arrow base - just sets up the pseudo-element */
.tooltip::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}

.tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Arrow direction modifiers */
.tooltip--arrow-bottom::after { /* Arrow points down, tooltip above target */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--tooltip-bg, #000000);
}

.tooltip--arrow-top::after { /* Arrow points up, tooltip below target */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--tooltip-bg, #000000);
}

.tooltip--arrow-left::after { /* Arrow points left, tooltip right of target */
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-right-color: var(--tooltip-bg, #000000);
}

.tooltip--arrow-right::after { /* Arrow points right, tooltip left of target */
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-left-color: var(--tooltip-bg, #000000);
}


/* Speech bubble variant (floating, colored) */
.tooltip--speech {
    position: absolute;
    --tooltip-bg: rgba(107, 143, 90, 0.15);
    background: var(--tooltip-bg);
    color: #6b8f5a;
    font-weight: normal;
    box-shadow: none;
    opacity: 1;
    animation: tooltip-float 3s ease-in-out infinite;
}

@keyframes tooltip-float {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 6px)); }
}

/* ==========================================================================
   END POST TAGS/LOZENGES SYSTEM
   ========================================================================== */

.atlassian-with-logo {
    white-space: nowrap;
}

.atlassian-with-logo::before {
    content: '{';
    color: var(--gray-500);
    font-weight: normal;
    margin-right: 0.25em;
}

.atlassian-with-logo::after {
    content: '}';
    color: var(--gray-500);
    font-weight: normal;
    margin-left: 0.25em;
}

.atlassian-with-logo img.atlassian-logo {
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    margin: 0 0.2em 0 0;
    vertical-align: baseline;
    position: relative;
    top: 0.05em;
}






/* ===========================================
   POST TITLE LINKS - DEFINITIVE OVERRIDE
   All post title links must be body font size and bold
   =========================================== */
/* Post list item font sizes */
h3.post-title-list-items,
h3.post-title-list-items a,
h3.post-title-list-items b {
    font-size: 17px !important;
    font-weight: bold !important;
    line-height: 1.55 !important;
}

@media only screen and (min-width: 1280px) {
    h3.post-title-list-items,
    h3.post-title-list-items a,
    h3.post-title-list-items b {
        font-size: 18px !important;
    }
}

@media only screen and (min-width: 1470px) {
    h3.post-title-list-items,
    h3.post-title-list-items a,
    h3.post-title-list-items b {
        font-size: 19px !important;
    }
}

@media only screen and (min-width: 1920px) {
    h3.post-title-list-items,
    h3.post-title-list-items a,
    h3.post-title-list-items b {
        font-size: 20px !important;
    }
}
