/* Homepage (retro gazette). Every class is im- prefixed; see templates/website/page/index.html.twig */
:root {
    --paper: #fefdf3;
    --paper-2: #f3ede3;
    --halftone: #e6ddd0;
    --ink: #3d3226;
    --ink-soft: #4d4236;
    --muted: #5c5145;
    --rule: #c9c2b4;
    --accent: #697649;
    --gold: #9a6a1f;
    /* Font option B: one newspaper serif everywhere (Noto Serif + Noto Serif Armenian), no capitals */
    --serif: 'Noto Serif', 'Noto Serif Armenian', serif;
    --sans: 'Noto Serif', 'Noto Serif Armenian', serif;
    --quote: 'Noto Serif', 'Noto Serif Armenian', serif;
}
.im-home, .im-home * { box-sizing: border-box; }
.im-home { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
.im-home a { color: var(--ink); }
.im-home a:hover { color: var(--accent); }
.im-home img { max-width: 100%; }
.im-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.im-kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.im-serif { font-family: var(--serif); }
.im-home .im-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; text-decoration: none; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--sans); }
.im-home .im-btn--ink { background: var(--ink); color: var(--paper); }
.im-home .im-btn--ink:hover { color: var(--paper); background: #2b231a; }
.im-home .im-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.im-home .im-btn--accent:hover { color: var(--paper); filter: brightness(.92); }
.im-home .im-btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.im-home .im-btn--outline-light { border-color: var(--paper); color: var(--paper); }
.im-home .im-btn--outline-light:hover { color: var(--paper); background: rgba(255, 255, 255, .08); }
.im-halftone { background-color: var(--halftone); background-image: radial-gradient(rgba(61, 50, 38, .15) 1.2px, transparent 1.3px); background-size: 7px 7px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.im-double-rule { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); height: 4px; }
.im-section-title { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.im-section-title::before, .im-section-title::after { content: ''; flex-grow: 1; border-top: 1px solid var(--ink); }
.im-section-title h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.5vw, 44px); text-align: center; }
.im-grid { display: grid; gap: 32px; }

/* Dateline + masthead */
.im-dateline { background: var(--ink); color: var(--paper); }
.im-dateline .im-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.im-dateline em { font-family: var(--serif); text-transform: none; letter-spacing: .02em; font-size: 15px; }
.im-masthead { text-align: center; padding-top: 28px; }
.im-masthead-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.im-masthead-top a { text-decoration: none; color: var(--muted); }
.im-masthead-top a.im-active { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }
.im-masthead-langs { display: flex; gap: 14px; }
.im-masthead-top { margin-bottom: 18px; }

