/* Yantrabodha — Reddit-style layout */ :root { --font-sans: "DM Sans", system-ui, -apple-system, sans-serif; --font-display: "Fraunces", var(--font-sans); --primary: #4f46e5; --primary-hover: #4338ca; --primary-light: #eef2ff; --accent: #6366f1; --accent-secondary: #0d9488; --accent-secondary-muted: #ccfbf1; --accent-orange: #ff4500; --accent-orange-muted: #ff6b35; --border: #e2e8f0; --border-strong: #cbd5e1; --text: #0f172a; --text-muted: #475569; --text-light: #64748b; --bg: #f1f5f9; --bg-card: #ffffff; --shadow: 0 1px 3px rgba(0, 0, 0, 0.08); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08); --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04); --shadow-focus: 0 0 0 3px var(--primary-light); --radius: 12px; --radius-sm: 8px; --radius-input: 8px; --radius-full: 9999px; --sidebar-left-width: 240px; --sidebar-right-width: 300px; --top-bar-height: 56px; } *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; } body { font-family: var(--font-sans); color: var(--text); background: var(--bg); margin: 0; padding: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; /* Safe area for notched devices */ padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); } /* ——— App layout: top bar + three columns ——— */ .app-layout { display: grid; grid-template-columns: var(--sidebar-left-width) 1fr var(--sidebar-right-width); grid-template-rows: var(--top-bar-height) minmax(0, 1fr); grid-template-areas: "topbar topbar topbar" "left main right"; height: 100vh; max-height: 100vh; overflow: hidden; } .top-bar { grid-area: topbar; display: flex; align-items: center; gap: 1rem; padding: 0 1rem; padding-top: env(safe-area-inset-top); background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); } .top-bar-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0; position: relative; z-index: 1; } .top-bar-logo:hover { color: var(--primary-hover); } .top-bar-menu-btn { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; width: 44px; height: 44px; padding: 0; background: none; border: none; border-radius: var(--radius-sm); cursor: pointer; color: var(--text); -webkit-tap-highlight-color: transparent; position: relative; z-index: 1; } .top-bar-menu-btn:hover { background: var(--bg); } .menu-icon { display: block; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; } .top-bar-search { position: absolute; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: flex; align-items: center; box-sizing: border-box; padding: 0 0.5rem; z-index: 0; } .top-bar-search input, .top-bar-search .search-input-with-icon { width: 100%; padding: 0.5rem 1rem 0.5rem 2.5rem; font-size: 0.9375rem; font-family: inherit; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--bg); transition: border-color 0.15s, box-shadow 0.15s; } .top-bar-search input:focus, .top-bar-search .search-input-with-icon:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-focus); } .top-bar-search input.search-input-with-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 0.75rem center; background-size: 1.125rem; padding-left: 2.5rem; } .top-bar-auth { flex-shrink: 0; margin-left: auto; position: relative; z-index: 1; } /* ——— Left sidebar ——— */ .left-sidebar { grid-area: left; background: var(--bg-card); border-right: 1px solid var(--border); overflow-y: auto; overflow-x: hidden; padding: 1rem 0; min-height: 0; /* allow grid item to shrink and scroll */ display: flex; flex-direction: column; } .sidebar-auth-mobile { display: none; margin-top: auto; padding: 1rem 1rem 0; border-top: 1px solid var(--border); } .sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.5rem; } .sidebar-nav-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; } .sidebar-nav-item:hover { background: var(--bg); color: var(--text); } .sidebar-nav-item.active { background: var(--primary-light); color: var(--primary); } .sidebar-nav-icon { font-size: 1.1rem; line-height: 1; } .sidebar-filters { padding: 0 1rem; border-top: 1px solid var(--border); padding-top: 1rem; } .sidebar-filters-title { margin: 0 0 0.75rem 0; font-size: 0.7rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; } .sidebar-filter-label { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; } .sidebar-filter-label:last-child { margin-bottom: 0; } .sidebar-filter-label select { padding: 0.5rem 0.75rem; font-size: 0.875rem; font-family: inherit; border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--bg-card); color: var(--text); cursor: pointer; width: 100%; } .sidebar-filter-label select:focus { outline: none; border-color: var(--primary); } /* ——— Main content ——— */ .main-content { grid-area: main; min-width: 0; min-height: 0; /* allow grid item to shrink and scroll */ overflow-y: auto; overflow-x: hidden; padding: 1.5rem; background: var(--bg); } .panel { display: none; } .panel.active { display: block; } .search-results-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; } .search-results-title { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--text); } /* ——— Right sidebar ——— */ .right-sidebar { grid-area: right; background: var(--bg-card); border-left: 1px solid var(--border); overflow-y: auto; overflow-x: hidden; padding: 1rem; min-height: 0; /* allow grid item to shrink and scroll */ } .sidebar-widget { background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); padding: 1rem; margin-bottom: 1rem; } .sidebar-widget:last-child { margin-bottom: 0; } .widget-title { margin: 0 0 0.75rem 0; font-size: 0.7rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; } .recent-tips-list { font-size: 0.875rem; } .recent-tips-loading, .recent-tips-empty { color: var(--text-light); font-size: 0.875rem; } .recent-tip-item { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; line-height: 1.35; transition: color 0.15s; } .recent-tip-item:last-child { border-bottom: none; } .recent-tip-item:hover { color: var(--primary); } .recent-tip-item .recent-tip-time { font-size: 0.75rem; color: var(--text-light); margin-left: 0.25rem; } .about-text { margin: 0 0 0.5rem 0; font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; } .about-tip-count { margin: 0; font-size: 0.8125rem; color: var(--text-light); font-weight: 500; } /* ——— Auth (top bar) ——— */ .auth-loggedin { display: flex; align-items: center; gap: 0.5rem; } .auth-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; } .auth-name { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); } .btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8125rem; } .signin-to-comment { margin: 0 0 0.5rem 0; font-size: 0.875rem; color: var(--text-light); } .auth-signin-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } .auth-sep { font-size: 0.75rem; color: var(--text-light); } body.auth-modal-open { overflow: hidden; height: 100%; } .auth-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: auto; } .auth-modal[hidden] { display: none !important; } .auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); } .auth-modal-box { position: relative; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.75rem 1.5rem; max-width: 360px; width: 100%; } .auth-modal-close { position: absolute; top: 0.6rem; right: 0.6rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); line-height: 1; padding: 0.25rem; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s; } .auth-modal-close:hover { color: var(--text); background: var(--bg); } .auth-modal-close:focus-visible { outline: none; box-shadow: var(--shadow-focus); } .auth-modal-title { margin: 0 0 1rem 0; font-size: 1.25rem; font-weight: 600; } .auth-form label { display: block; margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); } .auth-form input { display: block; width: 100%; margin-top: 0.25rem; padding: 0.55rem 0.85rem; font-size: 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-input); } .auth-form button[type="submit"] { margin-top: 0.5rem; } .auth-modal-switch { margin: 1rem 0 0 0; font-size: 0.875rem; color: var(--text-light); } .auth-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: inherit; font-weight: 500; text-decoration: underline; transition: color 0.15s; } .auth-link:hover { color: var(--primary-hover); } .auth-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; } .auth-modal-error { margin: 0.85rem 0 0 0; padding: 0.5rem 0; font-size: 0.875rem; color: #b91c1c; line-height: 1.4; } /* ——— Feed & panels ——— */ .feed { min-height: 140px; } .empty-state { text-align: center; padding: 4rem 2.5rem; background: var(--bg-card); border-radius: var(--radius); border: 2px dashed var(--border); box-shadow: var(--shadow); } .empty-icon { font-size: 3rem; margin-bottom: 1.25rem; opacity: 0.75; } .empty-title { font-size: 1.3rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; } .empty-text { color: var(--text-light); font-size: 0.9375rem; line-height: 1.5; } .search-empty { text-align: center; padding: 3rem 2rem; color: var(--text-light); font-size: 0.9375rem; background: var(--bg-card); border-radius: var(--radius); border: 2px dashed var(--border-strong); box-shadow: var(--shadow); } /* ——— Article cards ——— */ .article-card-wrapper { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); margin-bottom: 1.25rem; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow 0.2s ease, border-color 0.2s ease; } .article-card-wrapper:hover { box-shadow: var(--shadow-md); } .article-card-wrapper.card-compact { cursor: pointer; } .article-card-wrapper.card-compact:hover { border-color: var(--border-strong); } .card-html { padding: 0; } /* ——— Compact card (feed list) ——— */ .card-compact-inner { padding: 1rem 1.25rem; } .card-compact-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; } .card-compact-top .card-author-row { margin-bottom: 0; } .card-compact-meta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; } .card-compact-title { font-weight: 600; font-size: 1.1rem; color: var(--text); margin: 0 0 0.5rem 0; line-height: 1.35; } .card-compact-preview { font-size: 0.875rem; color: var(--text-muted); line-height: 1.45; margin: 0 0 0.5rem 0; } .card-compact-preview.article-body h1, .card-compact-preview.article-body h2, .card-compact-preview.article-body h3 { margin-top: 0.85rem; margin-bottom: 0.4rem; font-weight: 600; color: var(--text); } .card-compact-preview.article-body p { margin-bottom: 0.5rem; } .card-engagement { font-size: 0.8rem; color: var(--text-light); display: flex; align-items: center; gap: 0.35rem; } .card-engagement span:nth-child(odd) { color: var(--text-muted); } /* ——— Post detail panel ——— */ .post-detail-header { margin-bottom: 1rem; } .post-detail-article { margin-bottom: 1rem; } .post-detail-article .article-card-wrapper { margin-bottom: 0; } .article-card-inner { padding: 1.5rem 1.65rem; background: var(--bg-card); } .card-author-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; } .card-author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; } .card-author-avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-size: 0.875rem; font-weight: 600; } .card-author-meta { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; } .card-author-name { font-size: 0.875rem; font-weight: 600; color: var(--text); } .card-author-time { font-size: 0.75rem; color: var(--text-light); font-weight: 500; } .card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; } .type-badge { padding: 0.35rem 0.75rem; border-radius: var(--radius-input); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; } .card-lang { font-size: 0.75rem; color: var(--text-light); font-weight: 500; } .card-title { font-weight: 600; font-size: 1.2rem; color: var(--text); margin-bottom: 0.5rem; line-height: 1.35; } .article-body { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 0.75rem; } .article-body h1, .article-body h2, .article-body h3 { margin-top: 0.85rem; margin-bottom: 0.4rem; font-weight: 600; color: var(--text); } .article-body p { margin-bottom: 0.5rem; } .card-footer { font-size: 0.8rem; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border); } .card-tags { margin-top: 0.6rem; } .tag-pill { display: inline-block; background: var(--bg); color: var(--text-muted); padding: 0.3rem 0.65rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 500; margin-right: 0.4rem; margin-bottom: 0.3rem; transition: background 0.15s, color 0.15s; } .tag-pill:hover { background: var(--accent-secondary-muted); color: var(--accent-secondary); } .card-comments { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border); } .comments-header { font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; } .comment-line { font-size: 0.875rem; margin-bottom: 0.85rem; padding: 0.5rem 0; border-left: 2px solid var(--border); padding-left: 0.75rem; margin-left: 0.25rem; } .comment-line:last-child { margin-bottom: 0; } .comment-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; } .comment-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; } .comment-avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-muted); font-size: 0.7rem; font-weight: 600; } .comment-author { font-weight: 600; color: var(--text); } .comment-time { font-size: 0.75rem; color: var(--text-light); } .comment-line .comment-body { color: var(--text-muted); line-height: 1.5; } .show-all-comments { margin-top: 0.5rem; } .show-all-comments summary { color: var(--accent-orange-muted); font-size: 0.85rem; font-weight: 500; cursor: pointer; } .show-all-comments summary:hover { color: var(--accent-orange); text-decoration: underline; } .comment-list { margin-top: 0.5rem; } /* Comments list below comment box (post detail) — no dividers between comments */ .post-detail-comments-list { margin-top: 1.5rem; } .post-detail-comments-list .comments-section { margin: 0; } .post-detail-comments-list .comments-header { margin-bottom: 0.75rem; } .post-detail-comments-list .comments-thread { margin: 0; } .post-detail-comments-list .comment-line { margin-bottom: 1rem; padding: 0.6rem 0 0.6rem 0.75rem; border-left: 2px solid var(--border); margin-left: 0.25rem; border-bottom: none; } .post-detail-comments-list .comment-line:last-child { margin-bottom: 0; } .card-comment-row { padding: 1rem 0 0.5rem; } .comment-box-container { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); overflow: hidden; box-shadow: var(--shadow); } .comment-box-container .comment-input, .comment-box-textarea { width: 100%; padding: 1.25rem 0.75rem 0.5rem; font-size: 0.875rem; font-family: inherit; border: none; border-radius: 0; resize: vertical; min-height: 56px; background: var(--bg-card); display: block; box-sizing: border-box; } .comment-box-container .comment-input:focus, .comment-box-textarea:focus { outline: none; } .comment-box-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; background: var(--bg-card); } .comment-box-submit { margin: 0; } .comment-box-signin { padding: 1rem 1.25rem; } .comment-box-signin .signin-to-comment { margin: 0 0 0.75rem 0; } .comment-input { width: 100%; padding: 0.6rem 0.75rem; font-size: 0.9rem; font-family: inherit; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; resize: vertical; min-height: 64px; background: var(--bg-card); } .submit-comment-btn { margin-top: 0.25rem; } /* ——— Buttons ——— */ .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; font-weight: 600; font-family: inherit; border-radius: var(--radius-input); cursor: pointer; border: none; transition: background 0.2s ease, transform 0.05s ease, box-shadow 0.2s ease; } .btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); } .btn:active { transform: scale(0.98); } /* Minimum touch target for mobile */ .btn, .sidebar-nav-item, a.top-bar-logo, .recent-tip-item, .tag-pill { -webkit-tap-highlight-color: transparent; } @media (pointer: coarse) { .btn, .btn-sm { min-height: 44px; min-width: 44px; padding: 0.5rem 1rem; } .btn-sm { min-width: 44px; padding: 0.5rem 0.85rem; } .sidebar-nav-item { min-height: 44px; padding: 0.65rem 1rem; } .recent-tip-item { padding: 0.65rem 0; } } .btn.primary { background: var(--primary); color: white; box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2); } .btn.primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); } .btn.secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); } .btn.secondary:hover { background: var(--border); } /* ——— Messages ——— */ .message { margin: 0.85rem 0 0 0; font-size: 0.9rem; color: var(--text-muted); min-height: 1.5em; } /* ——— Submit panel ——— */ .submit-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; max-width: 720px; } .submit-form .group { margin-bottom: 1.5rem; } .submit-form label { display: block; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; } .submit-form input[type="text"], .submit-form textarea { width: 100%; padding: 0.65rem 0.85rem; font-size: 0.9rem; font-family: inherit; border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--bg-card); transition: border-color 0.15s, box-shadow 0.15s; } .submit-form textarea { resize: vertical; min-height: 140px; } .options-accordion { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: #f8fafc; } .options-accordion summary { cursor: pointer; font-weight: 600; color: var(--text-muted); font-size: 0.875rem; padding: 0.2rem 0; list-style: none; display: flex; align-items: center; gap: 0.5rem; } .options-accordion summary::-webkit-details-marker { display: none; } .options-accordion summary::before { content: "▾"; font-size: 0.7rem; transition: transform 0.2s ease; } .options-accordion[open] summary::before { transform: rotate(-180deg); } .options-accordion summary:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); } .options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-top: 1rem; } .options-grid label { margin-bottom: 0; text-transform: uppercase; letter-spacing: 0.04em; } .options-accordion .full-width { margin-top: 1rem; } #submit-btn { margin-top: 0.75rem; padding: 0.7rem 1.5rem; font-size: 0.95rem; font-weight: 600; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25); } .submit-message-wrap { min-height: 2.5rem; } .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; } /* ——— Responsive: collapse sidebars ——— */ @media (max-width: 1024px) { .app-layout { grid-template-columns: 1fr var(--sidebar-right-width); grid-template-areas: "topbar topbar" "main right"; } .left-sidebar { position: fixed; left: 0; top: calc(var(--top-bar-height) + env(safe-area-inset-top, 0px)); bottom: 0; width: var(--sidebar-left-width); padding-left: env(safe-area-inset-left, 0px); z-index: 90; transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: var(--shadow-lg); } .left-sidebar.is-open { transform: translateX(0); } .sidebar-overlay { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--top-bar-height) + env(safe-area-inset-top, 0px)); background: rgba(0, 0, 0, 0.35); z-index: 85; -webkit-tap-highlight-color: transparent; } .left-sidebar.is-open ~ .sidebar-overlay { display: block; } .top-bar-menu-btn { display: flex; } } @media (max-width: 768px) { .app-layout { grid-template-columns: 1fr; grid-template-areas: "topbar" "main"; } /* Hide "Yantrabodha" logo text in top bar on mobile */ .top-bar-logo .logo-text { display: none; } /* Hide top-bar logged-in auth on mobile (Sign out moves to left sidebar) */ .top-bar-auth #auth-loggedin { display: none !important; } .sidebar-auth-mobile.is-logged-in { display: block; } .right-sidebar { display: none; } .main-content { padding: 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); } .submit-layout { grid-template-columns: 1fr; } .top-bar-search { max-width: none; min-width: 0; } .auth-signin-row { flex-wrap: wrap; } /* Compact cards: stack meta and tighten padding */ .card-compact-inner { padding: 0.85rem 1rem; } .card-compact-top { flex-wrap: wrap; gap: 0.5rem; } .card-compact-title { font-size: 1rem; } .card-compact-preview { font-size: 0.8125rem; } .article-card-inner { padding: 1rem 1.15rem; } .search-results-header { flex-wrap: wrap; gap: 0.5rem; } .empty-state, .search-empty { padding: 2rem 1.25rem; } .auth-modal-box { margin: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; } .comment-box-container .comment-input, .comment-box-textarea { min-height: 80px; font-size: 16px; /* prevents zoom on focus on iOS */ } } @media (max-width: 480px) { .top-bar { padding: 0 0.5rem; gap: 0.5rem; } .top-bar-logo { font-size: 1.25rem; } .top-bar-search input, .top-bar-search .search-input-with-icon { font-size: 16px; /* prevents zoom on focus on iOS */ min-width: 0; } /* Auth: compact so buttons don’t overflow */ .auth-signin-row { gap: 0.35rem; } .auth-signin-row .btn-sm { font-size: 0.75rem; padding: 0.45rem 0.6rem; } .auth-loggedin { flex-wrap: wrap; gap: 0.35rem; } .auth-loggedin .auth-name { display: none; /* hide name on very small screens to save space */ } .auth-modal-box { margin: 0.5rem; padding: 1.25rem 1rem; } .main-content { padding: 0.75rem; } .card-compact-inner { padding: 0.75rem 0.85rem; } .options-grid { grid-template-columns: 1fr; } }