        /* CSS from random.css */
        
        /* FIX: Match main.css box-sizing to ensure consistent sizing between Canvas and Live Site */
        * {
            box-sizing: border-box;
        }

        :root {
            --main-color: #1A48EE;
            --secondary-color: #008AFF;
            --tertiary-color: #2c20E6;
            --secondary-background: #f9f9f9;
            --main-background: #e5f3ff;
            --tertiary-background: #e6e5ea;
            --color-white: #ffffff;
            --color-error-dark: #c53030;
            --border-color: #e2e8f0;
            --color-gray: #4a5568;
            --color-light-gray: #ccc;
            --color-very-light-gray: #e0e0e0;
        }
        body {
            font-family: 'Inter', Arial, Helvetica, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--secondary-background);
        }
        h1, h2 {
            width: 100%;
            display: inline-block;
            text-align: center;
            margin-top: 0;
            font-weight: 700;
        }
        h1 {
            margin-bottom: 1.5rem;
            font-size: 2.25rem;
            color: #1a202c;
        }
        h2 {
           color: var(--main-color);
        }
        .articlecontainer {
            margin: auto;
            max-width: 1200px !important; /* UPDATED: Increased from 800px to 1200px to allow book to expand */
            padding: 0 16px;
        }
        
        /* FIX: Removed margin-left: 0 !important to allow site layout to work correctly */
       
        /* Card styling */
        .card {
            background-color: var(--color-white);
            border-radius: 16px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            padding: 2.5rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
        }

        /* Form styling */
        form {
            border: none;
            padding: 0;
            margin: 0;
        }
        fieldset {
            border: none;
            padding: 0;
            margin: 0;
        }
        legend {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-gray);
            margin-bottom: 1.5rem;
            padding: 0;
            width: 100%;
            text-align: left;
        }

        .grid-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        @media (min-width: 768px) {
            .grid-container {
                grid-template-columns: repeat(2, 1fr);
            }
            /* Span full width for radio buttons on larger screens if needed */
            .full-width-grid {
                grid-column: 1 / -1;
            }
        }
        label {
            display: block;
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--color-gray);
            margin-bottom: 0.5rem;
        }
        input[type="number"] {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #cbd5e0;
            border-radius: 8px;
            box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            font-size: 1rem;
            font-family: 'Inter', Arial, Helvetica, sans-serif;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box; /* Ensure padding doesn't affect width */
        }
        input:focus {
            outline: none;
            border-color: var(--main-color);
            box-shadow: 0 0 0 4px rgba(26, 72, 238, 0.2);
        }

        /* Radio Button Styling */
        .radio-group {
            display: flex;
            gap: 1.5rem;
            margin-top: 0.5rem;
        }
        .radio-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
        }
        .radio-item input[type="radio"] {
            margin: 0;
            width: 1.2rem;
            height: 1.2rem;
            accent-color: var(--main-color);
            cursor: pointer;
        }
        .radio-item label {
            margin: 0;
            font-weight: 400;
            cursor: pointer;
            color: #1a202c;
        }

        .button-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        .generate-button {
            width: 100%;
            background-color: var(--main-color);
            color: var(--color-white);
            font-weight: 700;
            padding: 1rem 2.5rem;
            border: none;
            border-radius: 8px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            transition: transform 0.2s, box-shadow 0.2s;
            cursor: pointer;
            font-size: 1.1rem;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        }
        @media (min-width: 768px) {
            .generate-button {
                width: auto;
            }
        }
        .generate-button:hover, .generate-button:focus {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        .error-message {
            text-align: center;
            color: var(--color-error-dark);
            font-weight: 700;
            height: 1.5rem;
            margin-top: 1.5rem;
        }
        .results-container {
            margin-top: 2.5rem;
            text-align: center;
        }
        .results-container h2 {
            font-weight: 700;
        }
        .results-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        @keyframes book-pop-in {
            0% {
                opacity: 0;
                transform: translateY(20px) scale(0.9);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* SVG BOOK STYLING - UPDATED for Infinite Wrapping */
        .book-number {
            position: relative;
            
            /* CHANGED: inline-flex is easier for centering content than inline-block */
            display: inline-flex; 
            align-items: center;
            justify-content: center;
            
            /* Ensures it hugs content but allows growth */
            width: fit-content;
            
            /* Minimum size */
            min-width: 120px; 
            min-height: 120px; 
            
            /* Ensure it doesn't break the viewport */
            max-width: 100%;
            
            animation: book-pop-in 0.4s ease-out forwards;
            
            /* UPDATED: Compact padding for small numbers */
            box-sizing: content-box; 
            padding: 2.5rem 3rem;
        }
        
        /* NEW CLASS: For massive numbers that wrap, use larger padding */
        .book-number.large-book {
            padding: 5rem 6rem;
        }
        
        .book-number svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0; 
            min-width: 100%; /* Ensure SVG fills container */
            min-height: 100%;
        }

        .book-number svg path {
            fill: var(--main-color);
        }

        /* The number content */
        .book-number span {
            position: relative;
            z-index: 1;
            
            font-size: 2.5rem; 
            font-weight: bold;
            color: white;
            text-shadow: 0 2px 3px rgba(0,0,0,0.3);
            
            /* WRAPPING LOGIC */
            white-space: normal; 
            word-break: break-all;
            
            /* Wider limit for desktop to prevent early wrapping */
            max-width: 600px;
            
            text-align: center;
            line-height: 1.1; 
        }
        
        .content-section {
            line-height: 1.6;
            color: #2d3748;
        }
        .content-section p {
            margin-bottom: 1rem;
        }
        
        /* FAQ Styling */
        .faq-item {
            border-bottom: 1px solid var(--border-color);
            color: #2d3748;
        }
        .faq-item:last-child {
            border-bottom: none;
        }
        .faq-item summary {
            font-size: 1.1rem;
            font-weight: 700;
            padding: 1.5rem 0.5rem;
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .faq-item summary::-webkit-details-marker {
            display: none;
        }
        .faq-item summary::after {
            content: '+';
            font-size: 1.5rem;
            transition: transform 0.2s;
            color: var(--main-color);
        }
        .faq-item[open] summary::after {
            transform: rotate(45deg);
        }
        .faq-answer {
            padding: 0 0.5rem 1.5rem;
            line-height: 1.6;
        }
        
        /* Mobile-friendly adjustments */
        @media (max-width: 640px) {
            .articlecontainer {
                width: 100% !important; /* Ensure mobile uses full width */
                padding: 0 10px;
            }
            .card {
                padding: 1.5rem;
            }
            h1 {
                font-size: 1.75rem;
            }
            .book-number {
                min-width: 90px;
                min-height: 90px;
                padding: 2rem 2.5rem; /* Compact for mobile */
            }
            .book-number.large-book {
                padding: 3rem 3rem; /* Expanded for mobile massive numbers */
            }
            .book-number span {
                font-size: 1.8rem;
                /* Flexible max-width for mobile */
                max-width: 80vw;
            }
            .generate-button {
                padding: 0.75rem 1.5rem;
                font-size: 1rem;
            }
        }