/* Menu: logo first, links after it, the request button on the right */
.im-main-nav { display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 6px clamp(10px, 1.4vw, 22px); padding: 12px 0; border-bottom: 1px solid var(--ink); font-size: clamp(12px, 1.25vw, 14px); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.im-main-nav a { text-decoration: none; }
.im-main-nav .im-btn { min-height: 40px; padding: 0 14px; font-size: inherit; letter-spacing: inherit; }
.im-main-nav .im-nav-logo { margin: 0 8px 0 0; display: flex; }
.im-main-nav .im-nav-logo img { height: 48px; width: auto; display: block; }
.im-main-nav .im-btn { margin-left: auto; }
@media (max-width: 960px) {
    .im-main-nav { flex-wrap: wrap; justify-content: center; white-space: normal; font-size: 14px; gap: 6px 20px; }
    .im-main-nav .im-nav-logo { flex-basis: 100%; justify-content: center; margin: 0 0 6px; }
    .im-main-nav .im-btn { margin-left: 0; }
}

/* Promotions banner */
.im-promo { padding-top: 32px; }
.im-promo-frame { border: 2px solid var(--ink); padding: 8px; }
.im-promo-inner { border: 1px solid var(--ink); background: var(--accent); color: var(--paper); overflow: hidden; }
.im-promo-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; padding: 44px 48px 40px; align-items: center; }
.im-promo-extra { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.im-promo-extra::before, .im-promo-extra::after { content: ''; width: 40px; border-top: 2px solid var(--paper); }
.im-promo-title { font-family: 'Noto Serif Armenian', 'Playfair Display', serif; font-stretch: 75%; font-weight: 900; font-size: clamp(44px, 6.5vw, 92px); line-height: .92; text-transform: uppercase; margin: 16px 0; }
.im-promo h2 { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.im-promo p { margin: 0 0 20px; max-width: 520px; color: var(--paper-2); }
.im-promo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.im-promo-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.im-promo-photo { width: 100%; max-width: 420px; height: 300px; border: 6px solid var(--paper); transform: rotate(-2deg); color: var(--ink-soft); }
.im-promo-stamp { position: absolute; top: -6px; right: 6px; width: 150px; height: 150px; border-radius: 50%; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(12deg); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.im-promo-stamp b { font-family: var(--serif); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: 0; }
.im-promo-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 48px 24px; }
.im-promo-arrows { display: flex; gap: 8px; }
.im-promo-arrows button { width: 44px; height: 44px; border: 2px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.im-promo-dots { display: flex; gap: 10px; }
.im-promo-dots span { width: 10px; height: 6px; background: var(--paper); opacity: .45; }
.im-promo-dots span.im-active { width: 28px; opacity: 1; }
.im-promo-ticker { border-top: 2px solid var(--paper); background: var(--ink); padding: 10px 24px; white-space: nowrap; overflow: hidden; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* Lead story */
.im-lead { padding-top: 40px; padding-bottom: 56px; }
.im-lead .im-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: stretch; }
.im-lead h2 { margin: 14px 0 20px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; border-left: 3px solid var(--ink); padding-left: 18px; }
.im-lead .im-quote { margin: 0 0 20px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; border-left: 3px solid var(--ink); padding-left: 18px; }
.im-lead .im-dropcap::first-letter { float: left; font-family: var(--serif); font-weight: 900; font-size: 76px; line-height: .8; padding: 8px 10px 0 0; }
.im-lead .im-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.im-lead figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.im-lead .im-photo { flex-grow: 1; min-height: 420px; border: 4px solid var(--ink); padding: 6px; background: var(--paper); }
.im-lead .im-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-lead figcaption { font-size: 14px; font-style: italic; color: var(--muted); border-bottom: 1px solid #d3d2ca; padding-bottom: 8px; }

/* Services */
.im-services { background: var(--paper-2); border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 56px 0; }
/* Services slider: 2 cards + a peek of the next on desktop, 1 + a peek on phones */
.im-slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.im-slider-track::-webkit-scrollbar { display: none; }
.im-slider-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.im-slide { flex: 0 0 calc(100% / 2.3); scroll-snap-align: start; }
.im-slider-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.im-slider--static .im-slider-controls { display: none; }
.im-home .im-slider-btn { width: 44px; height: 44px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.im-home .im-slider-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.im-home .im-slider-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 760px) {
    .im-slide { flex-basis: 85%; }
}
.im-service { padding: 0 28px 8px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--rule); }
.im-service:last-child { border-right: 0; }
.im-service .im-num { font-family: var(--serif); font-weight: 900; font-size: 54px; line-height: 1; color: var(--accent); }
.im-service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--ink); filter: sepia(.25); }
.im-service h3 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1.15; }
.im-service p { margin: 0; }
.im-more { margin-top: auto; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }

/* About */
.im-about { padding: 64px 24px; }
.im-about .im-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; }
.im-seal { border: 1px solid var(--ink); padding: 10px; }
.im-seal > div { border: 3px double var(--ink); padding: 36px 32px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.im-seal .im-inf { font-family: var(--serif); font-weight: 900; font-size: clamp(56px, 7vw, 88px); line-height: 1; }
.im-about h2 { margin: 0 0 18px; font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.im-about p { margin: 0 0 16px; }

/* News */
.im-news { border-top: 3px solid var(--ink); }
.im-news-head { border-top: 1px solid var(--ink); margin-top: 4px; padding: 28px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.im-news-head h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.5vw, 44px); }
.im-news .im-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); padding-bottom: 64px; }
.im-news-item { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); padding-top: 14px; }
.im-news-item .im-num { font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1; color: var(--accent); }
.im-news-item h3 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 23px; line-height: 1.2; }
.im-news-item p { margin: 0; color: var(--ink-soft); }

