/* Site-wide reading rhythm. Keep the existing typefaces, photographs and colours.
   This final layer changes presentation only; controls and data stay intact. */
.visual-system {
 --site-title:1.875rem;
 --site-section:1.25rem;
 --site-text:1rem;
 --site-control:0.9375rem;
 --site-help:0.875rem;
 --site-caption:0.8125rem;
}
:root {
 --reading-title:2rem;
 --reading-body:1rem;
 --reading-label:.875rem;
 --reading-sans:"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
}
@media(max-width:720px){
 :root{--reading-title:1.75rem}
}
.visual-system :is(.photo-workflow-upload,.photo-workflow,.memory-intro,.memory-workbench,.collection-page,.collection-form,.id-editor,.career-studio-inspection,.id-checkout-dialog,.career-checkout-dialog,.account-page,.product-page,.service-page,.collection-booking-page) {
 --portrait-page-title:var(--site-title);
 --portrait-section-title:var(--site-section);
 --portrait-text:var(--site-text);
 --portrait-control:var(--site-control);
 --portrait-help:var(--site-help);
 --portrait-meta:var(--site-caption);
 font-size:var(--site-text);
 line-height:1.7;
}

/* Supporting pages use the same readable hierarchy as the photo workspaces. */
.visual-system :is(.account-page,.product-page,.service-page,.collection-booking-page)>h2 {
 font-size:var(--site-title);line-height:1.45;margin:0 0 12px;
 overflow-wrap:anywhere;
}
.visual-system :is(.account-page,.product-page,.service-page,.collection-booking-page) h3 {
 font-size:var(--site-section);line-height:1.5;margin:0 0 10px;
}
.visual-system :is(.account-page,.product-page,.service-page,.collection-booking-page) :is(p,li,.lead) {
 font-size:var(--site-text);line-height:1.75;
}
.visual-system :is(.account-page,.product-page,.service-page,.collection-booking-page) :is(.help,.checkbox,.error,.account-status,.account-agreement) {
 font-size:var(--site-help);line-height:1.7;
}
.visual-system :is(.account-page,.product-page,.service-page,.collection-booking-page) :is(.primary,.secondary,.text-btn) {
 font-size:var(--site-control);line-height:1.6;min-height:44px;
 white-space:normal;overflow-wrap:anywhere;
}
.visual-system :is(.account-page,.product-page,.service-page,.collection-booking-page) .topbar .serif {
 font-size:1.125rem;line-height:1.5;
}
.visual-system :is(.account-page,.product-page,.service-page,.collection-booking-page) .icon-btn {
 min-width:44px;min-height:44px;
}
.visual-system .account-form>label {font-size:var(--site-control);line-height:1.6;margin:16px 0 6px}
.visual-system .account-page :is(input[type=tel],input[type=text]) {font-size:1rem;min-height:44px;height:auto;line-height:1.5}
.visual-system .account-page .account-code-row :is(button,input) {min-width:0}
.visual-system .account-page .account-code-row button {white-space:normal;min-height:44px}
.visual-system .account-page .account-status {margin:16px 0;padding:12px 14px}
.visual-system .service-page {max-width:46rem}
.visual-system .service-page>h2 {margin-bottom:20px}
.visual-system .service-page section {margin-block:20px}
.visual-system .service-page section p {margin-block:8px 0}
.visual-system .service-page a {overflow-wrap:anywhere}
.visual-system .product-page .product-mine-links :is(strong,small),
.visual-system .product-page .product-service-summary p {line-height:1.7}
.visual-system .product-page .product-mine-links strong {font-size:var(--site-control)}
.visual-system .product-page .product-mine-links small {font-size:var(--site-help)}
.visual-system .product-page .product-service-summary {padding:16px 0}
.visual-system .product-page .product-saving-note {font-size:var(--site-help);margin-top:18px}
.visual-system .focus-home :is(.focus-intro,.focus-home-copy) {font-size:var(--site-text);line-height:1.8}
.visual-system .focus-home .focus-service p {font-size:var(--site-help);line-height:1.7}
.visual-system .focus-home .focus-service .text-btn {font-size:var(--site-control);min-height:44px}
.visual-system .focus-home .focus-service h3 {font-size:var(--site-section);line-height:1.5}

