/* The photo licensing fee calculator (/tools/photo-licensing-fee-calculator). On top of site.css: same tokens, same
   type, on a light ground (the "light page" section at the end; Will picked it on br_cvc6ae33). Native radios and
   checkboxes; selects keep the platform menu and get one drawn arrow so it sits the same in every browser. Numbers are tabular so nothing
   shifts as they change, and the result card keeps its size whatever the estimate says. */
:root { color-scheme: light; }

.lc { max-width: 1120px; padding-top: 32px; padding-bottom: 64px; }
.lchead { max-width: 720px; margin-bottom: 28px; }
.lchead .kicker { margin-bottom: 10px; }
.lchead h1 { font-size: clamp(32px, 5.4vw, 46px); line-height: 1.06; max-width: none; margin-bottom: 12px; }
.lclede { font-size: 18px; line-height: 1.5; color: var(--dim); margin: 0; max-width: 40rem; text-wrap: pretty; }

.lcgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 960px) {
  .lcgrid { grid-template-columns: minmax(0, 1fr) 392px; gap: 40px; align-items: start; }
  .lcout { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* inputs */
.calc, .lcout { min-width: 0; }
.calc select { min-width: 0; text-overflow: ellipsis; }
.lcs { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.lcs legend { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.lcs .sn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--edge); font-size: 12px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; flex: none; }
.lchelp { font-size: 14px; color: var(--dim); margin: -4px 0 12px; line-height: 1.45; }
.fields { display: grid; gap: 14px; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } }
/* the day rate and its currency share one row: the number first, the short currency code on the right */
.dayrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.calc .dayrow select { width: auto; min-width: 92px; }
/* on a laptop the three shoot fields share one row, so a one-digit field is not half the form wide */
@media (min-width: 720px) { .fields.shoot { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1fr); } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field .fh { margin: 0; font-size: 13px; color: var(--faint); line-height: 1.4; }
.calc input[type="text"], .calc select {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--text);
  background: var(--raised); border: 1px solid var(--edge); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums;
}
.calc select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23474E4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.calc input[type="text"]:focus, .calc select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.calc input::placeholder { color: var(--faint); }
.money { position: relative; }
.money .sym { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 17px; pointer-events: none; }
.money input[type="text"] { padding-left: 32px; }
.money[data-len="2"] input[type="text"] { padding-left: 42px; }
.money[data-len="3"] input[type="text"] { padding-left: 52px; }

/* option rows: a native radio or checkbox, the label and a hint, the use's rate on the right */
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 13px 14px; min-height: 52px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.opt:hover { border-color: var(--edge); }
.opt:has(input:checked) { border-color: var(--edge); background: var(--raised); }
.opt:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.opt input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: #F2F2F2; }
.opt .ol { font-size: 16px; line-height: 1.35; color: var(--text); }
.opt .oh { display: block; font-size: 13px; color: var(--dim); margin-top: 2px; }
.opt .pc { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; padding-top: 1px; min-width: 3.5ch; text-align: right; }
@media (min-width: 720px) { .opts:not(.uses) { grid-template-columns: 1fr 1fr; } }