/* Contest */
.im-contest { background: var(--paper-2); border-top: 3px double var(--ink); padding: 56px 0 64px; }
.im-contest-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; align-items: end; margin-bottom: 36px; }
.im-contest h2 { margin: 12px 0; font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; }
/* Prizes: three cash places on top, the two gift cards underneath (ink lines are the 1px gaps) */
.im-prizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; border: 2px solid var(--ink); background: var(--ink); }
.im-prizes div { grid-column: span 2; padding: 14px 12px; background: var(--paper); text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.im-prizes div.im-prize-card { grid-column: span 3; }
.im-prizes span { display: block; font-size: 12px; font-weight: 400; font-style: italic; color: var(--ink-soft); }
.im-prizes b { display: block; font-family: var(--serif); font-weight: 900; font-size: 26px; letter-spacing: 0; text-transform: none; }
.im-contest-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; margin-top: 12px; }
.im-contest .im-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.im-entry { background: var(--paper); border: 2px solid var(--ink); padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.im-entry .im-rank { position: absolute; top: -14px; left: -14px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 900; font-size: 20px; box-shadow: 0 0 0 3px var(--paper-2); }
.im-entry .im-rank--2 { background: var(--accent); }
.im-entry .im-rank--3 { background: var(--gold); }
.im-entry .im-rank--4, .im-entry .im-rank--5 { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.im-entry .im-photo { overflow: hidden; background: var(--paper-2); }
.im-entry .im-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-entry-date { font-family: var(--serif); font-weight: 800; font-size: 18px; }
.im-contest-all { display: flex; justify-content: center; margin-top: 32px; }
.im-contest-empty { margin: 0; padding: 40px 20px; border: 1px dashed var(--ink); text-align: center; font-style: italic; color: var(--ink-soft); }

/* Contest page (page_contest): date filter and pages */
.im-contest-page { border-top: 0; padding-top: 28px; }
.im-contest-page .im-contest-head { margin-top: 22px; }
.im-contest-page h1 { margin: 12px 0; font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; }
.im-contest-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 32px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.im-contest-filter label { font-weight: 700; }
.im-contest-filter input { min-height: 48px; padding: 0 12px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; }
.im-contest-count { margin-left: auto; font-weight: 700; }
.im-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.im-pager a, .im-pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); font-weight: 700; text-decoration: none; }
.im-pager .im-active { background: var(--ink); color: var(--paper); }
.im-entry .im-photo { aspect-ratio: 4 / 5; }
.im-entry-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.im-entry-name { font-family: var(--serif); font-weight: 800; font-size: 18px; }
.im-entry-sub { font-size: 13px; color: var(--muted); }
.im-like { min-width: 44px; min-height: 44px; padding: 0 12px; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-weight: 700; font-size: 15px; cursor: pointer; }
.im-like.im-liked { background: var(--ink); color: var(--paper); }
.im-contest-cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 20px 0; }
.im-contest-cta .im-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Get code */
.im-get-code { background: var(--ink); color: var(--paper); }
.im-get-code .im-container { max-width: 900px; padding-top: 64px; padding-bottom: 64px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.im-get-code .im-kicker { color: #d9cfa8; }
.im-get-code h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; }
.im-get-code p { margin: 0; max-width: 600px; color: var(--halftone); }
.im-code-form { width: 100%; max-width: 620px; display: flex; flex-wrap: wrap; margin-top: 8px; border: 2px solid var(--paper); }
.im-code-form input { flex: 1 1 260px; min-height: 56px; padding: 0 18px; border: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; letter-spacing: .08em; }
.im-code-form button { min-height: 56px; padding: 0 28px; border: 0; background: var(--accent); color: var(--paper); font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.im-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.im-footer { padding-top: 40px; padding-bottom: 32px; }
/* main.css styles bare <footer> for the old footer (centred column, rule on top); not this one */
.im-home footer.im-footer { display: block; margin-top: 0; }
.im-home footer.im-footer::after { display: none; }
.im-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 24px; }
.im-home .im-footer-brand { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-weight: 900; font-size: 26px; text-decoration: none; }
.im-footer-brand img { height: 48px; width: auto; }
.im-footer-social { display: flex; align-items: center; gap: 18px; }
.im-footer-social img { width: 24px; height: 24px; display: block; }
.im-home .im-footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 700; }
.im-footer-nav a { text-decoration: none; }
.im-footer-nav a:hover { text-decoration: underline; }
.im-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.im-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; font-size: 14px; }
.im-home .im-footer-links a { color: var(--muted); }
.im-footer .im-copy { margin-top: 18px; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
    .im-promo-body { padding: 32px 22px 28px; }
    .im-promo-controls { padding: 0 22px 20px; }
    .im-service { padding: 0 18px 8px; }
}
.im-home h1, .im-home h2, .im-home h3 { color: var(--ink); letter-spacing: normal; text-transform: none; }
.im-home .im-get-code h2, .im-home .im-promo h2 { color: var(--paper); }