/* Keep generous photographs, but remove repeated vertical gaps around tools. */
.visual-system :is(.photo-workflow,.memory-workbench) .career-panel-section h3 {margin-bottom:10px}
.visual-system :is(.photo-workflow,.memory-workbench) .career-panel-section>.help {margin-block:8px 12px;line-height:1.7}
.visual-system :is(.photo-workflow,.memory-workbench) .career-export-summary {margin-block:12px}
.visual-system :is(.photo-workflow,.memory-workbench) .id-slider {margin-block:16px}
.visual-system .photo-workflow-upload .photo-upload-guidance {padding:18px;margin-block:18px}
.visual-system .photo-workflow-upload .photo-upload-guidance .id-guide-grid {gap:16px}
.visual-system .photo-workflow-upload .photo-workflow-steps {margin-block:14px 20px}
.visual-system .collection-page .collection-heading {margin-bottom:20px}
.visual-system .collection-page .collection-detail-copy {padding-block:20px}
.visual-system .collection-page .collection-more {min-width:44px;min-height:44px}
.visual-system .collection-form .memory-field {margin-block:16px 10px}
.visual-system .collection-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {font-size:1rem}
.visual-system .collection-form .memory-date-row {display:flex;flex-wrap:wrap;gap:8px}
.visual-system .collection-form .memory-date-row>label {flex:1 1 4.25rem;min-width:0}
.visual-system .collection-form .memory-date-row>.memory-date-year {flex:1.25 1 5.25rem}
.visual-system .collection-form .memory-date-row :is(input,select) {padding-inline:6px}
.visual-system .id-workbench input[type=range] {height:44px;min-height:44px}

/* Compact dates only in the memory editor, not in collection forms.
   Flex wrapping lets large text keep full month/day labels and touch height. */
.visual-system .memory-workbench .memory-date-field {
 margin:14px 0 8px;padding:6px 0 0;
}
.visual-system .memory-workbench .memory-choices-type+.memory-date-field {margin-top:16px}
.visual-system .memory-workbench .memory-date-row,
.visual-system .memory-workbench .memory-date-meta {width:100%;max-width:18rem}
.visual-system .memory-workbench .memory-date-row {
 display:flex;flex-wrap:wrap;gap:8px;
}
.visual-system .memory-workbench .memory-date-row>label {
 flex:1 1 4.5rem;min-width:0;line-height:1.5;
}
.visual-system .memory-workbench .memory-date-row>.memory-date-year {flex:1.25 1 6rem}
.visual-system .memory-workbench .memory-date-row :is(input,select) {
 margin-top:4px;min-height:44px;height:auto;font-size:1rem;line-height:1.4;
 padding:7px 8px;
}
.visual-system .memory-workbench .memory-date-meta {gap:4px 12px;margin-top:6px;align-items:center}
.visual-system .memory-workbench .memory-date-meta :is(.help,.checkbox) {line-height:1.6}
.visual-system .memory-workbench .memory-date-display {margin-block:8px 12px}
.visual-system .memory-workbench .memory-field {margin-block:16px 10px}
.visual-system .memory-workbench .memory-field :is(input,textarea) {margin-top:6px;padding:10px 12px}

/* Payment, consent and errors stay readable; smaller captions are decorative. */
.visual-system :is(.id-checkout-dialog,.career-checkout-dialog) :is(p,.help,.error,label,.checkbox) {
 font-size:var(--site-help);line-height:1.7;
}
.visual-system :is(.id-checkout-dialog,.career-checkout-dialog) :is(.primary,.secondary,.text-btn) {
 font-size:var(--site-control);min-height:44px;line-height:1.6;white-space:normal;
}
.visual-system :is(.id-checkout-dialog,.career-checkout-dialog) h2 {font-size:1.5rem;line-height:1.5}
.visual-system :is(.id-checkout-dialog,.career-checkout-dialog) :is(h2,h3,p) {overflow-wrap:anywhere}
.visual-system #dialog-content :is(.error,.checkbox) {font-size:var(--site-help);line-height:1.7}
.visual-system #dialog-content>h3 {font-size:1.375rem;line-height:1.5}
.visual-system #dialog-content>p {font-size:var(--site-help);line-height:1.7}
.visual-system #dialog-close {font-size:var(--site-control);line-height:1.6;min-height:44px}
.visual-system .service-footer {font-size:0.8125rem;line-height:1.7;gap:12px 20px;flex-wrap:wrap}
.visual-system .service-footer a {display:inline-flex;align-items:center;min-height:36px}

@media(max-width:720px) {
 .visual-system {--site-title:1.75rem;--site-section:1.1875rem;--site-text:0.9375rem}
 .visual-system .photo-workflow-upload .photo-upload-guidance {padding:16px}
 .visual-system :is(.photo-workflow,.memory-workbench) .career-tool-panel {padding:16px}
 .visual-system :is(.photo-workflow,.memory-workbench) .career-tool-tabs {padding-block:8px}
 .visual-system .service-page section {margin-block:18px}
 .visual-system .account-page .account-code-row {display:flex;flex-wrap:wrap;gap:10px}
 .visual-system .account-page .account-code-row input {flex:1 1 10rem}
 .visual-system .account-page .account-code-row button {flex:1 1 6.5rem}
}
@media(max-width:720px) and (orientation:portrait) {
 .visual-system :is(.photo-workflow,.memory-workbench) :is(.career-workbench-body,.career-results-layout,.career-tools,.career-candidate-panel,.career-tool-panel,.career-candidate-scroll) {min-height:0}
}
