/* A&A — free preliminary trademark check page. Uses the tokens of site.css. */
.tm [hidden] { display: none !important; }
.tm-hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tm { display: flex; flex-direction: column; gap: 22px; }
.tm-panel { background: #fff; border: 1px solid var(--line); border-block-start: 3px solid var(--gold); padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.tm-sub { color: var(--muted); max-width: 720px; }
.tm-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-block-end: 6px; font-size: 14px; color: var(--subtle); }
.tm-steps li { display: flex; align-items: center; gap: 8px; }
.tm-steps span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--input); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.tm-steps [aria-current] { color: var(--navy); font-weight: 700; }
.tm-steps [aria-current] span { background: var(--navy); border-color: var(--navy); color: #fff; }
.tm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block-start: 6px; }
.tm-form .field--full { grid-column: 1 / -1; }
.tm-bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-block-start: 6px; }
.tm-bar .btn { min-width: 150px; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--outline:hover { background: var(--cloud); color: var(--navy); }
@media (max-width: 760px) { .tm-form, .tm-bar { grid-template-columns: 1fr; } .tm-bar .btn { width: 100%; } }

.tm-sum__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tm-sum__row > div:first-child { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tm-sum .btn-row .btn { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.tm-b { display: inline-block; font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 20px; }

.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 400px) { .tm-grid { grid-template-columns: 1fr; } }
.tmr { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--line); display: flex; flex-direction: column; }
.tmr__logo { height: 130px; background: #fff; border-block-end: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 12px; }
.tmr__logo img { max-height: 106px; max-width: 100%; width: auto; object-fit: contain; }
.tmr__logo:empty, .tmr__logo--none { height: 0; padding: 0; border: 0; }
.tmr__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tmr__name { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.35; word-break: break-word; }
.tmr__meter { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.tmr__bar { flex: 1; height: 6px; background: var(--cloud); border-radius: 4px; overflow: hidden; }
.tmr__bar i { display: block; height: 100%; background: var(--gold); }
.tmr__meter b { color: var(--navy); }
.tmr dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.tmr dt { color: var(--subtle); } .tmr dd { margin: 0; color: var(--ink); word-break: break-word; }
.tm-pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 1px 10px; border-radius: 12px; background: var(--cloud); color: var(--navy); }
.tm-s0, .tm-s2 { background: #E8F5EE; color: #1F7A4D; } .tm-s1, .tm-s5 { background: #E8EFF9; color: #1D4F91; } .tm-s3, .tm-s4 { background: #EEF1F6; color: #5A6675; }
.tmr__adv { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-block-start: auto; padding-block-start: 6px; border-block-start: 1px dashed var(--line); }
.tmr__xp { font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; border-block-end: 1px solid var(--gold); align-self: flex-start; }
.tmr__xp:hover { color: var(--gold-text); }

.tm-cta { background: var(--navy); color: #fff; padding: clamp(22px, 4vw, 36px); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.tm-cta > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.tm-cta__h { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); color: var(--gold-light); font-weight: 600; }
.tm-cta p:not(.tm-cta__h) { color: var(--on-navy); }
.tm-note { font-size: 13px; color: var(--subtle); line-height: 1.7; }

.tm-band__in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.tm-band__in > div { flex: 1 1 480px; }

/* v2: risk colours (very high / high / medium / low / further assessment) */
.tm-b--vh, .tm-r--vh { background: #FBE4E2; color: #8F1D14; } .tm-b--h, .tm-r--h { background: #FDECE3; color: #A63D0F; }
.tm-b--m, .tm-r--m { background: #FFF4E0; color: #7A4A00; } .tm-b--l, .tm-r--l { background: #E8F5EE; color: #1F6B45; } .tm-b--fla, .tm-r--fla { background: #E8EFF9; color: #1D4F91; }
.tmr--vh { border-inline-start-color: #8F1D14; } .tmr--h { border-inline-start-color: #C2410C; } .tmr--m { border-inline-start-color: #D99A2B; } .tmr--l { border-inline-start-color: #1F7A4D; } .tmr--fla { border-inline-start-color: #1D4F91; }
.tm-pill { white-space: nowrap; }

/* class picker */
.tm-bar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) auto; }
.tm-lbl { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-block-end: 6px; }
.tm-dd { position: relative; }
.tm-dd > summary { list-style: none; cursor: pointer; border: 1px solid var(--input); background: #fff; min-height: 48px; padding: 12px 14px; padding-inline-end: 36px; position: relative; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-dd > summary::-webkit-details-marker { display: none; }
.tm-dd > summary::after { content: "▾"; position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tm-dd > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tm-dd__list { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--input); box-shadow: 0 12px 30px rgba(16, 39, 73, .14); max-height: 320px; overflow: auto; padding: 6px; }
.tm-dd__list label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; font-size: 14px; cursor: pointer; border-radius: 4px; }
.tm-dd__list label:hover { background: var(--cloud); }
.tm-dd__list b { min-width: 22px; color: var(--navy); }
.tm-dd__list input:disabled + b { opacity: .45; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chips:empty { display: none; }
.tm-chip { border: 1px solid var(--navy); background: var(--cloud); color: var(--navy); border-radius: 18px; padding: 5px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.tm-chip span { margin-inline-start: 6px; font-weight: 700; }
.tm-src { font-size: 13px; color: var(--muted); line-height: 1.7; border-block-start: 1px solid var(--line); padding-block-start: 12px; }
.tm-src:empty { display: none; }

/* summary + cards */
.tm-sum__q { font-size: 14.5px; color: var(--ink); }
.tm-sum__n { font-size: 13px; color: var(--subtle); }
.tmr__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tmr__why { font-size: 13.5px; color: var(--navy); background: var(--sand, #F6F3EC); padding: 6px 10px; border-inline-start: 3px solid var(--gold); }
.tmr__more { font-size: 13.5px; border-block-start: 1px dashed var(--line); padding-block-start: 8px; }
.tmr__more summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.tmr__more p { margin-block-start: 8px; color: var(--muted); line-height: 1.6; }
.tmr__apps { width: 100%; border-collapse: collapse; margin-block-start: 8px; font-size: 12.5px; display: block; overflow-x: auto; }
.tmr__apps th, .tmr__apps td { border-block-end: 1px solid var(--line); padding: 5px 6px; text-align: start; white-space: nowrap; }
.tmr__apps th { color: var(--subtle); font-weight: 600; }
.tm-more { text-align: center; }

/* PDF + actions + disclaimer */
.tm-pdf__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.tm-pdf__row > div { flex: 1 1 380px; }
.tm-priv { font-size: 13px; color: var(--muted); }
.tm-ok { color: #1F6B45; font-weight: 700; }
.tm-acts { display: flex; flex-direction: column; gap: 14px; }
.tm-acts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tm-act { background: #fff; border: 1px solid var(--line); border-block-start: 3px solid var(--navy); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tm-act h3 { font-size: 17px; color: var(--navy); font-weight: 700; }
.tm-act p { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.tm-act .btn { align-self: flex-start; }
@media (max-width: 900px) { .tm-acts__grid { grid-template-columns: 1fr; } }
.tm-disc { background: #fff; border: 1px solid var(--line); padding: 14px 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.tm-disc summary { cursor: pointer; }
.tm-disc__more { color: var(--navy); font-weight: 700; text-decoration: underline; }
.tm-disc p { margin-block-start: 8px; }
@media (max-width: 760px) { .tm-bar { grid-template-columns: 1fr; } }
/* v2b: one class, status pills, PDF button row */
.tm-bar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) auto; }
@media (max-width: 760px) { .tm-bar { grid-template-columns: 1fr; } }
.tm-st--reg { background: #E8F5EE; color: #1F6B45; } .tm-st--chk { background: #FFF4E0; color: #7A4A00; white-space: normal; }
.tm-pdf__btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tm-pdf__btns select { min-height: 48px; border: 1px solid var(--input); padding: 0 12px; font: inherit; background: #fff; }
/* v2c: recommendation + quick actions at the top of the results */
.tm-reco { font-size: 15px; color: var(--ink); background: var(--cloud); border-inline-start: 3px solid var(--gold); padding: 10px 14px; }
.tm-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 6px 4px; }
@media (max-width: 600px) { .tm-quick .btn { flex: 1 1 100%; justify-content: center; text-align: center; } }
.field__error.tm-left { color: var(--navy); font-weight: 600; }
/* v2d: examiner note + why A&A */
.tm-exam { font-size: 14px; color: var(--navy); font-weight: 600; border: 1px dashed var(--gold); padding: 8px 12px; background: #fff; }
.tm-why { background: var(--navy); color: #fff; padding: 22px 24px; border-block-start: 3px solid var(--gold); }
.tm-why h2 { color: #E2D0AA; }
.tm-why p { margin-block: 8px; line-height: 1.7; }
.tm-why ul { margin: 0; padding-inline-start: 20px; line-height: 1.8; }
