/* The Google search-result snippet preview. */ /* Split out of admin.css (#533). Loaded from admin.css in a fixed order — later sheets override earlier ones, so the order there is the cascade. */ /* ── Google Search Result Snippet Preview ────────────────────── */ .google-snippet-preview { background: var(--admin-bg-raised); border: 1px solid var(--admin-border); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; } .google-snippet-header { font-size: 0.8rem; font-weight: 600; color: var(--admin-text-muted); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; } .google-snippet-card { background: #ffffff; border-radius: 8px; padding: 1rem 1.25rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); font-family: Arial, sans-serif; color: #202124; } .google-snippet-url { font-size: 0.78rem; color: #202124; margin-bottom: 0.2rem; word-break: break-all; } .google-snippet-arrow { font-size: 0.6rem; color: #5f6368; } .google-snippet-title { font-size: 1.15rem; font-weight: 400; color: #1a0dab; line-height: 1.3; margin-bottom: 0.25rem; cursor: pointer; } .google-snippet-title:hover { text-decoration: underline; } .google-snippet-desc { font-size: 0.85rem; color: #4d5156; line-height: 1.4; word-break: break-word; } /* Aspect Ratio Mini Preview Box */ .ratio-card-preview { width: 100%; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: var(--admin-bg-elevated); border-bottom: 1px solid var(--admin-border); } .mini-aspect-box { width: 44px; height: 44px; border: 2px dashed var(--admin-accent); border-radius: 4px; display: flex; align-items: center; justify-content: center; } .mini-aspect-box.ratio-1 { width: 34px; height: 34px; } .mini-aspect-box.ratio-3-2 { width: 46px; height: 30px; } .mini-aspect-box.ratio-2-3 { width: 30px; height: 44px; } .mini-aspect-box.ratio-16-9 { width: 50px; height: 28px; } .mini-aspect-box.ratio-auto { width: 42px; height: 32px; border-style: solid; } .mini-aspect-inner { width: 100%; height: 100%; background: var(--admin-accent); opacity: 0.2; } /* Grid Layout Mini Demos */ /* * Same framing as .ratio-card-preview. Without an explicit box here the demos * (which size themselves with height: 100%) collapse to zero height. */ .grid-card-preview { width: 100%; aspect-ratio: 16 / 10; background: var(--admin-bg-elevated); border-bottom: 1px solid var(--admin-border); overflow: hidden; } .mini-layout-demo { width: 100%; height: 100%; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.25rem; } .demo-masonry-col-group { display: flex; gap: 0.25rem; height: 100%; width: 100%; } .demo-col { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; } .demo-tile { background: var(--admin-text-secondary); opacity: 0.35; border-radius: 2px; flex: 1; transition: background 0.15s ease, opacity 0.15s ease; } /* The selected layout tints its diagram with the accent colour. */ .preset-card.active .demo-tile { background: var(--admin-accent); opacity: 0.55; } .demo-tile.h-high { flex: 2; } .demo-tile.h-low { flex: 1; } .demo-tile.h-med { flex: 1.5; } .demo-uniform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; height: 100%; } .demo-showcase-grid { display: flex; gap: 0.25rem; height: 100%; } /* Deliberately NOT named .hero-tile — that class belongs to the page builder * and its `aspect-ratio` would leak into this demo. */ .demo-tile.demo-hero { flex: 2; } .demo-filmstrip-row { display: flex; gap: 0.25rem; height: 100%; align-items: center; } /* A band of wide tiles running off the right edge — the horizontal scroll hint * that separates this demo from the uniform grid. */ .demo-tile.strip { width: 46%; height: 62%; flex-shrink: 0; } .demo-editorial-flow { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; } .demo-tile.wide { width: 100%; height: 45%; } .demo-row { display: flex; gap: 0.25rem; flex: 1; }