/* Newsletter by mail of professional-links.com: the sign-up blocks (article end, list, country and field pages),
   the slim link on the top page, the link in the footer, and the pages under /subscribe/.
   Loaded by /subscribe/assets/subscribe.js on the site's own pages.
   Read after style.css and newsletter.css; uses their tokens and the look of their parts (.btn, .eyebrow, .chip,
   .nl-searchbox, .nl-regions li) without new colours. */

/* --------------------------------------------------------------------------
   Block
   -------------------------------------------------------------------------- */
.nls { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 3.6vw, 44px) clamp(22px, 3.6vw, 46px) clamp(26px, 3.2vw, 40px); border-radius: var(--radius-l); }
.nls--dark { background: radial-gradient(640px 400px at 0% 0%, rgba(24, 160, 216, .2), transparent 62%), linear-gradient(155deg, #0b2259 0%, #06143d 54%, #030b24 100%); box-shadow: var(--shadow-m); color: #fff; }
.nls--dark::before, .nls--dark::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.nls--dark::before { width: 360px; aspect-ratio: 1; right: -130px; top: -210px; background: radial-gradient(circle at 34% 36%, rgba(27, 104, 176, .72), rgba(12, 62, 116, .5) 58%, rgba(11, 58, 107, .3)); }
.nls--dark::after { width: 240px; aspect-ratio: 1; right: 40px; bottom: -214px; background: radial-gradient(circle at 40% 28%, rgba(40, 170, 224, .4), rgba(15, 92, 160, .3) 68%); }
.nls--light { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-m); }
.nls--light::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--cyan-400), var(--blue-600)); }

.art-end + .nls, .art-note + .nls { margin-top: clamp(40px, 5vw, 64px); }
.nl-sec + .nls, .nls + .nl-sec { margin-top: clamp(48px, 5.6vw, 80px); }

