/* Holiday cost calculator page. Loaded after calc.css and money-calc.css. */
.hol-form { border-top: 5px solid var(--amber); }
.hol-form .fields.three { grid-template-columns: repeat(3, 1fr); }
#card-fields { margin-top: 4px; padding: 16px 16px 2px; border-radius: 14px; background:
  repeating-linear-gradient(90deg, rgb(255 255 255 / 0.55) 0 1px, transparent 1px 12px), var(--paper-2); }
#card-fields h3 { margin: 0 0 10px; font-size: 1rem; }

/* the result: a dark forest band with the staircase of shrinking bars */
.hol-result { position: relative; overflow: hidden; color: var(--cream); border: 0; background:
  linear-gradient(120deg, var(--forest) 30%, #1E3B2C), var(--forest); }
.hol-result::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  repeating-linear-gradient(90deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 14px); }
.hol-result::after { content: ""; position: absolute; right: 22px; bottom: 0; width: 150px; height: 120px; opacity: 0.55; pointer-events: none; background:
  linear-gradient(var(--mint), var(--mint)) 0 100% / 22px 100% no-repeat,
  linear-gradient(var(--mint), var(--mint)) 32px 100% / 22px 72% no-repeat,
  linear-gradient(var(--mint), var(--mint)) 64px 100% / 22px 46% no-repeat,
  linear-gradient(var(--mint), var(--mint)) 96px 100% / 22px 26% no-repeat,
  linear-gradient(var(--amber), var(--amber)) 128px 100% / 22px 12% no-repeat; }
.hol-result > * { position: relative; z-index: 1; }
.hol-result h2 { color: var(--cream); }
.hol-result .tile, .hol-result .tiles .tile:first-child { background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.12); color: var(--cream); }
.hol-result .tile .k, .hol-result .tile .s { color: var(--sage); }
.hol-result .tile .v, .hol-result .tiles .tile:first-child .v { color: var(--amber); }
.hol-result .tile:first-child .v { color: var(--cream); }
.hol-result .warn { color: var(--warn); }
#r-line { font: 600 1.2rem/1.4 var(--display); margin: 4px 0 8px; color: var(--cream); max-width: 34em; }
#r-extra { color: var(--sage); margin-bottom: 0; max-width: 40em; }
@media (min-width: 641px) { #r-line, #r-extra { padding-right: 170px; } }

/* share card */
.hol-share canvas { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); background: var(--forest); }
.sharebar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.sharebar a.sb { font-size: 14.5px; font-weight: 600; text-decoration: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); }
.sharebar a.sb:hover { border-color: var(--green); background: var(--paper-2); }
.hol-embed textarea { width: 100%; min-height: 150px; font: 400 13px/1.5 var(--mono); border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--paper); color: var(--ink); resize: vertical; }
.hol-embed .row { display: flex; gap: 12px; align-items: center; margin-top: 10px; }

/* the soft links under the result */
.softlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.softlinks .card { margin: 0; background: linear-gradient(160deg, var(--amber-soft), var(--white) 70%); }
.softlinks h3 { margin-top: 0; }

.credit { display: none; font-size: 13.5px; text-align: center; margin: 8px 0 0; }
.embed .offer, .embed header.bar, .embed .tools, .embed .masthead, .embed .foot { display: none !important; }
.embed main .col > :not(.keep) { display: none !important; }
.embed .credit { display: block; }
.embed main > .col { padding: 12px 0 8px; }
.embed main > .col > .card:first-child { margin-top: 0; box-shadow: var(--shadow); }
.embed body { background: var(--white); }

@media (max-width: 640px) {
  .hol-form .fields.three, .softlinks { grid-template-columns: 1fr; }
  .hol-result::after { display: none; }
  .sharebar a.sb { flex: 1 1 40%; text-align: center; }
  .hol-embed .row { flex-direction: column; align-items: stretch; }
}
