/* Dana footer - what the three designs share (footer.jinja). Each design's
 * layout is in footer-N.css, every rule of it scoped to .dana-footer--dN.
 *
 * Measured on the bought template (Vineta, styles.css 9111-9420 and its
 * breakpoints) on index.html at 1440, 1024, 768 and 390: 16/24 text
 * (14/22 under 768) in #545454 on the page's white; headings 20/30 at 500 in
 * #0d0d0d (16/24 under 768), 24px under them from 768px; link lists 15px
 * apart; contact lines after 32px ringed circles; the newsletter a 401px pill
 * field (56px from 992px, 50 under) with a round dark arrow button 2px inside
 * its end; the bottom row 32px above and below, the copyright 14/20 in #000,
 * payment icons 40px wide and 8px apart; every line #ebebeb. Under 768px
 * every column folds (the template's footer-heading-mobile, 22690-22730).
 *
 * The footer's own colours are custom properties set here, by the ground
 * classes below and by footer.jinja from Zid's footer colours; the page's
 * tokens (core.css) are the defaults, so a design's identity and a merchant's
 * page colours reach the footer too. Sizes are px (the starter's root is
 * 12px); one sheet for both directions (logical properties).
 */
.dana-footer {
  --dana-footer-bg: var(--dana-bg);
  --dana-footer-ink: var(--dana-heading);          /* headings, contact lines, copyright (#0d0d0d / #000) */
  --dana-footer-text: var(--dana-muted);           /* running text and links (#545454) */
  --dana-footer-line: var(--dana-line);            /* every rule and divider (#ebebeb) */
  --dana-footer-social: color-mix(in srgb, var(--dana-footer-ink) 78%, var(--dana-footer-bg)); /* #383d38 */
  --dana-footer-social-ring: var(--dana-footer-line);
  --dana-footer-icon: var(--dana-heading);
  --dana-footer-icon-bg: var(--dana-bg);
  --dana-footer-icon-ring: var(--dana-footer-line);
  --dana-footer-field-bg: transparent;
  --dana-footer-field-line: var(--dana-footer-line);
  --dana-footer-field-text: var(--dana-footer-ink);
  --dana-footer-field-muted: var(--dana-footer-text);
  --dana-footer-plate: transparent;
  --dana-footer-mark-filter: none;
  --dana-footer-hover: var(--dana-accent-ink);       /* every hover and keyboard focus (footer.jinja guards it on a footer colour of its own) */
  display: block;
  color: var(--dana-footer-text);
  font-family: var(--dana-font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-align: start;
}
.dana-footer *, .dana-footer *::before, .dana-footer *::after { box-sizing: border-box; }
.dana-footer__ground { background-color: var(--dana-footer-bg); }
/* Links take their colour from where they sit; Bootstrap's reboot blue and
   underline never reach them. :where() keeps these at no weight, so every
   part's own colour wins. */
.dana-footer :where(a) { color: inherit; text-decoration: none; }
.dana-footer :where(a:hover, a:focus-visible) { text-decoration: none; }
.dana-footer :where(p) { margin: 0; }
.dana-footer :where(ul) { margin: 0; padding: 0; list-style: none; }

/* ---- Grounds (footer.jinja works the tone out from Zid's footer colour) ---
   light (skincare #fffcfa): white circles and fields on the pale ground;
   tint (baby #d1d6ff): white lines, white fields, rings in place of filled
   circles (styles.css 9385-9420);
   dark (plant #253321): white text, #7f7f7f lines, #989898 rings round the
   social buttons, white fields and circles (styles.css 9341-9375). */
.dana-footer--ground-light { --dana-footer-icon-bg: #ffffff; --dana-footer-field-bg: #ffffff; }
.dana-footer--ground-tint {
  --dana-footer-line: #ffffff;
  --dana-footer-icon-bg: transparent;
  --dana-footer-field-bg: #ffffff;
  --dana-footer-field-line: #ffffff;
}
.dana-footer--ground-dark {
  --dana-footer-ink: #ffffff;
  --dana-footer-text: #ffffff;
  --dana-footer-line: #7f7f7f;
  --dana-footer-social: var(--dana-footer-ink);
  --dana-footer-social-ring: #989898;
  --dana-footer-icon: #000000;
  --dana-footer-icon-bg: #ffffff;
  --dana-footer-icon-ring: transparent;
  --dana-footer-field-bg: #ffffff;
  --dana-footer-field-line: #ebebeb;
  --dana-footer-field-text: #000000;
  --dana-footer-field-muted: #545454;
}
/* On any dark ground (the footer's or the page's): the dark marks turn light.
   Zid's credit logo is drawn in #1F0433 and the Ministry and Business Center
   marks in dark green and navy; they vanished on Amer's dark footers. The
   legal marks and the payment icons get a white plate instead. */
.dana-footer--on-dark { --dana-footer-plate: #ffffff; --dana-footer-mark-filter: brightness(0) invert(1) opacity(.72); }

/* ---- The cloud edge (baby:2573, .cloud-footer 9376-9384) -------------------
   The template's cloud2.svg over the footer, in the ground's colour, so the
   footer's top edge is a row of clouds. It floats down 20px and back every
   5s (10px under 992, its keyframes at 10092 and 21829) and overlaps the
   ground by 2px so no hairline shows between them. Still for reduced motion. */
.dana-footer__edge { display: block; margin-block-end: -2px; color: var(--dana-footer-bg); line-height: 0; pointer-events: none; }
/* From 768px the clouds sink into the ground (the template's -20px, and
   -60px from 1200px: styles.css 19359, 21120-21122): the edge stands 18px
   and 58px lower over the footer than under 768px. */
@media (min-width: 768px) { .dana-footer__edge { margin-block-end: -20px; } }
@media (min-width: 1200px) { .dana-footer__edge { margin-block-end: -60px; } }
/* The ground paints over the clouds' foot, as the template's positioned
   footer-cloud does: the floating picture (a transform) would otherwise
   paint over the top row's logo and buttons it now reaches into. */
.dana-footer--edge-cloud .dana-footer__ground { position: relative; }
.dana-footer__edge svg { display: block; inline-size: 100%; block-size: auto; animation: dana-footer-float 5s ease-in-out infinite alternate; }
@keyframes dana-footer-float { from { transform: translateY(0); } to { transform: translateY(20px); } }
@media (max-width: 991px) { .dana-footer__edge svg { animation-name: dana-footer-float-sm; } }
@keyframes dana-footer-float-sm { from { transform: translateY(0); } to { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .dana-footer__edge svg { animation: none; } }

/* ---- The store's mark --------------------------------------------------------
   The template's logo box: 157px wide (108 on phones); a merchant's square
   logo is held to 60px high so it cannot grow to 157 x 157. */
.dana-footer__logo { display: block; flex: none; inline-size: 157px; max-inline-size: 100%; transition: opacity .3s var(--dana-ease); }
.dana-footer__logo img { display: block; inline-size: auto; block-size: auto; max-inline-size: 100%; max-block-size: 60px; }
.dana-footer__logo--invert img { filter: brightness(0) invert(1); }
.dana-footer__logo:hover, .dana-footer__logo:focus-visible { opacity: .75; }
.dana-footer__name { display: inline-block; color: var(--dana-footer-ink); font-family: var(--dana-font-heading); font-size: 24px; line-height: 32px; font-weight: var(--dana-fw-heading); transition: color .3s var(--dana-ease); }
.dana-footer__name:hover, .dana-footer__name:focus-visible { color: var(--dana-footer-hover); }
@media (max-width: 767px) { .dana-footer__logo { inline-size: 108px; } .dana-footer__logo img { max-block-size: 48px; } }

/* ---- Headings (the template's .footer-heading, 9195-9198) ----------------
   Every column title is the <summary> of its <details>: plain text at 768px
   and up (footer.js keeps it open and out of the Tab order there), the
   fold's control under it. «The headings font» (heading_font) gives them the
   design's heading face and weight (skincare2 and jewelry2 set theirs in
   Playfair). */
.dana-footer__heading {
  display: block;
  margin: 0 0 24px;
  color: var(--dana-footer-ink);
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  list-style: none;
  cursor: default;
  transition: color .3s var(--dana-ease);
}
.dana-footer__heading::-webkit-details-marker { display: none; }
.dana-footer__heading::marker { content: ""; }
.dana-footer--heading-font .dana-footer__heading { font-family: var(--dana-font-heading); font-weight: var(--dana-fw-heading); }
/* «The headings font, slanted» (skincare2: italic Playfair «QUICK LINK»).
   Latin pages only: Arabic fonts have no italic and the browser's slant only
   smears the letters (benefit-showcase-2.css does the same). */
.dana-footer--heading-italic .dana-footer__heading { font-style: italic; }
[dir="rtl"] .dana-footer--heading-italic .dana-footer__heading { font-style: normal; }
/* A heading that exists only as the fold's control on phones (design 2's
   contact column, which has the logo above it on wider screens). */
.dana-footer__heading--phone { display: none; }

/* ---- Contact ------------------------------------------------------------------ */
.dana-footer__about { margin-block-end: 12px; }
.dana-footer__about-link { display: inline-block; margin-block-end: 12px; color: var(--dana-footer-text); transition: color .3s var(--dana-ease); }
.dana-footer__about-link:hover, .dana-footer__about-link:focus-visible { color: var(--dana-footer-hover); }
/* Design 1: 32px ringed circles 10px before each line, lines 15px apart,
   24px under the list (9171-9194, 18744). */
.dana-footer__info { display: grid; gap: 15px; margin-block-end: 24px; }
.dana-footer__info-item { display: flex; align-items: center; gap: 10px; color: var(--dana-footer-ink); }
.dana-footer__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  inline-size: 32px;
  block-size: 32px;
  border: 1px solid var(--dana-footer-icon-ring);
  border-radius: 50%;
  background-color: var(--dana-footer-icon-bg);
  color: var(--dana-footer-icon);
  transition: background-color .3s var(--dana-ease), border-color .3s var(--dana-ease), color .3s var(--dana-ease);
}
.dana-footer__info-icon svg { display: block; }
.dana-footer__info-item:hover .dana-footer__info-icon, .dana-footer__info-item:focus-within .dana-footer__info-icon { background-color: var(--dana-accent); border-color: var(--dana-accent); color: var(--dana-on-accent); }
.dana-footer__info-link { color: var(--dana-footer-ink); overflow-wrap: anywhere; transition: color .3s var(--dana-ease); }
.dana-footer__info-link:hover, .dana-footer__info-link:focus-visible { color: var(--dana-footer-hover); }
/* Design 3: «Email:», «Phone:», «Address:» lines, 10px apart. */
.dana-footer__info--labels { gap: 10px; }
.dana-footer__info--labels li { color: var(--dana-footer-text); overflow-wrap: anywhere; }
.dana-footer__info--labels .dana-footer__info-link { color: inherit; }
.dana-footer__info--labels .dana-footer__info-link:hover, .dana-footer__info--labels .dana-footer__info-link:focus-visible { color: var(--dana-footer-hover); }
/* Design 2: plain lines 12px apart. */
.dana-footer__line { display: block; inline-size: fit-content; max-inline-size: 100%; margin-block-end: 12px; color: var(--dana-footer-text); overflow-wrap: anywhere; transition: color .3s var(--dana-ease); }
.dana-footer__line:hover, .dana-footer__line:focus-visible { color: var(--dana-footer-hover); }
/* «Get direction ↗» (.tf-btn.btn-line-dark in the footer, 3044-3080, 9155):
   14/20 in #444 (the ink at 73% on the ground), a 1px line under it, the
   8px arrow 6px after; the text and the line take the accent on hover. */
.dana-footer__directions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: color-mix(in srgb, var(--dana-footer-ink) 73%, var(--dana-footer-bg));
  font-size: 14px;
  line-height: 20px;
  transition: color .3s var(--dana-ease);
}
.dana-footer__directions::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 1px; background-color: currentColor; }
.dana-footer__directions .di { font-size: 8px; }
.dana-footer__directions:hover, .dana-footer__directions:focus-visible { color: var(--dana-footer-hover); }

/* ---- Social (.tf-social-icon.style-large, 6979-7111) ----------------------
   38px ringed circles with 16px glyphs by default (the card design's), all
   filled with the theme's button colour on hover, as a filled button and the
   newsletter's arrow are (Mohamed, 2026-09-30: one fixed colour in place of
   each network's own; TikTok's three-colour gradient read as a stray blot).
   The hover is scoped under .dana-footer so it outweighs design 2's own
   ground and glyph colours (footer-2.css loads after this sheet). Design 1's
   top row and design 2 size them in their own sheets. */
.dana-footer__social-title { margin-block-end: 12px; color: var(--dana-footer-ink); font-weight: 500; }
.dana-footer__social { display: flex; flex-wrap: wrap; gap: 15px; }
.dana-footer__social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 38px;
  block-size: 38px;
  border: 1px solid var(--dana-footer-social-ring);
  border-radius: 50%;
  background: transparent;
  color: var(--dana-footer-social);
  font-size: 16px;
  transition: color .3s var(--dana-ease), background-color .3s var(--dana-ease), border-color .3s var(--dana-ease);
}
/* A thumb's 44px round a smaller circle (38px here, 47px and 52px in the
   designs' own sheets need none), the circle drawn as before; the buttons
   are 8px apart at least, so two targets never overlap. */