/* --- Font option B overrides: serif everywhere, sentence case instead of spaced capitals --- */
.im-dateline .im-container, .im-masthead-top, .im-promo-extra, .im-promo-ticker, .im-prizes div, .im-promo-stamp, .im-kicker, .im-more, .im-main-nav, .im-home .im-btn, .im-code-form button, .im-halftone { text-transform: none; letter-spacing: normal; }
.im-main-nav { font-size: clamp(14px, 1.45vw, 16px); font-weight: 700; }
.im-kicker { font-size: 16px; font-style: italic; font-weight: 700; }
.im-home .im-btn, .im-code-form button { font-size: 16px; font-weight: 700; }
.im-main-nav .im-btn { font-size: inherit; }
.im-more { font-size: 15px; font-style: italic; }
.im-promo-title { font-family: var(--serif); font-stretch: normal; font-weight: 800; text-transform: none; font-size: clamp(42px, 6vw, 84px); line-height: 1; }
.im-promo-extra { font-style: italic; font-size: 15px; }
.im-promo-stamp { font-size: 12px; }
.im-section-title h2, .im-news-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.im-service h3 { font-size: 24px; line-height: 1.2; }
.im-news-item h3 { font-size: 21px; line-height: 1.25; }
.im-service .im-num { font-size: 48px; }
.im-news-item .im-num { font-size: 32px; }

/* Header: tagline + social icons on the right of the language row */
.im-masthead-social { display: flex; align-items: center; gap: 14px; }
.im-masthead-social a { display: inline-flex; }
.im-masthead-social img { width: 22px; height: 22px; object-fit: contain; }

/* --- Service page (templates/website/page/service.html.twig) --- */
.im-sv { padding-top: 28px; padding-bottom: 56px; }
.im-sv-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.im-sv-crumbs a { color: var(--muted); }
.im-sv-head { text-align: center; max-width: 900px; margin: 22px auto 0; }
.im-sv-head h1 { margin: 12px 0 14px; font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.1; color: var(--ink); }
.im-sv-deck { margin: 0 auto 24px; max-width: 720px; font-family: var(--quote); font-style: italic; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--ink-soft); }
.im-sv-video { margin: 0; }
.im-sv-video-frame { border: 4px solid var(--ink); padding: 6px; background: var(--paper); }
.im-sv-video-frame iframe, .im-sv-video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink); }
.im-sv-video--vertical { max-width: 420px; width: 100%; justify-self: center; }
.im-sv-video--vertical .im-sv-video-frame iframe, .im-sv-video--vertical .im-sv-video-frame video { aspect-ratio: 9 / 16; }
.im-sv-videos { margin-top: 56px; }
.im-sv-videos-list { display: grid; gap: 28px; max-width: 960px; margin: 0 auto; }
.im-sv-videos--grid .im-sv-videos-list { max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }

/* Service page photo slider: big frame, arrows over the photo, thumbnails underneath */
.im-sv-gallery { margin: 32px 0 0; }
.im-sv-gallery-frame { position: relative; border: 4px solid var(--ink); padding: 6px; background: var(--paper); }
.im-sv-gallery-track .im-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--paper-2); }
.im-home .im-sv-gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.im-sv-gallery-btn--prev { left: 18px; }
.im-sv-gallery-btn--next { right: 18px; }
.im-home .im-sv-gallery-btn:disabled { opacity: .4; cursor: default; }
.im-sv-gallery-count { position: absolute; right: 18px; bottom: 18px; padding: 4px 12px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.im-sv-gallery.im-slider--static .im-sv-gallery-btn, .im-sv-gallery.im-slider--static .im-sv-gallery-count { display: none; }
.im-sv-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.im-home .im-sv-thumbs button { flex: 0 0 auto; width: 108px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .6; }
.im-home .im-sv-thumbs button.im-active { border-color: var(--ink); opacity: 1; }
.im-sv-thumbs img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 600px) {
    .im-home .im-sv-gallery-btn { width: 40px; height: 40px; }
    .im-sv-gallery-btn--prev { left: 10px; }
    .im-sv-gallery-btn--next { right: 10px; }
    .im-sv-gallery-count { right: 10px; bottom: 10px; }
    .im-home .im-sv-thumbs button { width: 76px; }
}
.im-sv-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 48px; margin-top: 40px; align-items: start; }
.im-sv-text { font-size: 18px; line-height: 1.75; }
.im-sv-text > p:first-child::first-letter { float: left; font-family: var(--serif); font-weight: 800; font-size: 72px; line-height: .8; padding: 8px 10px 0 0; }
.im-sv-text h2, .im-sv-text h3, .im-sv-text h4 { font-family: var(--serif); font-weight: 800; line-height: 1.2; margin: 1.4em 0 .5em; }
.im-sv-text img { max-width: 100%; height: auto; border: 2px solid var(--ink); }
.im-sv-text ul, .im-sv-text ol { padding-left: 1.3em; }
.im-sv-aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.im-sv-cta > * { margin: 0; }
.im-sv-cta { border: 1px solid var(--ink); display: flex; flex-direction: column; gap: 12px; padding: 22px; outline: 3px double var(--ink); outline-offset: -8px; text-align: center; }
.im-sv-cta-title { font-family: var(--serif); font-weight: 800; font-size: 24px; }
.im-sv-cta p { color: var(--ink-soft); font-style: italic; }
.im-sv-others-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.im-home .im-sv-other { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.im-sv-other img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--ink); filter: sepia(.25); }
.im-sv-other-title { font-family: var(--serif); font-weight: 800; font-size: 20px; line-height: 1.25; }
@media (max-width: 860px) {
    .im-sv-body { grid-template-columns: 1fr; gap: 32px; }
    .im-sv-aside { position: static; }
}