/* your rates */
.rates { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 0 0 8px; }
.rates summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rates summary::-webkit-details-marker { display: none; }
.rates summary::after { content: "+"; margin-left: auto; color: var(--faint); font-weight: 400; }
.rates[open] summary::after { content: "\2013"; }
.rates .rs { font-size: 14px; font-weight: 400; color: var(--dim); }
.rates .rs b { color: var(--text); font-weight: 600; }
.rbody { padding: 0 16px 16px; }
.rbody table { width: 100%; border-collapse: collapse; }
.rbody th, .rbody td { padding: 6px 0; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.rbody th { font-size: 14px; font-weight: 400; color: var(--text); padding-right: 12px; }
.rbody th label { display: block; }
.rbody .rn { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.rbody tr.rg th { padding-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); border-bottom: 0; }
.rbody td { white-space: nowrap; width: 1%; }
.rbody input.rate { width: 88px; height: 40px; padding: 0 10px; font-size: 16px; text-align: right; }
.rbody input.rate.changed { border-color: var(--text); }
.rbody .ru { display: inline-block; width: 1.4em; margin-left: 6px; color: var(--dim); }
.ghostbtn { height: 44px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--edge); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.ghostbtn:hover { background: var(--raised); }
.rbody .ghostbtn { margin-top: 16px; }

/* the result */
.lcout .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.lcout .card .kicker { margin: 0 0 6px; }
.total { margin: 0 0 14px; font-size: 48px; line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.total.long { font-size: 34px; line-height: 1.5; }
.lines, .usage { margin: 0; }
.lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.lines dt { color: var(--dim); font-size: 15px; }
.lines dd { margin: 0; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.ratio { margin: 0 0 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; color: var(--dim); min-height: 2.9em; }
.usage { display: grid; gap: 6px; margin-bottom: 16px; }
.usage > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.4; }
.usage dt { color: var(--faint); }
.usage dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.go { height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--green); background: var(--green); color: var(--bg); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.go:hover { filter: brightness(1.05); }
.go:active { filter: brightness(0.92); }
.copied { margin: 8px 0 0; font-size: 14px; color: var(--dim); min-height: 1.45em; }
.how { margin-top: 10px; border-top: 1px solid var(--border); }
.how summary { cursor: pointer; padding: 12px 0 4px; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.how[open] summary::after { content: "\2013"; }
.how ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.how li { font-size: 14px; line-height: 1.45; color: var(--dim); font-variant-numeric: tabular-nums; }
.how li:last-child { color: var(--text); font-weight: 600; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--faint); line-height: 1.45; }

/* the estimate mail */
.lcmail { margin-top: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.lcmail h2 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 6px; }
.lcmail .mb { font-size: 14px; color: var(--dim); margin: 0 0 14px; line-height: 1.5; }
.em > label[for] { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.emrow { display: flex; gap: 8px; }
.emrow input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 14px; font: inherit; font-size: 17px; background: #FFFFFF; color: #111; border: 1px solid #FFFFFF; border-radius: var(--radius-sm); }
.emrow input[type="email"]::placeholder { color: #6B6B72; }
.emrow input[type="email"]:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.emrow button { height: 48px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--green); background: var(--green); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.emrow button[disabled] { opacity: 0.6; cursor: default; }
.em .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.em .chk { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--text); cursor: pointer; }
.em .chk input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: #F2F2F2; }
.lcmail .msg { margin: 10px 0 0; font-size: 14px; color: var(--green); min-height: 0; }
.lcmail .msg:empty { display: none; }
.lcmail .msg.err { color: var(--red); }
.lcmail .note { margin: 10px 0 0; font-size: 13px; color: var(--faint); line-height: 1.45; }
.lcmail .note a, .sk a { color: var(--dim); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px; }
.sk { margin: 14px 2px 0; font-size: 14px; line-height: 1.5; color: var(--dim); }
.sk a { color: var(--text); }

/* the phone's total bar: fixed, so it never moves the page; shown only while the inputs are on screen and the card is not */
.lcbar { display: none; }
@media (max-width: 959px) {
  .lc { padding-bottom: 88px; }
  .lcbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 20, 22, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    transform: translateY(110%); transition: transform 0.2s ease; }
  .lcbar.show { transform: none; }
  .lcbar .bl { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
  .lcbar .bt { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-right: auto; white-space: nowrap; min-width: 0; }
  .lcbar .bt.long { font-size: 17px; }
  .lcbar .bb { font-size: 14px; color: var(--text); text-decoration: none; padding: 9px 12px; border: 1px solid var(--edge); border-radius: var(--radius-sm); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .lcbar { transition: none; } }

/* the article under the tool: the guides' column and type */
.lcdoc { padding: 0; margin: 56px 0 0; }
.lcdoc > h2:first-child { margin-top: 0; }
.lcdoc .fx td:first-child { white-space: nowrap; }
@media (max-width: 559px) { .lcdoc .fx td:first-child { white-space: normal; } }
.lcdoc .small { font-size: 14px; }
.lcdoc h2[id] { scroll-margin-top: 80px; }
#rates, #estimate { scroll-margin-top: 80px; }

/* the page lines up with the header and the footer: all three use this page's width, so the logo's left edge and
   the Download button's right edge sit on the page's edges (Will on br_cvc6ae33) */
.top .wrap, footer .wrap { max-width: 1120px; }

/* larger type and more room, for a long form and a long read */
.lchead h1 { font-size: clamp(34px, 5.6vw, 52px); }
.lclede { font-size: 19px; }
.lcwho { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--faint); max-width: 40rem; text-wrap: pretty; }
.lcs { margin-bottom: 40px; }
.lcs legend { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 14px; }
.lcs .sn { width: 28px; height: 28px; font-size: 13px; }
.lchelp { font-size: 15px; }
.field label { font-size: 15px; font-weight: 600; }
.field .fh { font-size: 14px; }
.opt { padding: 15px 16px; }
.opt .ol { font-size: 17px; font-weight: 500; }
.opt .oh { font-size: 14.5px; font-weight: 400; margin-top: 3px; }
.opt .pc { font-size: 15px; font-weight: 600; }
.lines dt { font-size: 16px; } .lines dd { font-size: 17px; font-weight: 600; }
.ratio, .usage > div, .lcmail .mb, .sk { font-size: 15px; }
.total { font-size: 56px; }
.lcdoc.doc p, .lcdoc.doc li, .lcdoc.doc td { font-size: 17px; line-height: 1.6; }
.lcdoc.doc h2 { font-size: 26px; letter-spacing: -0.015em; margin-top: 44px; }

/* the light page: a cool off-white, never cream. Black ink, white fields, moss for the step numbers, the picked
   options, the button and the result card. The footer stays black. */
:root { --bg: #F4F6F5; --surface: #FFFFFF; --raised: #FFFFFF; --border: #DCE2DF; --border-strong: #C3CCC7; --edge: #98A39D;
  --text: #0B0B0C; --dim: #474E4A; --faint: #69726D; --green: #176349; }
body { background: var(--bg); color: var(--text); }
.top { background: rgba(244, 246, 245, 0.9); }
.brand .word { filter: invert(1); }
.nav a:hover { background: #E8ECEA; }
.calc input[type="text"], .calc select { background-color: #FFFFFF; border-color: var(--edge); }
.lcs .sn { background: #176349; color: #F2F2F2; border-color: #176349; }
.opt { box-shadow: 0 1px 0 rgba(11, 11, 12, 0.03); }
.opt input, .em .chk input { accent-color: #176349; }
.opt:has(input:checked) { border-color: #176349; box-shadow: inset 0 0 0 1px #176349; background: #FFFFFF; }
.opt:has(input:checked) .pc { color: #176349; }
.go, .emrow button { color: #F2F2F2; }
.ghostbtn { color: var(--text); } .ghostbtn:hover { background: #E8ECEA; }
.lcout .card { background: #176349; border-color: #176349; color: #F2F2F2; --text: #F2F2F2; --dim: #D3E7DF; --faint: #B4D2C7; --border: #2E7A61; --edge: #8FBFAE; }
.lcout .card .go { background: #F2F2F2; border-color: #F2F2F2; color: #0B0B0C; }
.lcout .card .ghostbtn:hover { background: #125540; }
.lcmail { background: #FFFFFF; }
.emrow input[type="email"] { border-color: var(--edge); }
.lcmail .msg { color: #176349; }
.lcbar { background: rgba(255, 255, 255, 0.94) !important; }
footer { background: #0B0B0C; color: #80808A; --text: #F2F2F2; --dim: #8A8A90; --faint: #80808A; --border: #26262A; }
footer .brand .word { filter: none; }