.dana-footer__social-link::after { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)); }
.dana-footer__social-link--facebook { font-size: 18px; }
.dana-footer .dana-footer__social-link:hover, .dana-footer .dana-footer__social-link:focus-visible { border-color: var(--dana-primary); background-color: var(--dana-primary); color: var(--dana-on-primary); }

/* ---- Link lists (.footer-menu-list, 9200-9207) ------------------------------
   15px apart, the running text colour, the accent on hover. A link never
   breaks in two: a column is as wide as its longest link and the columns
   around it give way (each design's sheet), since long Arabic lists broke
   every link of Amer's footer in two below 1200px (runbook C4). On phones
   (under 768px) each list is a full-width row with no column beside it to
   give way, so a link longer than the screen wraps there as the last resort
   instead of pushing the page sideways (the phones block, below). */
.dana-footer__links { display: grid; gap: 15px; }
.dana-footer__links a { color: var(--dana-footer-text); white-space: nowrap; transition: color .3s var(--dana-ease); }
.dana-footer__links a:hover, .dana-footer__links a:focus-visible { color: var(--dana-footer-hover); }
.dana-footer__menu { min-inline-size: max-content; }

/* ---- Newsletter (.footer-newsletter, .form-newsletter: 9122-9131, 4162-4180,
   19489-19497) ------------------------------------------------------------------
   The text and the field 20px apart (32px from 992px); the field a 401px
   pill of the ground's field colour with a 1px line, the round button of
   the theme's filled pair 2px inside its end. The button has the theme's
   button motion (core.css .dana-btn): a light sweep once, and a lasting tint
   while it is hovered or focused. The panel's one column is as wide as the
   block and no wider (minmax(0, 1fr)): an auto column took the sign-up
   words' full width (they never wrap) and pushed the field past a narrow
   block; now the words end in an ellipsis inside it. */