/* Black Friday banner: black panel, price cards rotate in the visual */
.im-promo--bf .im-promo-inner { background: #141210; }
.im-promo--bf .im-promo-ticker { background: #b3262c; border-top-color: #b3262c; }
.im-promo--bf .im-promo-ticker s { opacity: .7; }
.im-promo-cards { width: 100%; max-width: 460px; border: 6px solid var(--paper); transform: rotate(-2deg); background: var(--paper); }
.im-promo-cards .im-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 7 / 5; object-fit: cover; display: block; }
.im-promo-arrows button:disabled { opacity: .35; cursor: default; }
/* Keep the stamp off the struck-out price at the top of each card */
.im-promo--bf .im-promo-stamp { top: auto; bottom: -18px; right: -8px; width: 124px; height: 124px; }
.im-promo--bf .im-promo-stamp b { font-size: 32px; }
@media (max-width: 600px) {
    .im-promo--bf .im-promo-stamp { width: 100px; height: 100px; }
    .im-promo--bf .im-promo-stamp b { font-size: 26px; }
}

/* Contest banner (parts/promo-contest.html.twig): dark panel like the banner photo, gold stamp and ticker */
.im-promo--contest .im-promo-inner { background: #2c2419; }
.im-promo--contest .im-promo-title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; }
.im-promo--contest .im-promo-ticker { background: #9a6a1f; border-top-color: #9a6a1f; white-space: normal; line-height: 1.6; }
.im-promo-contest-photo { display: block; width: 100%; max-width: 520px; border: 6px solid var(--paper); transform: rotate(-2deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.im-promo-contest-photo img { display: block; width: 100%; aspect-ratio: 1200 / 860; object-fit: cover; }
.im-promo--contest .im-promo-stamp { top: auto; bottom: -18px; right: -8px; width: 132px; height: 132px; background: #f3d98a; }
.im-promo--contest .im-promo-stamp b { font-size: 26px; }
@media (max-width: 600px) {
    .im-promo--contest .im-promo-stamp { width: 104px; height: 104px; font-size: 10px; }
    .im-promo--contest .im-promo-stamp b { font-size: 20px; }
}

/* Contest entry modal (contest page): big picture, like button and share links */
.im-home .im-entry .im-photo { display: block; cursor: zoom-in; }
.im-entry-modal { position: fixed; inset: 0; z-index: 10004; background: rgba(28, 22, 15, .78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.im-entry-modal[hidden] { display: none; }
.im-entry-modal-box { position: relative; width: 100%; max-width: 980px; max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.im-entry-modal-photo { position: relative; background: var(--ink); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.im-entry-modal-photo img { display: block; width: 100%; height: 100%; max-height: calc(100vh - 36px); object-fit: contain; }
.im-entry-modal-photo .im-rank { position: absolute; top: 14px; left: 14px; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 900; font-size: 22px; box-shadow: 0 0 0 3px var(--paper); }
.im-entry-modal-photo .im-rank--2 { background: var(--accent); }
.im-entry-modal-photo .im-rank--3 { background: var(--gold); }
.im-entry-modal-side { min-width: 0; padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.im-entry-modal-side h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.im-entry-modal-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--serif); font-weight: 800; font-size: 18px; }
.im-entry-modal-hint { margin: 0; color: var(--ink-soft); font-size: 15px; }
.im-home .im-entry-modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 760px) {
    .im-entry-modal { align-items: flex-start; }
    .im-entry-modal-box { grid-template-columns: minmax(0, 1fr); }
    .im-entry-modal-photo img { max-height: 60vh; }
    .im-entry-modal-side { padding: 20px 18px; }
}

/* Share box (parts/contest-share.html.twig): used in the entry modal and the join popup */
.im-share { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.im-share-link { display: flex; }
.im-share-link input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 2px solid var(--ink); border-right: 0; background: #fff; color: var(--ink); font: 14px var(--sans); }
.im-home .im-share-copy { min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 14px var(--sans); cursor: pointer; white-space: nowrap; }
.im-share-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.im-home .im-share-app { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 14px var(--sans); text-decoration: none; cursor: pointer; }
.im-home .im-share-app:hover { background: var(--ink); color: var(--paper); }
.im-home .im-share-native { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* Staff sign-in (templates/login/index.html.twig) */
.im-login { padding-top: 48px; padding-bottom: 72px; display: flex; justify-content: center; }
.im-login-card { width: 100%; max-width: 440px; padding: 36px 32px 32px; background: var(--paper); border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; text-align: center; }
.im-login-card h1 { margin: 10px 0 6px; font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; color: var(--ink); }
.im-login-sub { margin: 0 0 24px; color: var(--ink-soft); font-style: italic; }
.im-login-form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.im-login-form label { font-size: 14px; font-weight: 700; }
.im-login-form input { min-height: 48px; padding: 0 14px; margin-bottom: 8px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 16px var(--sans); }
.im-login-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.im-home .im-login-form .im-btn { width: 100%; margin-top: 8px; }
.im-login-error { padding: 10px 12px; border: 2px solid #b3262c; background: #fbeaea; color: #b3262c; font-size: 14px; font-weight: 700; }

/* "Letter to Santa" in the menu: the New Year product stands out a little */
.im-main-nav a.im-nav-santa { color: #c0392b; }
.im-main-nav a.im-nav-santa:hover { color: #a52f23; }

/* the menu got one more item ("Letter to Santa"): a little tighter on wide screens, and two rows below 1180px */
@media (min-width: 1181px) { .im-main-nav { font-size: clamp(13px, 1.1vw, 16px); gap: 6px clamp(8px, .8vw, 20px); } }
@media (max-width: 1180px) {
    .im-main-nav { flex-wrap: wrap; justify-content: center; white-space: normal; font-size: 14px; gap: 6px 20px; }
    .im-main-nav .im-nav-logo { flex-basis: 100%; justify-content: center; margin: 0 0 6px; }
    .im-main-nav .im-btn { margin-left: 0; }
}

/* Santa video banner: red panel, the picture in a paper frame, a stamp with the price */
.im-promo--santa .im-promo-inner { background: #7d0e12; }
.im-promo--santa .im-promo-ticker { background: #4a070a; border-top-color: #7d0e12; }
.im-santa-banner-img { display: block; width: 100%; max-width: 460px; height: auto; aspect-ratio: 7 / 5; object-fit: cover; object-position: 50% 30%; border: 6px solid var(--paper); transform: rotate(-2deg); background: var(--paper); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.im-promo--santa .im-promo-stamp { color: #7d0e12; border-color: #7d0e12; box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px #7d0e12; }
@media (max-width: 760px) { .im-promo--santa .im-promo-stamp { width: 110px; height: 110px; font-size: 10px; } .im-promo--santa .im-promo-stamp b { font-size: 28px; } }
