/* RC8.5: single source for tutor Home, plus scoped banner and credit history. */
@font-face{font-family:Nunito;src:url('/assets/fonts/nunito-400.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Nunito;src:url('/assets/fonts/nunito-600.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Nunito;src:url('/assets/fonts/nunito-700.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:Nunito;src:url('/assets/fonts/nunito-800.ttf') format('truetype');font-weight:800;font-display:swap}
@font-face{font-family:Nunito;src:url('/assets/fonts/nunito-900.ttf') format('truetype');font-weight:900;font-display:swap}
@font-face{font-family:Pacifico;src:url('/assets/fonts/pacifico-400.ttf') format('truetype');font-weight:400;font-display:swap}
.tutor-home-page{background:var(--cream,#faf8f2);font-family:Nunito,sans-serif;line-height:1.35;min-height:100dvh}
.tutor-home-page .topbar{display:none}
.tutor-home-page .page{position:relative;max-width:760px;padding:12px 12px 112px}
.tutor-home-shell{position:relative;isolation:isolate}
.tutor-home-shell>*:not(.tutor-photo-watermark):not(.tutor-pattern-watermark){position:relative;z-index:2}
.tutor-photo-watermark,.tutor-pattern-watermark{position:fixed;inset:0;pointer-events:none;z-index:0}
.tutor-photo-watermark{opacity:.045;filter:saturate(.65)}
.tutor-pattern-watermark{background:url('/assets/pet-watermark-pattern.svg') repeat;background-size:170px;opacity:.07}
.tutor-demo-strip{font-size:12px;padding:8px 12px;margin-bottom:10px}
.tutor-profile-card{padding:14px;background:rgba(255,255,255,.83);border:1px solid #e3e9df;border-radius:26px;box-shadow:0 8px 28px #21483808}
.tutor-brand-mark{display:flex;gap:10px;align-items:center;justify-content:center;margin:0 0 18px;color:var(--teal)}
.tutor-brand-mark>img{width:38px;height:38px;object-fit:contain;flex:none}
.tutor-brand-mark>div{min-width:0}
.tutor-brand-mark span{display:block;font-family:Pacifico,Nunito,cursive;font-size:clamp(23px,4.8vw,32px);font-weight:400;line-height:1.45}
.tutor-brand-mark b{font-weight:400}
.tutor-brand-mark small{display:block;font-size:11px;color:#566b60;line-height:1.4}
/* Photo and facts share a responsive grid; facts can span both columns on narrow screens. */
.tutor-identity-grid{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(0,1.2fr);gap:8px 14px;align-items:center}
.tutor-pet-photo{grid-row:1/3;display:block;position:relative;aspect-ratio:1;width:100%;border:6px solid #ccebd8;border-radius:50%;background:#eef7ec;box-shadow:0 5px 16px #31564212}
.tutor-pet-photo>img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:50%}
.tutor-photo-badge{position:absolute;right:0;bottom:2px;display:grid;place-items:center;width:38px;height:38px;background:var(--teal);color:white;border:3px solid white;border-radius:50%}
.tutor-photo-badge svg{width:21px;height:21px}
.tutor-identity-copy{min-width:0;align-self:end}
.tutor-pet-name-row{display:flex;align-items:center;gap:8px}
.tutor-profile-card h1{font-family:Nunito,sans-serif;font-size:clamp(30px,6vw,42px);font-weight:900;line-height:1.08;letter-spacing:-1px;color:var(--ink);margin:0;overflow-wrap:anywhere}
.tutor-verified{display:flex;flex:none;color:#21a956}
.tutor-verified svg{width:25px;height:25px;fill:currentColor;stroke:none}
.tutor-pet-tagline{font-size:14px;font-weight:600;line-height:1.35;margin:4px 0 0;color:#3d5449}
.tutor-pet-tagline span{color:#db905a}
.tutor-pet-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-self:start;margin:0;border:1px solid #e3e9e1;border-radius:15px;background:#ffffffa8;overflow:hidden}
.tutor-pet-facts>div{display:flex;align-items:center;gap:7px;padding:9px;min-width:0}
.tutor-pet-facts>div:nth-child(odd){border-right:1px solid #e8eee6}
.tutor-pet-facts>div:nth-child(-n+2){border-bottom:1px solid #e8eee6}
.tutor-pet-facts svg{width:22px;height:22px;color:var(--teal)}
.tutor-pet-facts span{min-width:0}
.tutor-pet-facts dt{font-size:11px;color:#64736b;line-height:1.25}
.tutor-pet-facts dd{margin:2px 0 0;font-size:13px;font-weight:800;line-height:1.3;white-space:normal;overflow-wrap:anywhere;color:var(--ink)}
.tutor-owner-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px;border:1px solid #e0e9e1;border-radius:15px;background:#f3faf5c9}
.tutor-owner-data,.tutor-whatsapp-link{display:flex;align-items:center;gap:8px;padding:10px;min-width:0;text-decoration:none}
.tutor-owner-data{border-right:1px solid #e0e9e1}
.tutor-owner-data svg,.tutor-whatsapp-link svg{width:24px;height:24px;color:var(--teal)}
.tutor-whatsapp-link svg{color:#199d51}
.tutor-owner-data span,.tutor-whatsapp-link span{min-width:0}
.tutor-owner-row small{display:block;font-size:11px;color:#64736b;line-height:1.3}
.tutor-owner-row strong{display:block;font-size:13px;font-weight:800;line-height:1.35;color:var(--ink);white-space:normal;overflow-wrap:anywhere}
.tutor-health-link,.tutor-nfc-status{display:grid;grid-template-columns:34px minmax(0,1fr) 24px;gap:10px;align-items:center;margin-top:9px;padding:11px;border-radius:16px;border:1px solid #e0e7dc;text-decoration:none;color:var(--ink);background:#fff}
.tutor-nfc-status{background:linear-gradient(110deg,#ddf2e5,#eff9eb);border-color:#d7ebdc}
.tutor-nfc-status.is-inactive{background:#f7f1e3}
.tutor-row-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--teal);color:#fff}
.tutor-row-icon svg{width:23px;height:23px}
.tutor-nfc-status .tutor-row-icon{border-radius:10px}
.tutor-row-copy strong{display:block;font-size:15px;font-weight:800;line-height:1.25}
.tutor-row-copy small{display:block;font-size:12px;line-height:1.35;margin-top:3px;color:#5e7064}
.tutor-row-arrow{font-size:30px;color:var(--teal);line-height:1}
.tutor-nfc-wave{width:24px;height:24px;color:var(--teal)}
.tutor-pet-switch{margin-top:10px;padding:0 10px;border:1px solid #e0e7dc;border-radius:12px;background:#fff;font-size:13px}
.tutor-pet-switch summary{padding:9px 0;min-height:36px}
.tutor-story-card{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;align-items:center;background:linear-gradient(120deg,#fcebdc,#f9e1cc);border:1px solid #efd0b7;border-radius:24px;padding:20px;margin:14px 0 18px;color:#723e25;text-decoration:none;overflow:hidden}
.tutor-story-card:hover{text-decoration:none}
.tutor-story-copy{min-width:0}
.tutor-story-copy .eyebrow{display:none}
.tutor-story-copy h2{font-family:Nunito,sans-serif;font-size:clamp(26px,5.4vw,36px);font-weight:900;letter-spacing:-1px;line-height:1.08;margin:0 0 8px;color:#713821}
.tutor-story-copy h2 span{color:#e66465}
.tutor-story-copy p{font-size:15px;line-height:1.35;margin:0 0 14px;color:#725444}
.tutor-story-copy strong{display:inline-flex;gap:6px;align-items:center;min-height:42px;padding:9px 16px;border-radius:99px;background:#875032;color:white;font-size:13px;font-weight:800;line-height:1.25}
.tutor-story-polaroids{position:relative;height:138px}
.story-shot{position:absolute;display:block;width:99px;height:120px;padding:5px 5px 22px;background:white;box-shadow:0 5px 12px #81502b24}
.story-shot img{display:block;width:100%;height:100%;object-fit:cover}
.story-shot-back{right:23px;top:9px;transform:rotate(-10deg)}
.story-shot-front{right:0;top:3px;transform:rotate(9deg)}
.story-shot-front:after{content:'♥';position:absolute;bottom:2px;left:42px;font-size:15px;color:#ab7557}
.tutor-features{margin:16px 0 0}
.tutor-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 2px 12px}
.tutor-section-heading .eyebrow{display:none}
.tutor-section-heading h2{font-size:24px;font-weight:900;letter-spacing:-.6px;line-height:1.15;margin:0;color:var(--ink)}
.tutor-section-heading>a{font-size:12px;font-weight:800;white-space:nowrap}
.tutor-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.tutor-feature-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:112px;border-radius:19px;padding:12px 6px;text-align:center;border:1px solid #183c3510;text-decoration:none}
.tutor-feature-card:hover{text-decoration:none;filter:brightness(.98)}
.tutor-feature-card:nth-child(8n+1){background:#fbe3e8;color:#872f47}
.tutor-feature-card:nth-child(8n+2){background:#fff1cf;color:#775317}
.tutor-feature-card:nth-child(8n+3){background:#e1f1e4;color:#23583f}
.tutor-feature-card:nth-child(8n+4){background:#e0f0fa;color:#2e5870}
.tutor-feature-card:nth-child(8n+5){background:#ece4f7;color:#59417b}
.tutor-feature-card:nth-child(8n+6){background:#fce5d7;color:#87503b}
.tutor-feature-card:nth-child(8n+7){background:#e0f2e9;color:#32634f}
.tutor-feature-card:nth-child(8n+8){background:#fbe3ea;color:#872f47}
.tutor-feature-icon{display:flex;align-items:center;justify-content:center}
.tutor-feature-icon svg{width:30px;height:30px}
.tutor-feature-card strong{font-size:13px;line-height:1.2;font-weight:800;overflow-wrap:normal;word-break:normal;hyphens:auto}
.tutor-home-page .bottom-nav{width:calc(100% - 24px);max-width:736px;bottom:8px;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e7e9df;border-radius:24px;background:#fffefaf5;padding:8px 5px calc(8px + env(safe-area-inset-bottom));box-shadow:0 6px 25px #1d4a3418}
.tutor-home-page .bottom-nav.home-nav-6{grid-template-columns:repeat(5,minmax(0,1fr))}
.tutor-home-page .bottom-nav a{position:relative;min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:3px;color:#53665b;font-family:Nunito,sans-serif;font-size:11px;line-height:1.2;isolation:isolate}
.tutor-home-page .bottom-nav a svg{width:24px;height:24px;flex:none;aspect-ratio:1}
.tutor-home-page .bottom-nav a.home-paw-center{color:#fff;background:none}
.tutor-home-page .bottom-nav a.home-paw-center:before{content:'';position:absolute;width:64px;height:64px;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--teal);border:3px solid white;border-radius:50%;z-index:-1;box-shadow:0 3px 11px #164b3826}
.tutor-home-page .bottom-nav a.home-paw-center svg{width:27px;height:27px;fill:currentColor;stroke:none;color:#fff}
.tutor-home-page .bottom-nav a.home-paw-center span{font-size:10px;color:#fff}
.tutor-home-page .partner-footer{max-width:736px;margin:0 auto 110px;border-radius:18px;background:#ffffffc9}
.tutor-home-page .install-help-area{max-width:760px;padding:0 12px;margin:-70px auto 110px;position:relative}
.tutor-commercial-banner{margin:20px 0 0;border-radius:20px;overflow:hidden;background:transparent}
.tutor-commercial-banner a{display:block}
.tutor-commercial-banner img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.home-banner-preview{margin:16px 0;max-width:600px}
.home-banner-preview img{display:block;width:100%;height:auto;border-radius:14px}
.home-banner-preview figcaption{font-size:13px;margin-top:6px}
.credit-history table{table-layout:auto;width:100%}
.credit-history th,.credit-history td{word-break:normal;overflow-wrap:normal;vertical-align:top}
.credit-history td:first-child{white-space:nowrap}
.credit-history td:last-child{overflow-wrap:anywhere;min-width:160px}
@media(max-width:700px){
 .credit-history{border:0;background:none;overflow:visible}
 .credit-history table,.credit-history tbody{display:block;min-width:0;width:100%}
 .credit-history thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .credit-history tr{display:block;border:1px solid #dce7dc;border-radius:16px;background:#fff;margin:0 0 14px;padding:8px 14px}
 .credit-history td{display:grid;grid-template-columns:minmax(105px,.85fr) minmax(0,1.15fr);gap:12px;border:0;border-bottom:1px solid #edf1e9;padding:10px 0;font-size:14px;line-height:1.45;min-width:0;white-space:normal!important;overflow-wrap:anywhere}
 .credit-history td:before{content:attr(data-label);font-weight:700;color:#466457}
 .credit-history td:last-child{border-bottom:0;min-width:0}
 .credit-history td[colspan]{display:block}
 .credit-history td[colspan]:before{display:none}
 .credit-history td small{display:block;overflow-wrap:anywhere}
}
@media(max-width:520px){
 .tutor-identity-grid{grid-template-columns:minmax(104px,.9fr) minmax(0,1.1fr);gap:8px 12px}
 .tutor-pet-photo{grid-row:1/3;border-width:5px}
 .tutor-identity-copy{align-self:end}
 .tutor-pet-facts{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr))}
 .tutor-pet-facts>div{display:block;padding:8px 7px;border:0!important;border-right:1px solid #e8eee6!important}
 .tutor-pet-facts>div:nth-child(even){border-right:0!important}
 .tutor-pet-facts>div:nth-child(-n+2){border-bottom:1px solid #e8eee6!important}
 .tutor-pet-facts svg{display:none}
 .tutor-pet-facts dd{font-size:12px}
 .tutor-pet-facts dt{font-size:11px}
 .tutor-story-card{grid-template-columns:minmax(0,1fr) 92px;padding:17px 14px;gap:8px}
 .tutor-story-polaroids{height:122px}
 .story-shot{width:77px;height:101px}
 .story-shot-back{right:16px}
 .story-shot-front:after{left:31px}
 .tutor-story-copy p{font-size:14px}
 .tutor-story-copy strong{font-size:12px;padding:9px 12px}
 .tutor-section-heading h2{font-size:21px}
 .tutor-feature-grid{gap:7px}
 .tutor-feature-card{min-height:103px;border-radius:16px;padding:10px 4px}
 .tutor-feature-card strong{font-size:11px}
 .tutor-feature-icon svg{width:28px;height:28px}
}
@media(max-width:359px){
 .tutor-home-page .page{padding-left:9px;padding-right:9px}
 .tutor-profile-card{padding:11px}
 .tutor-brand-mark span{font-size:22px}
 .tutor-brand-mark small{font-size:10px}
 .tutor-pet-facts{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
 .tutor-pet-photo{grid-row:1}
 .tutor-identity-copy{align-self:center}
 .tutor-pet-facts>div{display:flex;border-bottom:1px solid #e8eee6!important}
 .tutor-pet-facts>div:nth-last-child(-n+2){border-bottom:0!important}
 .tutor-pet-facts>div:nth-child(even){border-right:0!important}
 .tutor-pet-facts svg{display:block;width:20px;height:20px}
 .tutor-owner-row{grid-template-columns:1fr}
 .tutor-owner-data{border-right:0;border-bottom:1px solid #e0e9e1}
 .tutor-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tutor-feature-card strong{font-size:13px}
 .tutor-story-card{grid-template-columns:minmax(0,1fr) 75px}
 .tutor-story-copy h2{font-size:25px}
 .tutor-story-copy p{font-size:13px}
 .tutor-section-heading h2{font-size:20px}
}

.tutor-photo-watermark img{position:absolute;right:-100px;top:20%;width:min(75vw,540px);height:auto;border-radius:48%;object-fit:cover}

/* RC8.6: centered portrait and full-width readable profile at every viewport. */
.tutor-home-page .tutor-profile-card{padding:20px 16px;border-radius:28px;background:linear-gradient(180deg,#fffefa 0%,#ffffffed 55%,#f6fbf6 100%)}
.tutor-home-page .tutor-brand-mark{margin-bottom:22px}
.tutor-home-page .tutor-identity-grid{display:flex;flex-direction:column;gap:0;align-items:center}
.tutor-home-page .tutor-pet-photo{width:184px;height:184px;aspect-ratio:1;border:6px solid #ccebd8;flex:none;box-shadow:0 8px 24px #24553e18;margin:0 auto 16px}
.tutor-home-page .tutor-pet-photo>img{width:100%;height:100%;object-fit:cover}
.tutor-home-page .tutor-photo-badge{width:40px;height:40px;right:0;bottom:3px}
.tutor-home-page .tutor-identity-copy{width:100%;align-self:center;text-align:center;margin:0 0 20px}
.tutor-home-page .tutor-pet-name-row{justify-content:center;gap:9px}
.tutor-home-page .tutor-profile-card h1{font-size:36px;font-weight:900;line-height:1.15;letter-spacing:-.8px}
.tutor-home-page .tutor-pet-tagline{font-size:16px;margin:7px 0 0;line-height:1.4}
.tutor-pet-selector{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;margin:0 0 17px}
.tutor-pet-selector form{margin:0;min-width:0;max-width:100%}
.tutor-pet-selector .tutor-pet-choice{font-family:Nunito,sans-serif;font-size:16px;font-weight:800;line-height:1.3;min-height:44px;max-width:100%;overflow-wrap:anywhere;padding:10px 19px;border-radius:999px;background:#fff;border:1px solid #cddfd2;color:#355c49;box-shadow:0 2px 5px #244b3510}
.tutor-pet-selector .tutor-pet-choice[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:#fff;box-shadow:0 4px 12px #24553e24}
.tutor-selected-caption{font-size:13px;font-weight:700;color:#61766a;letter-spacing:.3px;margin:0 0 5px}
.tutor-home-page .tutor-pet-facts{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border-radius:18px;background:#fff}
.tutor-home-page .tutor-pet-facts>div{display:flex;align-items:center;gap:10px;padding:14px 12px;border:0!important}
.tutor-home-page .tutor-pet-facts>div:nth-child(odd){border-right:1px solid #e5ede4!important}
.tutor-home-page .tutor-pet-facts>div:nth-child(-n+2){border-bottom:1px solid #e5ede4!important}
.tutor-home-page .tutor-pet-facts svg{display:block;width:24px;height:24px;flex:none}
.tutor-home-page .tutor-pet-facts dt{font-size:13px;line-height:1.35}
.tutor-home-page .tutor-pet-facts dd{font-size:17px;font-weight:800;line-height:1.35;margin-top:4px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.tutor-home-page .tutor-owner-row{grid-template-columns:1fr;margin-top:14px;border-radius:18px}
.tutor-home-page .tutor-owner-data,.tutor-home-page .tutor-whatsapp-link{padding:13px 15px;gap:12px}
.tutor-home-page .tutor-owner-data{border-right:0;border-bottom:1px solid #e0e9e1}
.tutor-home-page .tutor-owner-row svg{width:26px;height:26px}
.tutor-home-page .tutor-owner-row small{font-size:13px}
.tutor-home-page .tutor-owner-row strong{font-size:17px;line-height:1.4;margin-top:2px}
.tutor-home-page .tutor-row-copy strong{font-size:17px;line-height:1.3}
.tutor-home-page .tutor-row-copy small{font-size:14px;line-height:1.4}
.tutor-home-page .tutor-health-link,.tutor-home-page .tutor-nfc-status{padding:13px 12px;margin-top:12px;gap:11px}
@media(min-width:600px){
 .tutor-home-page .tutor-pet-photo{width:210px;height:210px}
 .tutor-home-page .tutor-profile-card{padding:26px 30px}
 .tutor-home-page .tutor-owner-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tutor-home-page .tutor-owner-data{border-bottom:0;border-right:1px solid #e0e9e1}
 .tutor-home-page .tutor-pet-facts dd{font-size:19px}
}
@media(max-width:359px){
 .tutor-home-page .tutor-profile-card{padding:18px 12px}
 .tutor-home-page .tutor-pet-photo{width:172px;height:172px}
 .tutor-home-page .tutor-pet-facts>div{padding:12px 9px;gap:7px}
 .tutor-home-page .tutor-pet-facts svg{width:21px;height:21px}
 .tutor-home-page .tutor-pet-facts dd{font-size:16px}
}