.dana-footer__newsletter .dana-footer__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.dana-footer__news-text { color: var(--dana-footer-text); }
.dana-footer__form { position: relative; display: flex; align-items: center; inline-size: 100%; min-inline-size: 0; max-inline-size: 401px; margin: 0; }
.dana-footer__field {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  block-size: 50px;
  margin: 0;
  padding-block: 14px;
  padding-inline: 20px 64px;
  border: 1px solid var(--dana-footer-field-line);
  border-radius: 49px;
  background-color: var(--dana-footer-field-bg);
  color: var(--dana-footer-field-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  transition: border-color .3s var(--dana-ease);
}
input.dana-footer__field::placeholder { color: #a5a5a5; opacity: 1; }
input.dana-footer__field:focus { border-color: var(--dana-footer-ink); }
.dana-footer__submit {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  inline-size: 46px;
  block-size: 46px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--dana-primary);
  border-radius: 50%;
  background-color: var(--dana-primary);
  color: var(--dana-on-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .3s var(--dana-ease), background-color .3s var(--dana-ease), border-color .3s var(--dana-ease);
}
.dana-footer__submit .di { font-size: 18px; }
.dana-footer__submit::before, .dana-footer__submit::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dana-footer__submit::before { background-color: currentColor; opacity: 0; transition: opacity .3s var(--dana-ease); }
.dana-footer__submit::after { background-image: linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, rgba(255, 255, 255, .4), rgba(0, 0, 0, 0) 70%); opacity: .6; transform: translateX(-100%); }
.dana-footer__form:is(:hover, :focus-within) .dana-footer__submit::before { opacity: .14; }
.dana-footer__form:is(:hover, :focus-within) .dana-footer__submit::after { animation: dana-shine 1s forwards; }
@media (prefers-reduced-motion: reduce) { .dana-footer__form:is(:hover, :focus-within) .dana-footer__submit::after { animation: none; } }
/* Without a mail service the whole field is the sign-up link: its words in
   the field's place, in the text colour (it is not a placeholder). */
.dana-footer__signup { text-decoration: none; }
.dana-footer__signup .dana-footer__signup-text { color: var(--dana-footer-field-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dana-footer__signup:hover .dana-footer__signup-text, .dana-footer__signup:focus-visible .dana-footer__signup-text { border-color: var(--dana-footer-ink); }
/* The square look (skincare2:2025-2060, .sib-form rounded-0): a square 50px
   field and a worded «Subscribe ↗» button flush at its end, 16px sides. */
.dana-footer__form--square .dana-footer__field { border-radius: 0; padding-inline-end: 132px; }
.dana-footer__form--square .dana-footer__submit { inset-inline-end: 0; inline-size: auto; block-size: 50px; padding-inline: 16px; border-radius: 0; }
.dana-footer__form--square .dana-footer__submit .di { font-size: 12px; }
.dana-footer__note { color: var(--dana-footer-text); font-size: 14px; line-height: 20px; }
@media (min-width: 992px) {
  .dana-footer__newsletter .dana-footer__panel { gap: 32px; }
  .dana-footer__form:not(.dana-footer__form--square) .dana-footer__field { block-size: 56px; padding-inline-end: 76px; font-size: 16px; line-height: 25.6px; }
  .dana-footer__form:not(.dana-footer__form--square) .dana-footer__submit { inline-size: 52px; block-size: 52px; }
}

/* ---- The legal row (ours, house rules): the bottom row's 14px type ------ */
.dana-footer__legal-wrap { border-block-start: 1px solid var(--dana-footer-line); }
.dana-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px; font-size: 14px; line-height: 20px; }
.dana-footer__legal-items { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.dana-footer__legal-item { display: inline-flex; align-items: center; gap: 8px; color: var(--dana-footer-text); }
.dana-footer__legal-mark { display: inline-grid; place-items: center; flex: none; padding: 2px 4px; border-radius: 6px; background-color: var(--dana-footer-plate); }
.dana-footer__legal-mark img { display: block; inline-size: auto; block-size: 26px; }
.dana-footer__legal-mark--vat { padding: 0; background: none; }
.dana-footer__legal-mark--vat img { block-size: 30px; }
a.dana-footer__legal-item { transition: opacity .3s var(--dana-ease); }
a.dana-footer__legal-item:hover, a.dana-footer__legal-item:focus-visible { opacity: .75; }
.dana-footer__apps { display: flex; flex-wrap: wrap; gap: 12px; }
.dana-footer__apps a { display: block; transition: opacity .3s var(--dana-ease), transform .3s var(--dana-ease); }
.dana-footer__apps a:hover, .dana-footer__apps a:focus-visible { opacity: .85; transform: translateY(-2px); }
.dana-footer__apps img { display: block; inline-size: auto; block-size: 36px; }

/* ---- The bottom row (.footer-bottom-wrap, 9225-9315) ---------------------- */
.dana-footer__bottom { border-block-start: 1px solid var(--dana-footer-line); }
.dana-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding-block: 32px; font-size: 14px; line-height: 20px; }
.dana-footer__copyright { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.dana-footer__rights { color: var(--dana-footer-ink); }
.dana-footer__rights-name { font-weight: 500; }
/* Zid's «صنع بواسطة» credit (defects.md 27): its own <p> and <a> arrive with
   inline sizes and colours picked for a light page. Laid on one row at the
   bottom row's size and the running text colour, the logo 18px high;
   !important only against Zid's inline styles on markup the theme does not
   write. */
.dana-footer__credit { display: inline-flex; align-items: center; }
.dana-footer__credit :is(p, a, span) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  color: var(--dana-footer-text) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 20px !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.dana-footer__credit a:empty { display: none !important; }
.dana-footer__credit img, .dana-footer__credit svg { display: block; inline-size: auto; block-size: 18px; filter: var(--dana-footer-mark-filter); transition: opacity .3s var(--dana-ease); }
.dana-footer__credit a:hover img, .dana-footer__credit a:focus-visible img { opacity: .7; }
.dana-footer__payments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dana-footer__payments img { display: block; inline-size: 40px; block-size: 25px; object-fit: contain; }
/* On a dark ground the store's payment marks (Apple Pay, Google Pay, Visa:
   dark ink on a clear ground) sit on a white plate, as the legal marks do; the
   box stays 40 x 25 (Amer plates them on every ground). */
.dana-footer--on-dark .dana-footer__payments img { padding: 2px 3px; border-radius: 4px; background-color: var(--dana-footer-plate); }
.dana-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.dana-footer__bottom-links a { color: var(--dana-footer-text); white-space: nowrap; transition: color .3s var(--dana-ease); }
.dana-footer__bottom-links a:hover, .dana-footer__bottom-links a:focus-visible { color: var(--dana-footer-hover); }
@media (min-width: 992px) { .dana-footer__bottom-links { column-gap: 49px; } }
/* The country button (design 3; the template's currency select, 9269-9304,
   19993-19998): a 4px box with a faint line, the text and a small ↗; it
   opens Zid's region dialog. */
.dana-footer__region {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-inline-size: 184px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--dana-footer-ink) 15%, transparent);
  border-radius: 4px;
  background: transparent;
  color: var(--dana-footer-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: border-color .3s var(--dana-ease), color .3s var(--dana-ease);
}
.dana-footer__region .di { font-size: 6px; }
.dana-footer__region:hover, .dana-footer__region:focus-visible { border-color: var(--dana-footer-ink); color: var(--dana-footer-hover); }

/* ---- Phones: every column folds (styles.css 22690-22730) -----------------
   The fold's heading is 16/24 with a plus drawn from two 12px bars at its
   end; the vertical bar fades and the other turns when it opens. 20px
   between the closed titles; an open one keeps 20px under its title and 30px
   under its content. footer.js opens and closes them with a 250ms slide. */
@media (max-width: 767px) {
  .dana-footer { font-size: 14px; line-height: 22px; }
  .dana-footer__row, .dana-footer__menus { display: flex; flex-direction: column; gap: 20px; }
  .dana-footer__heading { font-size: 16px; line-height: 24px; margin-block-end: 20px; }
  .dana-footer__heading--phone { display: block; }
  /* A thumb's 44px: 10px of padding above and under the 24px line, taken
     back by the margins, so the titles and their plus stay where they were
     and two closed titles' targets meet in the 20px between them. */
  .dana-footer__fold > .dana-footer__heading { position: relative; margin-block: -10px; padding-block: 10px; padding-inline-end: 24px; cursor: pointer; }
  .dana-footer__fold > .dana-footer__heading::before,
  .dana-footer__fold > .dana-footer__heading::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    background-color: currentColor;
    transition: transform .25s var(--dana-ease), opacity .25s var(--dana-ease);
  }
  .dana-footer__fold > .dana-footer__heading::after { inset-inline-end: 10px; inline-size: 12px; block-size: 1px; transform: translateY(-50%); }
  .dana-footer__fold > .dana-footer__heading::before { inset-inline-end: 15.5px; inline-size: 1px; block-size: 12px; transform: translateY(-50%); }
  .dana-footer__fold[open] > .dana-footer__heading { margin-block-end: 10px; }
  .dana-footer__fold[open] > .dana-footer__heading::before { opacity: 0; }
  .dana-footer__fold[open] > .dana-footer__heading::after { transform: translateY(-50%) rotate(180deg); }
  .dana-footer__fold > .dana-footer__heading:hover, .dana-footer__fold > .dana-footer__heading:focus-visible { color: var(--dana-footer-hover); }
  .dana-footer__fold[open] > .dana-footer__panel { padding-block-end: 10px; }
  .dana-footer__fold > .dana-footer__panel { overflow: hidden; }
  .dana-footer__bar { flex-direction: column; align-items: flex-start; }
  .dana-footer__legal { flex-direction: column; align-items: flex-start; }
  /* A link longer than the phone's width wraps at its spaces (a word longer
     than the line breaks as well) rather than running off the screen; one
     that fits stays on its line. */
  .dana-footer__menu { min-inline-size: 0; }
  .dana-footer__links a, .dana-footer__bottom-links a { white-space: normal; overflow-wrap: break-word; }
}

/* ---- Room for the phone and tablet bottom bar -----------------------------
   The template ends its footer 65px lower under 1200px (.xl-pb-70 on the
   footer, 21525) so the fixed bottom bar never covers the last row; here the
   footer's own ground runs under the bar (the widgets lane's toolbar, 67px;
   --dana-toolbar-h when it draws another height) and under a bar Zid or an
   app puts along the bottom (--dana-zid-bar, ui.js). The page shell stops
   adding the same room after the footer (core.css pads .app for a page with
   no footer): the starter's html and body are 100% high, so the footer is
   where the page really ends (conventions.md, Chrome). */
.app:has(> .footer > .dana-footer) { padding-block-end: 0; }
.dana-footer:not(.dana-footer--d3) .dana-footer__ground { padding-block-end: var(--dana-zid-bar, 0px); }
@media (max-width: 1199px) {
  html[data-dana-toolbar] .app:has(> .footer > .dana-footer) { padding-block-end: 0; }
  html[data-dana-toolbar] .dana-footer:not(.dana-footer--d3) .dana-footer__ground { padding-block-end: calc(var(--dana-toolbar-h, 67px) + var(--dana-zid-bar, 0px)); }
}