.nls-title { margin-top: 16px; color: var(--ink); font-size: clamp(1.25rem, 1.05rem + .9vw, 1.625rem); font-weight: 700; line-height: 1.55; letter-spacing: .05em; text-wrap: balance; }
.nls--dark .nls-title { color: #fff; }
.nls-lead { margin-top: 10px; color: var(--muted); font-size: .9375rem; line-height: 1.9; word-break: auto-phrase; text-wrap: pretty; }
.nls--dark .nls-lead { color: rgba(255, 255, 255, .76); }

/* --------------------------------------------------------------------------
   Address and button
   -------------------------------------------------------------------------- */
html:not(.js) .nls-form { display: none; }
.nls-off { margin-top: 18px; color: var(--muted); font-size: .8125rem; }
.nls--dark .nls-off { color: rgba(255, 255, 255, .7); }
.nls-form { margin-top: 24px; }
.nls-row { display: flex; align-items: stretch; gap: 12px; }
.nls-mail { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; height: 60px; padding: 0 22px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--soft); transition: border-color .25s, background-color .25s, box-shadow .25s; cursor: text; }
.nls-mail > svg { flex: none; width: 20px; height: 20px; color: var(--cyan-600); stroke-width: 2.2; }
.nls-mail input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: .03em; -webkit-appearance: none; appearance: none; }
.nls-mail input::placeholder { color: #8a94a8; font-weight: 400; opacity: 1; }
.nls-mail input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--ink); }
.nls-mail:focus-within { border-color: var(--cyan-500); background: #fff; box-shadow: 0 0 0 5px rgba(24, 160, 216, .14); }
.nls--dark .nls-mail { border-color: #fff; background: #fff; }
.nls--dark .nls-mail:focus-within { border-color: var(--cyan-400); box-shadow: 0 0 0 5px rgba(66, 184, 230, .32); }
.nls-form.is-invalid .nls-mail { border-color: #d0364b; background: #fff8f9; }
.nls-row .btn { flex: none; min-height: 60px; }
.nls-error { margin-top: 10px; color: #c22a3f; font-size: .8125rem; font-weight: 500; line-height: 1.6; }
.nls--dark .nls-error { color: #ffb4bf; }
.nls-error:empty { display: none; }

/* --------------------------------------------------------------------------
   What to receive: countries and regions, fields
   -------------------------------------------------------------------------- */
.nls-opts { margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--line); }
.nls--dark .nls-opts { border-top-color: rgba(255, 255, 255, .2); }
.nls-opts[hidden], .nls-done[hidden], .nls-step[hidden] { display: none; }
.nls-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.nls-set + .nls-set { margin-top: 20px; }
.nls-set legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; padding: 0; color: var(--ink); font-size: .875rem; font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.nls-set legend small { color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .04em; }
.nls--dark .nls-set legend { color: #fff; }
.nls--dark .nls-set legend small { color: rgba(255, 255, 255, .64); }
.nls-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nls-pick { position: relative; display: inline-flex; }
.nls-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nls-pick span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .875rem; font-weight: 500; line-height: 1.3; letter-spacing: .04em; transition: border-color .25s, background-color .25s, color .25s, box-shadow .25s; }
.nls-pick span svg { display: none; width: 14px; height: 14px; stroke-width: 3; }
.nls-pick:hover span { border-color: var(--cyan-500); color: var(--cyan-600); }
.nls-pick input:checked + span { border-color: var(--navy-900); background: var(--navy-900); color: #fff; font-weight: 700; }
.nls-pick input:checked + span svg { display: block; }
.nls-pick input:focus-visible + span { box-shadow: 0 0 0 4px rgba(24, 160, 216, .32); }
.nls-pick--all span { border-style: dashed; }
.nls-pick--all input:checked + span { border-style: solid; }
.nls--dark .nls-pick span { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; }
.nls--dark .nls-pick:hover span { border-color: var(--cyan-400); color: #fff; }
.nls--dark .nls-pick input:checked + span { border-color: #fff; background: #fff; color: var(--navy-900); }
.nls--dark .nls-pick input:focus-visible + span { box-shadow: 0 0 0 4px rgba(66, 184, 230, .45); }
/* regions: the whole region in the first column, its countries in the second */
.nls-arows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 12px; align-items: start; }
.nls-arow-all { grid-column: 1 / -1; }
.nls-arow { display: contents; }
.nls-arow-a { display: flex; }
.nls-arow-c { display: flex; flex-wrap: wrap; gap: 8px; }
.nls-pick--area span { border-color: var(--cyan-200); background: var(--cyan-50); font-weight: 700; }
.nls--dark .nls-pick--area span { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .14); }
.nls-rule { margin-top: 12px; color: var(--muted); font-size: .75rem; line-height: 1.8; }
.nls--dark .nls-rule { color: rgba(255, 255, 255, .64); }

.nls-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.nls-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.nls--dark .nls-back { color: rgba(255, 255, 255, .7); }
.nls-note { margin-top: 16px; color: var(--muted); font-size: .75rem; line-height: 1.9; }
.nls-note a { color: var(--cyan-600); text-decoration: underline; text-underline-offset: 3px; }
.nls--dark .nls-note { color: rgba(255, 255, 255, .62); }
.nls--dark .nls-note a { color: #fff; }
.nls-form.is-sending .btn, .nls-form.is-sending .btn:hover { transform: none; opacity: .86; }

/* --------------------------------------------------------------------------
   After sending
   -------------------------------------------------------------------------- */
.nls-done { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: center; }
.nls-done-ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(145deg, #2fb2e4, #1590c8); box-shadow: 0 12px 26px rgba(24, 160, 216, .34); color: #fff; }
.nls-done-ico svg { width: 26px; height: 26px; stroke-width: 2.6; }
.nls-done-h { color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1.6; letter-spacing: .05em; }
.nls-done-h:focus { outline: none; }
.nls--dark .nls-done-h { color: #fff; }
.nls-done-p { color: var(--muted); font-size: .875rem; line-height: 1.9; }
.nls--dark .nls-done-p { color: rgba(255, 255, 255, .76); }

/* --------------------------------------------------------------------------
   Wide block (list and hub pages): words on the left, address on the right
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .nls--band { padding: 44px 52px 42px; }
  .nls--band .nls-first { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 56px; align-items: center; }
  .nls--band .nls-first .nls-form { margin-top: 0; }
  .nls--band.is-open .nls-first { display: block; }
  .nls--band.is-open .nls-first .nls-form { margin-top: 24px; }
  .nls--band .nls-opts { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 0 56px; }
  .nls--band .nls-opts[hidden] { display: none; }
  .nls--band .nls-set + .nls-set { margin-top: 0; }
  .nls--band .nls-opts > :not(.nls-set) { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Top page: one slim link under the newest articles
   -------------------------------------------------------------------------- */
.nls-bar { display: flex; align-items: center; gap: 18px; width: min(100%, 760px); margin: clamp(28px, 3.4vw, 40px) auto 0; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-s); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.nls-bar:hover { transform: translateY(-2px); border-color: var(--cyan-200); box-shadow: var(--shadow-m); }
.nls-bar-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, #2fb2e4, #1590c8); color: #fff; }
.nls-bar-ico svg { width: 20px; height: 20px; stroke-width: 2.2; }
.nls-bar-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.nls-bar-text b { font-size: .9375rem; font-weight: 700; letter-spacing: .06em; }
.nls-bar-text small { color: var(--muted); font-size: .8125rem; letter-spacing: .03em; }
.nls-bar-go { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--navy-900); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.nls-bar-go i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .35s var(--ease); }
.nls-bar-go svg { width: 13px; height: 13px; stroke-width: 2.4; }
.nls-bar:hover .nls-bar-go i { transform: translateX(3px); }
.sec-foot + .nls-bar { margin-top: clamp(24px, 3vw, 36px); }

/* --------------------------------------------------------------------------
   Footer: one link under the address
   -------------------------------------------------------------------------- */
.footer-nls { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; min-height: 44px; padding: 0 20px 0 16px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; color: rgba(255, 255, 255, .9); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; transition: border-color .25s, background-color .25s, color .25s; }
.footer-nls svg { width: 16px; height: 16px; color: var(--cyan-400); stroke-width: 2.2; }
.footer-nls:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); color: #fff; }

/* --------------------------------------------------------------------------
   Sign-up page (the card follows the contact page's)
   -------------------------------------------------------------------------- */
.nls-page .nls-field > label { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .9375rem; font-weight: 700; letter-spacing: .04em; }
.nls-page .nls-mail { margin-top: 10px; border-radius: 14px; height: 58px; padding: 0 18px; }
.nls-page .nls-block { margin-top: 34px; }
.nls-page .nls-block-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--ink); font-size: .9375rem; font-weight: 700; letter-spacing: .04em; }
.nls-page .nls-block-h small { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.nls-page .nls-chips { margin-top: 12px; }
.nls-page .nls-arows { margin-top: 12px; }
.nls-sum { margin-top: 34px; padding: 20px 24px; border-radius: var(--radius-m); background: var(--cyan-50); color: var(--text); font-size: .875rem; line-height: 1.9; }
.nls-sum b { color: var(--ink); }
.nls-opts .nls-sum { margin-top: 22px; padding: 14px 20px; font-size: .8125rem; }
.nls--dark .nls-sum { background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .8); }
.nls--dark .nls-sum b { color: #fff; }
.nls-page .form-actions { margin-top: 30px; }
.nls-page .nls-note { margin-top: 18px; text-align: center; }

@media (max-width: 639px) {
  .nls-row { flex-direction: column; }
  .nls-mail { flex: none; height: 56px; padding: 0 18px; }
  .nls-row .btn { width: 100%; min-height: 56px; justify-content: space-between; padding-left: 26px; }
  .nls-actions .btn { width: 100%; justify-content: space-between; padding-left: 26px; }
  .nls-pick span { min-height: 38px; padding: 5px 14px; font-size: .8125rem; }
  .nls-arows { grid-template-columns: minmax(0, 1fr); }
  .nls-arow { display: flex; flex-wrap: wrap; gap: 8px; }
  .nls-arow-a, .nls-arow-c { display: contents; }
  .nls--dark::after { display: none; }
  .nls-done { grid-template-columns: 1fr; }
  .nls-done-ico { grid-row: auto; width: 52px; height: 52px; }
  .nls-bar { flex-wrap: wrap; gap: 12px 14px; padding: 16px 18px 18px; border-radius: var(--radius-l); }
  .nls-bar-text { flex-basis: calc(100% - 60px); flex-direction: column; gap: 2px; }
  .nls-bar-go { width: 100%; justify-content: space-between; }
}
/* --------------------------------------------------------------------------
   Pages under /subscribe/: confirmation, settings, the owner's page
   -------------------------------------------------------------------------- */
.btn--line { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn--line .ico { background: rgba(6, 20, 61, .08); }
.btn--line:hover { border-color: var(--cyan-500); }
.nls-page .nls-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 34px; max-width: none; }
.nls-page .nls-links .btn { margin-top: 0; }
.nls-page .nls-wait { margin-top: 34px; color: var(--muted); text-align: center; }
.nls-page .nls-saved { margin-top: 16px; min-height: 1.8em; color: var(--cyan-600); font-size: .875rem; font-weight: 700; text-align: center; }
.nls-page .form > .nls-sum:first-child { margin-top: 0; }
.nls-page .nls-rule + .nls-sum { margin-top: 22px; }
.nls-stop { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.form .nls-stop { margin-top: 26px; padding-top: 0; border-top: 0; }
.nls-stop .btn { margin-top: 14px; }
.nls-stop-note { margin-top: 0; color: var(--muted); font-size: .875rem; }
.nls-textbtn { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.nls-textbtn:hover { color: var(--ink); }
.nls-list { margin-top: 6px; border-top: 1px solid var(--line); text-align: left; }
.nls-list li { padding: 14px 2px; border-bottom: 1px solid var(--line); }
.nls-list b { display: block; margin-top: 4px; color: var(--ink); font-size: .9375rem; line-height: 1.7; }
.nls-list-m { color: var(--muted); font-size: .75rem; letter-spacing: .06em; }
.nls-page .field-error:empty { display: none; }
/* the owner's page: one of three actions, each with a line that says when to use it (the contact form's .check, round) */
.nls-page .nls-what { margin-top: 34px; }
.nls-what .check { display: flex; align-items: flex-start; margin-top: 16px; }
.nls-what .check input { top: 0; margin-top: 0; }
.nls-what .check-box { border-radius: 50%; }
.nls-what .check-text b { display: block; line-height: 26px; }
.nls-what .check-text small { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; line-height: 1.8; }
/* the three numbers: each stays whole, the line breaks between them; then the address field, with room above it */
.nls-tally span { display: inline-block; white-space: nowrap; }
.nls-page .nls-tally + .field { margin-top: 30px; }
/* the result names the address it was about, on a line of its own */
.nls-saved .nls-who { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
/* its button "管理用のリンクをメールで受け取る" is longer than a phone is wide: the words may wrap */
[data-nls-page="owner"] .form-actions .btn { max-width: 100%; white-space: normal; text-align: left; line-height: 1.5; }

html:lang(en) :is(.nls-title, .nls-set legend, .nls-pick span, .nls-bar-text b, .nls-bar-go, .footer-nls) { letter-spacing: .005em; }
