{"id":15821,"date":"2026-11-16T01:30:34","date_gmt":"2026-11-16T06:30:34","guid":{"rendered":"https:\/\/hesamkazemi.com\/?page_id=15821"},"modified":"2026-11-19T15:20:41","modified_gmt":"2026-11-19T20:20:41","slug":"canadian-citizenship-physical-presence-calculator","status":"publish","type":"page","link":"https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/","title":{"rendered":"Canadian citizenship physical presence calculator"},"content":{"rendered":"<section class=\"l-section wpb_row height_medium\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_flex valign_top type_default stacking_default\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"w-html\"><!-- Canadian Citizenship Physical Presence Calculator | English standard v3.10.1 | Complete WPBakery Raw HTML -->\n<style>\n\/* Canonical shared CSS: hesam-kazemi-design-tokens-v3.10.css, unmodified *\/\n\/*\n * Hesam Kazemi Immigration \u2014 English Website Pages\n * Shared tokens and canonical components\n * Version 3.10 \u00b7 17 November 2026\n *\n * Primary reference: Express Entry\n * Detailed accordion reference: Family Sponsorship relationship accordion\n *\/\n\n@import url(\"https:\/\/fonts.googleapis.com\/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap\");\n\n:root {\n  --hk-red: #ed1c24;\n  --hk-red-dark: #c9141b;\n  --hk-red-soft: #fff3f3;\n  --hk-navy: #0f172a;\n  --hk-heading: #172033;\n  --hk-text: #536073;\n  --hk-ink-secondary: #334056;\n  --hk-border: #dfe3e8;\n  --hk-section-border: #e8eaed;\n  --hk-soft: #f7f7f6;\n  --hk-table-head: #f2f4f6;\n  --hk-table-key: #fafafa;\n  --hk-white: #ffffff;\n\n  --hk-font: \"Plus Jakarta Sans\", Arial, sans-serif;\n  --hk-container: 1360px;\n  --hk-gutter-desktop: 28px;\n  --hk-gutter-mobile: 24px;\n\n  --hk-h1: clamp(44px, 4.4vw, 65px);\n  --hk-h1-tablet: clamp(38px, 6.2vw, 52px);\n  --hk-h1-mobile: clamp(32px, 9vw, 42px);\n  --hk-h2: clamp(32px, 3.2vw, 48px);\n  --hk-h2-mobile: 32px;\n  --hk-h3-featured: 21px;\n  --hk-h3-featured-mobile: 19px;\n  --hk-h3-card: 16px;\n  --hk-hero-lead: 17px;\n  --hk-section-lead: 16px;\n  --hk-body: 15px;\n  --hk-compact: 14px;\n  --hk-micro: 12px;\n\n  --hk-radius-control: 5px;\n  --hk-radius-card: 9px;\n  --hk-radius-panel: 10px;\n  --hk-shadow-card: 0 14px 42px rgba(15, 23, 42, 0.06);\n  --hk-shadow-elevated: 0 16px 38px rgba(15, 23, 42, 0.07);\n\n  --hk-section-space: 80px;\n  --hk-section-space-mobile: 54px;\n  --hk-section-head-gap: 62px;\n  --hk-section-head-bottom: 36px;\n  --hk-section-head-columns: minmax(0, 1fr) minmax(0, .82fr);\n  --hk-stack-gap: 18px;\n\n  --hk-button-primary-width: 218px;\n  --hk-button-primary-height: 52px;\n  --hk-button-card-width: 300px;\n  --hk-button-card-height: 56px;\n\n  --hk-space-1: 4px;\n  --hk-space-2: 8px;\n  --hk-space-3: 12px;\n  --hk-space-4: 16px;\n  --hk-space-5: 20px;\n  --hk-space-6: 24px;\n  --hk-space-7: 28px;\n  --hk-space-8: 32px;\n  --hk-space-10: 40px;\n  --hk-space-12: 48px;\n  --hk-space-14: 56px;\n  --hk-space-18: 72px;\n}\n\n.hk-en-page,\n.hk-en-page * {\n  box-sizing: border-box;\n  font-family: var(--hk-font);\n}\n\n.hk-en-page {\n  --hk-current-gutter: var(--hk-gutter-desktop);\n  width: 100%;\n  min-width: 0;\n  max-width: 100%;\n  margin: 0;\n  overflow-x: clip;\n  background: var(--hk-white);\n  color: var(--hk-navy);\n  direction: ltr;\n  text-align: left;\n  -webkit-font-smoothing: antialiased;\n}\n\n.hk-en-page h1,\n.hk-en-page h2,\n.hk-en-page h3,\n.hk-en-page h4,\n.hk-en-page p {\n  text-align: left;\n  word-spacing: normal;\n}\n\n.hk-en-container {\n  width: 100%;\n  min-width: 0;\n  max-width: var(--hk-container);\n  margin-inline: auto;\n  padding-inline: var(--hk-current-gutter);\n}\n\n\/* WordPress\/WPBakery containment for custom English pages. *\/\nhtml[lang^=\"en\"] body:has(.hk-en-page),\nhtml[lang^=\"en\"] .l-main:has(.hk-en-page),\nhtml[lang^=\"en\"] .l-content:has(.hk-en-page),\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page),\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) > .l-section-h,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .g-cols,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .vc_row,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .vc_column_container,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .vc_column-inner,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .wpb_wrapper,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .wpb_raw_code,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .wpb_content_element {\n  min-width: 0 !important;\n  max-width: 100% !important;\n}\n\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .g-cols,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .vc_row,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .vc_column_container,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .vc_column-inner,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .wpb_wrapper,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .wpb_raw_code,\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) .wpb_content_element {\n  width: 100% !important;\n  margin: 0 !important;\n  padding: 0 !important;\n}\n\nhtml[lang^=\"en\"] body:has(.hk-en-page) {\n  overflow-x: clip;\n}\n\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) {\n  width: 100% !important;\n  padding: 0 !important;\n}\n\nhtml[lang^=\"en\"] .l-section:has(.hk-en-page) > .l-section-h {\n  width: 100% !important;\n  margin: 0 auto !important;\n  padding: 0 !important;\n}\n\n\/* Typography *\/\n.hk-en-title {\n  max-width: 800px;\n  margin: 0;\n  color: var(--hk-navy);\n  font-size: var(--hk-h1);\n  font-weight: 800;\n  line-height: 1.1;\n  letter-spacing: -2.5px;\n}\n\n.hk-en-accent {\n  color: var(--hk-red);\n}\n\n.hk-en-heading {\n  max-width: 920px;\n  margin: 0;\n  color: var(--hk-navy);\n  font-size: var(--hk-h2);\n  font-weight: 800;\n  line-height: 1.15;\n  letter-spacing: -1.6px;\n}\n\n.hk-en-featured-title {\n  margin: 0;\n  color: var(--hk-heading);\n  font-size: var(--hk-h3-featured);\n  font-weight: 800;\n  line-height: 1.35;\n}\n\n.hk-en-card-title {\n  margin: 0;\n  color: var(--hk-heading);\n  font-size: var(--hk-h3-card);\n  font-weight: 800;\n  line-height: 1.45;\n}\n\n.hk-en-hero-lead {\n  max-width: 780px;\n  margin: 27px 0 0;\n  color: var(--hk-text);\n  font-size: var(--hk-hero-lead);\n  font-weight: 500;\n  line-height: 1.8;\n}\n\n.hk-en-section-lead {\n  max-width: 850px;\n  margin: 0;\n  color: var(--hk-text);\n  font-size: var(--hk-section-lead);\n  font-weight: 500;\n  line-height: 1.85;\n}\n\n.hk-en-body {\n  color: var(--hk-text);\n  font-size: var(--hk-body);\n  font-weight: 500;\n  line-height: 1.85;\n}\n\n.hk-en-compact {\n  color: var(--hk-text);\n  font-size: var(--hk-compact);\n  font-weight: 500;\n  line-height: 1.8;\n}\n\n.hk-en-kicker {\n  display: flex;\n  align-items: center;\n  gap: 11px;\n  margin: 0 0 16px;\n  color: var(--hk-red);\n  font-size: 12px;\n  font-weight: 800;\n  line-height: 1.5;\n  letter-spacing: 1.3px;\n  text-transform: uppercase;\n}\n\n.hk-en-kicker::before {\n  content: \"\";\n  flex: 0 0 27px;\n  width: 27px;\n  height: 3px;\n  border-radius: 10px;\n  background: var(--hk-red);\n}\n\n\/* CANONICAL PAGE BREADCRUMB v3.6 \u2014 literal implementation from the\n   working Study Permit page. Do not add fixed height, offsets, transforms,\n   multiple div wrappers, or previous hk-en-pathbar rules. *\/\n\/* Adopted unchanged from Study Permit v2. *\/\n.hk-sp-breadcrumb{display:block;position:relative!important;width:100%;margin:16px 0 0!important;padding:0!important;border-top:1px solid #eef0f2;border-bottom:1px solid var(--line);background:#fff;direction:ltr;text-align:left}\n.hk-sp-breadcrumb-inner{width:100%;max-width:1360px;margin:0 auto;padding:0 28px}.hk-sp-breadcrumb ol{display:flex!important;align-items:center!important;margin:0!important;padding:13px 0!important;overflow-x:auto;list-style:none!important;scrollbar-width:none}.hk-sp-breadcrumb ol::-webkit-scrollbar{display:none}\n.hk-sp-breadcrumb li{display:flex!important;align-items:center!important;flex:0 0 auto;margin:0!important;padding:0!important;color:var(--red);font-size:12px!important;font-weight:700!important;line-height:20px!important;white-space:nowrap;list-style:none!important}.hk-sp-breadcrumb li::marker{content:\"\";font-size:0}.hk-sp-breadcrumb li+li::before{content:\"\";display:block;width:6px;height:6px;margin:0 13px 0 11px;border-top:1.5px solid #9aa4b2;border-right:1.5px solid #9aa4b2;transform:rotate(45deg)}\n.hk-sp-breadcrumb a{display:flex!important;align-items:center!important;margin:0!important;padding:0!important;color:var(--text)!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;text-decoration:none!important}.hk-sp-breadcrumb a:hover{color:var(--red)!important}\n\n\n\/* Exactly the Study Permit responsive values, without unrelated page rules. *\/\n@media(max-width:900px){\n  .hk-sp-breadcrumb-inner{padding-left:24px;padding-right:24px}\n}\n@media(max-width:600px){\n  .hk-sp-breadcrumb ol{padding:11px 0!important}\n}\n\n\/* Hero *\/\n.hk-en-hero {\n  padding: 30px 0 58px;\n}\n\n.hk-en-hero-grid {\n  display: grid;\n  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);\n  gap: 74px;\n  align-items: start;\n}\n\n.hk-en-actions {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  gap: 21px;\n  margin-top: 29px;\n}\n\n.hk-en-overview {\n  padding: 31px 32px;\n  border: 1px solid var(--hk-border);\n  border-radius: var(--hk-radius-panel);\n  background: var(--hk-soft);\n  box-shadow: var(--hk-shadow-elevated);\n}\n\n.hk-en-overview h2 {\n  margin: 0 0 10px;\n  color: var(--hk-navy);\n  font-size: 21px;\n  font-weight: 800;\n  line-height: 1.35;\n  letter-spacing: -.4px;\n}\n\n.hk-en-overview > p {\n  margin: 0 0 19px;\n  color: var(--hk-text);\n  font-size: 13px;\n  font-weight: 500;\n  line-height: 1.75;\n}\n\n.hk-en-overview-list {\n  display: grid;\n  margin: 0;\n  padding: 0;\n  list-style: none !important;\n  list-style-type: none !important;\n}\n\n\/* A single approved red dot: suppress browser and Zephyr list markers. *\/\n.hk-en-overview-list > li {\n  display: block;\n  list-style: none !important;\n  list-style-type: none !important;\n}\n.hk-en-overview-list > li::marker {\n  content: \"\" !important;\n  font-size: 0 !important;\n}\n\n.hk-en-overview-list li {\n  position: relative;\n  padding: 12px 0 12px 18px;\n  border-top: 1px solid var(--hk-border);\n  color: var(--hk-ink-secondary);\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.55;\n}\n\n.hk-en-overview-list li::before {\n  content: \"\";\n  position: absolute;\n  top: 20px;\n  left: 0;\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  background: var(--hk-red);\n}\n\n\/* Canonical icon and status-mark system *\/\n.hk-en-icon,\n.hk-en-checkmark,\n.hk-en-program-symbol,\n.hk-en-risk-mark,\n.hk-en-step-badge {\n  display: flex;\n  flex: 0 0 auto;\n  align-items: center;\n  justify-content: center;\n  line-height: 1;\n}\n\n.hk-en-icon svg,\n.hk-en-checkmark svg,\n.hk-en-program-symbol svg,\n.hk-en-risk-mark svg,\n.hk-en-trust-icon svg {\n  display: block;\n  fill: none;\n  stroke: currentColor;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.hk-en-icon--feature {\n  width: 46px;\n  height: 46px;\n  padding: 10px;\n  border: 1px solid #ffd9db;\n  border-radius: 12px;\n  background: var(--hk-red-soft);\n  color: var(--hk-red);\n}\n\n.hk-en-icon--feature svg {\n  width: 24px;\n  height: 24px;\n  stroke-width: 1.65;\n}\n\n.hk-en-program-symbol {\n  width: 56px;\n  height: 56px;\n  border: 1px solid #f2b8bb;\n  border-radius: 50%;\n  background: var(--hk-white);\n  color: var(--hk-red);\n}\n\n.hk-en-program-symbol svg {\n  width: 28px;\n  height: 28px;\n  stroke-width: 1.8;\n}\n\n.hk-en-checkmark {\n  width: 25px;\n  height: 25px;\n  border: 1px solid #f2b8bb;\n  border-radius: 50%;\n  background: var(--hk-red-soft);\n  color: var(--hk-red);\n}\n\n.hk-en-checkmark svg {\n  width: 13px;\n  height: 13px;\n  stroke-width: 2;\n}\n\n.hk-en-risk-mark {\n  width: 36px;\n  height: 36px;\n  border: 1px solid #f6c0c2;\n  border-radius: 50%;\n  background: var(--hk-red-soft);\n  color: var(--hk-red);\n}\n\n.hk-en-risk-mark svg {\n  width: 16px;\n  height: 16px;\n  stroke-width: 1.8;\n}\n\n.hk-en-step-badge {\n  width: 46px;\n  height: 46px;\n  border: 2px solid var(--hk-red);\n  border-radius: 50%;\n  background: var(--hk-white);\n  color: var(--hk-red);\n  font-size: 13px;\n  font-weight: 800;\n}\n\n.hk-en-icon--centered {\n  margin-inline: auto;\n}\n\n\/* Actions *\/\n.hk-en-button-primary {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  min-width: var(--hk-button-primary-width);\n  min-height: var(--hk-button-primary-height);\n  padding: 15px 24px;\n  border: 2px solid var(--hk-red) !important;\n  border-radius: var(--hk-radius-control);\n  background: var(--hk-red);\n  color: var(--hk-white) !important;\n  font-size: 14px;\n  font-weight: 700;\n  line-height: 1.35;\n  text-align: center;\n  text-decoration: none !important;\n  transition: background .2s ease, border-color .2s ease, transform .2s ease;\n}\n\n.hk-en-button-primary:hover {\n  transform: translateY(-2px);\n  border-color: var(--hk-red-dark) !important;\n  background: var(--hk-red-dark) !important;\n  color: var(--hk-white) !important;\n  text-decoration: none !important;\n}\n\n.hk-en-button-primary:active {\n  transform: translateY(0);\n}\n\n.hk-en-link {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  color: var(--hk-red);\n  font-size: 14px;\n  font-weight: 700;\n  line-height: 1.5;\n  text-decoration: underline;\n  text-decoration-thickness: 1px;\n  text-underline-offset: 5px;\n}\n\n.hk-en-link-arrow {\n  font-size: 22px;\n  line-height: 1;\n  text-decoration: none;\n}\n\n.hk-en-button-card {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  align-self: center;\n  gap: 9px;\n  width: var(--hk-button-card-width);\n  max-width: 100%;\n  min-height: var(--hk-button-card-height);\n  margin-top: auto;\n  padding: 11px 18px;\n  border: 1px solid rgba(237, 28, 36, .34);\n  border-radius: 999px;\n  background: #fffafa;\n  color: var(--hk-red);\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.35;\n  white-space: nowrap;\n  text-decoration: none;\n}\n\n.hk-en-button-card:hover {\n  transform: translateY(-1px);\n  border-color: var(--hk-red);\n  background: #fff1f2;\n}\n\n\/* Trust strip *\/\n.hk-en-trust {\n  border-top: 1px solid var(--hk-border);\n  border-bottom: 1px solid var(--hk-border);\n  background: var(--hk-soft);\n}\n\n.hk-en-trust-grid {\n  display: grid;\n  grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n\n.hk-en-trust-item {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 13px;\n  min-height: 80px;\n  padding: 18px 25px;\n  border-right: 1px solid var(--hk-border);\n  color: #465265;\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.55;\n  white-space: nowrap;\n}\n\n.hk-en-trust-item:last-child {\n  border-right: 0;\n}\n\n.hk-en-trust-icon {\n  display: flex;\n  flex: 0 0 27px;\n  align-items: center;\n  justify-content: center;\n  width: 27px;\n  height: 27px;\n  color: var(--hk-red);\n}\n\n.hk-en-trust-icon svg {\n  width: 27px;\n  height: 27px;\n  stroke-width: 1.65;\n}\n\n\/* Sections and section heads *\/\n.hk-en-section {\n  padding: var(--hk-section-space) 0;\n}\n\n.hk-en-section--soft {\n  border-top: 1px solid var(--hk-section-border);\n  border-bottom: 1px solid var(--hk-section-border);\n  background: var(--hk-soft);\n}\n\n.hk-en-section-head {\n  display: grid;\n  grid-template-columns: var(--hk-section-head-columns);\n  gap: var(--hk-section-head-gap);\n  align-items: start;\n  margin-bottom: var(--hk-section-head-bottom);\n}\n\n.hk-en-section-head > .hk-en-section-lead {\n  margin-top: 34px;\n}\n\n\/* Cards and grids *\/\n.hk-en-grid {\n  display: grid;\n  width: 100%;\n  align-items: stretch;\n  gap: 15px;\n}\n\n.hk-en-grid--2 {\n  grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n\n.hk-en-grid--3 {\n  grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n\n.hk-en-grid--4 {\n  grid-template-columns: repeat(4, minmax(0, 1fr));\n}\n\n.hk-en-card {\n  display: flex;\n  flex-direction: column;\n  min-width: 0;\n  height: 100%;\n  padding: 28px 25px;\n  border: 1px solid var(--hk-border);\n  border-radius: var(--hk-radius-card);\n  background: var(--hk-white);\n  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;\n}\n\n@media (hover: hover) and (pointer: fine) {\n  .hk-en-card:hover {\n    transform: translateY(-6px);\n    border-color: var(--hk-red);\n    box-shadow: 0 14px 34px rgba(15, 23, 42, .1);\n  }\n}\n\n\/* Tables *\/\n.hk-en-table-wrap {\n  width: 100%;\n  overflow: hidden;\n  border: 1px solid var(--hk-border);\n  border-radius: var(--hk-radius-card);\n  background: var(--hk-white);\n}\n\n.hk-en-table {\n  width: 100%;\n  border-collapse: separate;\n  border-spacing: 0;\n}\n\n.hk-en-table th,\n.hk-en-table td {\n  padding: 17px 18px;\n  border-right: 1px solid var(--hk-border);\n  border-bottom: 1px solid var(--hk-border);\n  vertical-align: top;\n  text-align: left;\n}\n\n.hk-en-table th:last-child,\n.hk-en-table td:last-child {\n  border-right: 0;\n}\n\n.hk-en-table tr:last-child > * {\n  border-bottom: 0;\n}\n\n.hk-en-table thead th {\n  background: var(--hk-table-head);\n  color: var(--hk-heading);\n  font-size: 13px;\n  font-weight: 800;\n  line-height: 1.5;\n}\n\n.hk-en-table tbody th,\n.hk-en-table tbody td:first-child {\n  background: var(--hk-table-key);\n  color: var(--hk-heading);\n  font-size: 13px;\n  font-weight: 800;\n  line-height: 1.55;\n}\n\n.hk-en-table td {\n  color: var(--hk-text);\n  font-size: 13px;\n  font-weight: 500;\n  line-height: 1.7;\n}\n\n.hk-en-table--two {\n  table-layout: fixed;\n}\n\n.hk-en-table--two th:first-child,\n.hk-en-table--two td:first-child {\n  width: 62%;\n}\n\n.hk-en-kv-list {\n  overflow: hidden;\n  border: 1px solid var(--hk-border);\n  border-radius: var(--hk-radius-card);\n  background: var(--hk-white);\n}\n\n.hk-en-kv-row {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 155px;\n  gap: 20px;\n  align-items: center;\n  padding: 18px 20px;\n  border-bottom: 1px solid var(--hk-border);\n}\n\n.hk-en-kv-row:last-child {\n  border-bottom: 0;\n}\n\n.hk-en-kv-key,\n.hk-en-kv-value {\n  font-size: 14px;\n  font-weight: 800;\n  line-height: 1.5;\n}\n\n.hk-en-kv-key {\n  color: var(--hk-heading);\n}\n\n.hk-en-kv-value {\n  color: var(--hk-red);\n  text-align: right;\n}\n\n\/* Detailed middle-page accordion *\/\n.hk-en-accordion {\n  display: grid;\n  gap: 12px;\n}\n\n.hk-en-accordion details {\n  scroll-margin-top: 130px;\n  overflow: hidden;\n  border: 1px solid var(--hk-border);\n  border-radius: var(--hk-radius-panel);\n  background: var(--hk-white);\n  box-shadow: 0 7px 22px rgba(15, 23, 42, .035);\n}\n\n.hk-en-accordion details[open] {\n  border-color: #efb7ba;\n  box-shadow: 0 13px 32px rgba(15, 23, 42, .075);\n}\n\n.hk-en-accordion summary {\n  display: grid;\n  grid-template-columns: 46px minmax(0, 1fr) 40px;\n  gap: 17px;\n  align-items: center;\n  min-height: 86px;\n  padding: 17px 19px;\n  cursor: pointer;\n  list-style: none;\n  color: var(--hk-heading);\n}\n\n.hk-en-accordion summary::-webkit-details-marker {\n  display: none;\n}\n\n.hk-en-accordion details[open] > summary {\n  border-bottom: 1px solid var(--hk-border);\n}\n\n.hk-en-accordion-index {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 44px;\n  height: 44px;\n  border: 1px solid #f2b8bb;\n  border-radius: 50%;\n  background: var(--hk-red-soft);\n  color: var(--hk-red);\n  font-size: 12px;\n  font-weight: 800;\n}\n\n.hk-en-accordion-title strong {\n  display: block;\n  color: var(--hk-heading);\n  font-size: 17px;\n  font-weight: 800;\n  line-height: 1.4;\n}\n\n.hk-en-accordion-title small {\n  display: block;\n  margin-top: 4px;\n  color: var(--hk-text);\n  font-size: 13px;\n  font-weight: 600;\n  line-height: 1.55;\n}\n\n.hk-en-accordion-toggle {\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 38px;\n  height: 38px;\n  border: 1px solid #f0b6b9;\n  border-radius: 50%;\n  background: var(--hk-white);\n}\n\n.hk-en-accordion-toggle::before,\n.hk-en-accordion-toggle::after {\n  content: \"\";\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  width: 14px;\n  height: 2px;\n  border-radius: 2px;\n  background: var(--hk-red);\n  transform: translate(-50%, -50%);\n}\n\n.hk-en-accordion-toggle::after {\n  transform: translate(-50%, -50%) rotate(90deg);\n}\n\n.hk-en-accordion details[open] .hk-en-accordion-toggle {\n  background: var(--hk-red-soft);\n}\n\n.hk-en-accordion details[open] .hk-en-accordion-toggle::after {\n  transform: translate(-50%, -50%) rotate(0deg);\n}\n\n.hk-en-accordion-panel {\n  padding: 22px 20px 24px 82px;\n}\n\n.hk-en-accordion-intro {\n  padding: 19px 21px;\n  border-left: 3px solid var(--hk-red);\n  border-radius: 0 8px 8px 0;\n  background: #f6f7f8;\n}\n\n.hk-en-accordion-panel-grid {\n  display: grid;\n  grid-template-columns: repeat(2, minmax(0, 1fr));\n  gap: 13px;\n  margin-top: 18px;\n}\n\n\/* Simple final FAQ *\/\n.hk-en-faq-grid {\n  display: grid;\n  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);\n  gap: 72px;\n  align-items: start;\n}\n\n.hk-en-faq-list {\n  border-top: 1px solid var(--hk-border);\n}\n\n.hk-en-faq-list details {\n  border-bottom: 1px solid var(--hk-border);\n}\n\n.hk-en-faq-list summary {\n  position: relative;\n  padding: 22px 52px 22px 0;\n  cursor: pointer;\n  list-style: none;\n  color: var(--hk-heading);\n  font-size: 15px;\n  font-weight: 700;\n  line-height: 1.6;\n}\n\n.hk-en-faq-list summary::before,\n.hk-en-faq-list summary::after {\n  content: \"\";\n  position: absolute;\n  right: 12px;\n  top: 50%;\n  width: 15px;\n  height: 2px;\n  border-radius: 4px;\n  background: var(--hk-red);\n  transform: translateY(-50%);\n}\n\n.hk-en-faq-list summary::after {\n  transform: translateY(-50%) rotate(90deg);\n}\n\n.hk-en-faq-list details[open] summary::after {\n  transform: translateY(-50%) rotate(0);\n}\n\n.hk-en-faq-answer {\n  padding: 0 50px 22px 0;\n  color: var(--hk-text);\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 1.85;\n}\n\n\/* Final CTA *\/\n.hk-en-cta {\n  --hk-cta-background: #fff1f2;\n  position: relative;\n  isolation: isolate;\n  width: 100%;\n  max-width: none;\n  margin-inline: 0;\n  padding: 40px 0;\n  background: var(--hk-cta-background);\n  box-shadow: 0 0 0 100vmax var(--hk-cta-background);\n  clip-path: inset(0 -100vmax);\n}\n\n.hk-en-cta-grid {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) auto;\n  gap: 40px;\n  align-items: center;\n}\n\n.hk-en-cta h2 {\n  margin: 0 0 11px;\n  color: var(--hk-heading);\n  font-size: clamp(27px, 2.6vw, 37px);\n  font-weight: 800;\n  line-height: 1.25;\n  letter-spacing: -1px;\n}\n\n.hk-en-cta p {\n  max-width: 850px;\n  margin: 0;\n  color: var(--hk-text);\n  font-size: 15px;\n  font-weight: 500;\n  line-height: 1.8;\n}\n\n:is(a, button, summary, input, select, textarea):focus-visible {\n  outline: 3px solid var(--hk-navy);\n  outline-offset: 3px;\n}\n\n\/* Scrollable tables keep the first column fixed at every viewport width. *\/\n.hk-en-table-wrap--scroll {\n  width: 100%;\n  max-width: 100%;\n  position: relative;\n  isolation: isolate;\n  overflow-x: auto;\n  -webkit-overflow-scrolling: touch;\n}\n\n.hk-en-table--multi {\n  min-width: 900px;\n}\n\n.hk-en-table--multi th:first-child,\n.hk-en-table--multi td:first-child {\n  position: sticky;\n  left: 0;\n  z-index: 2;\n  background: var(--hk-table-key);\n  box-shadow: 8px 0 12px -12px rgba(15, 23, 42, .5);\n}\n\n.hk-en-table--multi thead th:first-child {\n  z-index: 3;\n  background: var(--hk-table-head);\n}\n\n.hk-en-table--comparison th:first-child,\n.hk-en-table--comparison td:first-child {\n  width: 180px;\n  min-width: 180px;\n}\n\n@media (max-width: 900px) {\n  .hk-en-table--noc {\n    min-width: 680px;\n    table-layout: fixed;\n  }\n\n  .hk-en-table--noc th:first-child,\n  .hk-en-table--noc td:first-child {\n    width: 260px;\n    min-width: 260px;\n  }\n}\n\n@media (max-width: 1050px) {\n  .hk-en-grid--4 {\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n  }\n}\n\n@media (max-width: 900px) {\n  .hk-en-page {\n    --hk-current-gutter: var(--hk-gutter-mobile);\n  }\n\n  .hk-en-container {\n    padding-inline: var(--hk-current-gutter);\n  }\n\n  .hk-en-hero-grid,\n  .hk-en-section-head,\n  .hk-en-faq-grid {\n    grid-template-columns: 1fr;\n  }\n\n  .hk-en-hero-grid {\n    gap: 31px;\n  }\n\n  .hk-en-title {\n    font-size: var(--hk-h1-tablet);\n    line-height: 1.12;\n    letter-spacing: -1.8px;\n    overflow-wrap: anywhere;\n  }\n\n  .hk-en-actions {\n    display: grid;\n    grid-template-columns: 1fr;\n    gap: 20px;\n  }\n\n  .hk-en-section-head,\n  .hk-en-faq-grid {\n    gap: var(--hk-stack-gap);\n  }\n\n  .hk-en-section-head > .hk-en-section-lead {\n    margin-top: 0;\n  }\n\n  .hk-en-cta-grid {\n    grid-template-columns: 1fr;\n    gap: 25px;\n    justify-items: start;\n  }\n\n}\n\n@media (max-width: 700px) {\n  .hk-en-page {\n    --hk-chevron-right: 8px;\n    --hk-chevron-left: 6px;\n  }\n\n  .hk-en-table--comparison th:first-child,\n  .hk-en-table--comparison td:first-child {\n    width: 150px;\n    min-width: 150px;\n  }\n\n  .hk-en-table--noc th:first-child,\n  .hk-en-table--noc td:first-child {\n    width: 220px;\n    min-width: 220px;\n  }\n\n  .hk-en-hero {\n    padding: 24px 0 38px;\n  }\n\n  .hk-en-kicker {\n    gap: 9px;\n    margin-bottom: 14px;\n    font-size: 10px;\n    line-height: 1.7;\n    letter-spacing: 1px;\n  }\n\n  .hk-en-kicker::before {\n    flex-basis: 22px;\n    width: 22px;\n  }\n\n  .hk-en-title {\n    font-size: var(--hk-h1-mobile);\n    line-height: 1.12;\n    letter-spacing: -1.6px;\n  }\n\n  .hk-en-heading {\n    font-size: var(--hk-h2-mobile);\n    line-height: 1.2;\n    letter-spacing: -1px;\n  }\n\n  .hk-en-featured-title {\n    font-size: var(--hk-h3-featured-mobile);\n  }\n\n  .hk-en-hero-lead {\n    margin-top: 23px;\n    font-size: 16px;\n  }\n\n  .hk-en-section-lead {\n    font-size: 15px;\n  }\n\n  .hk-en-actions {\n    display: grid;\n    grid-template-columns: 1fr;\n    gap: 20px;\n    margin-top: 25px;\n  }\n\n  .hk-en-button-primary {\n    width: 100%;\n    min-width: 0;\n    min-height: 53px;\n  }\n\n  .hk-en-overview {\n    padding: 26px 22px;\n  }\n\n  .hk-en-icon--feature {\n    width: 44px;\n    height: 44px;\n    padding: 10px;\n  }\n\n  .hk-en-icon--feature svg {\n    width: 22px;\n    height: 22px;\n  }\n\n  .hk-en-trust-grid {\n    grid-template-columns: 1fr;\n  }\n\n  .hk-en-trust-item {\n    justify-content: flex-start;\n    min-height: 66px;\n    padding: 16px 0;\n    border-right: 0;\n    border-bottom: 1px solid var(--hk-border);\n  }\n\n  .hk-en-trust-item:last-child {\n    border-bottom: 0;\n  }\n\n  .hk-en-section {\n    padding: var(--hk-section-space-mobile) 0;\n  }\n\n  .hk-en-grid--2,\n  .hk-en-grid--3,\n  .hk-en-grid--4 {\n    grid-template-columns: 1fr;\n  }\n\n  .hk-en-card {\n    padding: 25px 22px;\n  }\n\n  .hk-en-button-card {\n    width: 100%;\n    min-height: 52px;\n    padding: 10px 14px;\n    font-size: 12px;\n  }\n\n  .hk-en-table--two th:first-child,\n  .hk-en-table--two td:first-child {\n    width: 62%;\n  }\n\n  .hk-en-kv-row {\n    grid-template-columns: minmax(0, 1fr) minmax(96px, 38%);\n    gap: 14px;\n    padding: 16px 15px;\n  }\n\n  .hk-en-kv-key,\n  .hk-en-kv-value {\n    overflow-wrap: anywhere;\n  }\n\n  .hk-en-accordion {\n    gap: 10px;\n  }\n\n  .hk-en-accordion summary {\n    grid-template-columns: 42px minmax(0, 1fr) 36px;\n    gap: 13px;\n    min-height: 78px;\n    padding: 15px 14px;\n  }\n\n  .hk-en-accordion-index {\n    width: 40px;\n    height: 40px;\n    font-size: 11px;\n  }\n\n  .hk-en-accordion-title strong {\n    font-size: 15px;\n  }\n\n  .hk-en-accordion-title small {\n    font-size: 12px;\n  }\n\n  .hk-en-accordion-toggle {\n    width: 34px;\n    height: 34px;\n  }\n\n  .hk-en-accordion-panel {\n    padding: 17px 14px 19px;\n  }\n\n  .hk-en-accordion-intro {\n    padding: 17px 16px;\n  }\n\n  .hk-en-accordion-panel-grid {\n    grid-template-columns: 1fr;\n    margin-top: 12px;\n  }\n\n  .hk-en-faq-list summary {\n    padding: 20px 48px 20px 0;\n    font-size: 14px;\n  }\n\n  .hk-en-faq-answer {\n    padding: 0 45px 20px 0;\n  }\n\n  .hk-en-cta {\n    padding: 34px 0;\n  }\n\n  .hk-en-cta h2 {\n    font-size: 29px;\n    letter-spacing: -.8px;\n  }\n\n  .hk-en-cta-grid {\n    justify-items: stretch;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .hk-en-page *,\n  .hk-en-page *::before,\n  .hk-en-page *::after {\n    scroll-behavior: auto !important;\n    transition: none !important;\n    animation: none !important;\n  }\n}\n\n\n\/* v3.7 quality corrections: preserve the verified v3.6 breadcrumb unmodified. *\/\n\/* A secondary link underlines its text only, never its arrow. *\/\n.hk-en-page .hk-en-link { text-decoration: none !important; }\n.hk-en-page .hk-en-link-text {\n  display: inline;\n  text-decoration-line: underline;\n  text-decoration-thickness: 1px;\n  text-underline-offset: 5px;\n}\n.hk-en-page .hk-en-link-arrow {\n  display: inline-flex;\n  align-items: center;\n  text-decoration: none !important;\n}\n\/* Section lead begins at the top of the H2, after the kicker's 34px row. *\/\n.hk-en-page .hk-en-section-head > .hk-en-section-lead {\n  margin-top: 34px !important;\n  margin-bottom: 0 !important;\n}\n\/* Protect the shared English typeface in tables against theme table overrides. *\/\n.hk-en-page :is(table, thead, tbody, tr, th, td, caption) {\n  font-family: var(--hk-font) !important;\n  font-variant-numeric: lining-nums tabular-nums;\n}\n\/* Keep the question row visible when closing other details changes page height. *\/\n.hk-en-page :is(.hk-en-accordion, .hk-en-faq-list) { overflow-anchor: none; }\n@media (max-width: 900px) {\n  .hk-en-page .hk-en-section-head > .hk-en-section-lead {\n    margin-top: 0 !important;\n  }\n}\n\n\/* v3.10 \u2014 NO NEW DESIGN VALUES: enforce the EXISTING shared component\n   geometry against Zephyr\/WPBakery paragraph margins and title rules. *\/\n.hk-en-page .hk-en-kicker {\n  margin: 0 0 16px !important;\n  font-size: 12px !important;\n  line-height: 1.5 !important;\n}\n.hk-en-page .hk-en-hero .hk-en-title {\n  margin: 0 !important;\n  padding: 0 !important;\n  line-height: 1.10 !important;\n}\n.hk-en-page .hk-en-hero .hk-en-hero-lead {\n  margin: 27px 0 0 !important;\n  font-size: 17px !important;\n  line-height: 1.8 !important;\n}\n.hk-en-page .hk-en-section-head .hk-en-heading {\n  margin: 0 !important;\n  padding: 0 !important;\n  line-height: 1.15 !important;\n}\n.hk-en-page .hk-en-section-head > .hk-en-section-lead {\n  margin: 34px 0 0 !important;\n  font-size: 16px !important;\n  line-height: 1.85 !important;\n}\n@media (max-width: 900px) {\n  .hk-en-page .hk-en-section-head > .hk-en-section-lead {\n    margin: 0 !important;\n  }\n  .hk-en-page .hk-en-hero .hk-en-title {\n    line-height: 1.12 !important;\n  }\n}\n@media (max-width: 700px) {\n  .hk-en-page .hk-en-kicker {\n    margin-bottom: 14px !important;\n    font-size: 10px !important;\n    line-height: 1.7 !important;\n  }\n  .hk-en-page .hk-en-section-head .hk-en-heading {\n    line-height: 1.20 !important;\n  }\n  .hk-en-page .hk-en-hero .hk-en-hero-lead {\n    margin-top: 23px !important;\n    font-size: 16px !important;\n  }\n  .hk-en-page .hk-en-section-head > .hk-en-section-lead {\n    font-size: 15px !important;\n  }\n}\n\n\/* Calculator-specific, preserved from supplied code; logic is unchanged. *\/\n\/* HKCC 2.6 \u2014 bilingual design system, theme-aligned tables and accessible history controls.\n * English: Hesam Kazemi English Standard v1.0. Persian: inherit active Zephyr fonts.\n * No table\/th\/td typography, borders, backgrounds, padding or weight overrides.\n *\/\n.hkcc{--hk-red:#ED1C24;--hk-dark-red:#C9141B;--hk-soft-red:#FFF3F3;--hk-navy:#0F172A;--hk-heading:#172033;--hk-body:#536073;--hk-ink:#334056;--hk-border:#DFE3E8;--hk-soft:#F7F7F6;--hk-white:#fff;box-sizing:border-box;width:100%;min-width:0;background:#fff;position:relative;scroll-margin-top:92px}\n.hkcc,.hkcc *,.hkcc *::before,.hkcc *::after{box-sizing:border-box}\n.hkcc [hidden]{display:none!important}\n.hkcc--en{width:100%;max-width:1360px;margin-inline:auto;padding-inline:28px;direction:ltr;text-align:left;font-family:'Plus Jakarta Sans',Arial,sans-serif!important;font-size:15px;font-weight:500;line-height:1.8;color:var(--hk-body)}\n.hkcc--en :is(h2,h3,h4,h5,p,div,span,input,select,button,label,small,strong,summary,li){font-family:'Plus Jakarta Sans',Arial,sans-serif!important;word-spacing:normal!important}\n.hkcc--fa{direction:rtl;text-align:right;max-width:1200px;margin-inline:auto;padding-inline:0;color:#333;--hk-navy:#333333;--hk-heading:#333333;--hk-body:#555555;--hk-ink:#333333}\n.hkcc--fa :is(input,select,button){font-family:inherit;word-spacing:normal}\n.hkcc :is(h2,h3,h4,h5,p){margin:0}\n.hkcc p{line-height:inherit}\n.hkcc :is(button,input,select){font:inherit;box-shadow:none;text-transform:none}\n.hkcc button{cursor:pointer}\n.hkcc :is(input,select,button,a):focus-visible,.hkcc .hkcc__choice input:focus-visible+span{outline:3px solid var(--hk-navy)!important;outline-offset:3px!important}\n.hkcc__shell{width:100%;min-width:0}\n.hkcc__intro{margin:0 0 28px;border-bottom:1px solid var(--hk-border);padding:0 0 28px}\n.hkcc__eyebrow{display:block;margin-bottom:12px;color:var(--hk-red)}\n.hkcc--en .hkcc__eyebrow,.hkcc--en .hkcc__step-kicker{font-size:12px;font-weight:800;line-height:1.65;letter-spacing:1.3px;text-transform:uppercase}\n.hkcc--fa .hkcc__eyebrow,.hkcc--fa .hkcc__step-kicker{font-size:.85em}\n.hkcc .hkcc__intro h2{margin:0 0 20px;color:var(--hk-navy)}\n.hkcc--en .hkcc__intro h2{font-size:clamp(32px,3.2vw,48px);font-weight:800;letter-spacing:-1.3px;line-height:1.15}\n.hkcc--en .hkcc__intro p{font-size:17px;font-weight:500;line-height:1.8}\n.hkcc--fa .hkcc__intro p{color:#555}\n\/* Five steps. All circles and labels are centered within their own equal-width column. *\/\n.hkcc__progress{margin:0 0 28px}\n.hkcc__steps{list-style:none!important;margin:0 0 16px!important;padding:0!important;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}\n.hkcc__step-label{display:flex;justify-content:center;align-items:center;gap:10px;min-width:0;min-height:46px;list-style:none!important;margin:0!important;padding:0!important;text-align:center;color:var(--hk-ink);opacity:1}\n.hkcc__step-label::marker{content:''}\n.hkcc__step-label span:last-child{min-width:0;overflow-wrap:normal}\n.hkcc--en .hkcc__step-label{font-size:13px;font-weight:600;line-height:1.5}\n.hkcc--fa .hkcc__step-label{font-size:.88em;line-height:1.5}\n.hkcc__step-number{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid var(--hk-border);border-radius:50%;background:#fff;color:var(--hk-ink);font-size:13px;font-weight:700;line-height:1}\n.hkcc__step-label.is-active{color:var(--hk-navy);font-weight:700}\n.hkcc__step-label.is-active .hkcc__step-number{border-color:var(--hk-red);background:var(--hk-red);color:#fff}\n.hkcc__step-label.is-complete{color:#176746}.hkcc__step-label.is-complete .hkcc__step-number{border-color:#A4DABB;background:#EAF7EE;color:#176746;font-size:16px}\n.hkcc__step-label.is-skipped{opacity:1}\n.hkcc__progress-track{height:3px;border-radius:30px;background:#E7EAF0;overflow:hidden}\n.hkcc__progress-fill{display:block;height:100%;width:0;background:var(--hk-red);border-radius:30px;transition:width .2s ease}\n\/* Step surface intentionally restrained, matching standard site cards. *\/\n.hkcc__step{border:1px solid var(--hk-border);border-radius:10px;background:#fff;box-shadow:0 14px 42px rgba(15,23,42,.04);padding:32px;min-width:0}\n.hkcc__step-heading{margin:0 0 28px}\n.hkcc__step-kicker{color:var(--hk-red);margin:0 0 8px}\n.hkcc .hkcc__step-heading h3,.hkcc .hkcc__report-heading h3{margin:0 0 16px;color:var(--hk-navy)}\n.hkcc--en .hkcc__step-heading h3,.hkcc--en .hkcc__report-heading h3{font-size:23px;font-weight:800;line-height:1.35}\n.hkcc__step-heading p{max-width:none!important;color:var(--hk-body)}\n.hkcc--en .hkcc__step-heading p{font-size:15px;font-weight:500;line-height:1.8}\n.hkcc__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}\n.hkcc__field{display:flex;flex-direction:column;min-width:0;gap:8px;margin:0;color:var(--hk-ink)}\n.hkcc--en .hkcc__field>span:first-child{font-size:14px;font-weight:700;line-height:1.65}\n.hkcc__field i{font-style:normal;color:var(--hk-red)}\n.hkcc input:not([type=radio]):not([type=checkbox]),.hkcc select{display:block;width:100%!important;min-width:0!important;max-width:100%!important;min-height:52px!important;height:52px!important;margin:0!important;padding:12px 15px!important;border-radius:7px!important;border:1px solid var(--hk-border)!important;box-shadow:none!important;background:#fff!important;color:var(--hk-navy)!important;font-size:15px!important;font-weight:500!important;line-height:1.4!important;letter-spacing:normal!important;appearance:auto}\n.hkcc--fa input:not([type=radio]):not([type=checkbox]),.hkcc--fa select{font-size:inherit!important;font-weight:inherit!important}\n.hkcc input:not([type=radio]):not([type=checkbox]):focus,.hkcc select:focus{border-color:var(--hk-navy)!important}\n.hkcc input::placeholder{color:#8893A3!important;opacity:1}\n.hkcc__date-wrap{position:relative;display:block;min-width:0;direction:ltr}\n.hkcc .hkcc__date{direction:ltr!important;text-align:left!important;unicode-bidi:isolate;white-space:nowrap;font-variant-numeric:tabular-nums;padding-right:55px!important}\n.hkcc--fa .hkcc__date,.hkcc--fa .hkcc__date::placeholder{font-family:Arial,sans-serif!important}\n.hkcc .hkcc__calendar-button{position:absolute;right:6px;top:6px;width:40px;height:40px;min-height:40px;padding:0!important;border:0!important;border-radius:6px!important;background:var(--hk-soft)!important;color:var(--hk-ink)!important;display:grid;place-items:center}\n.hkcc .hkcc__calendar-button:hover{background:#E9EBEE!important}\n.hkcc__calendar-button svg{width:19px;height:19px}\n.hkcc__window-preview{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:var(--hk-soft);border-radius:9px;color:var(--hk-ink)}\n.hkcc__window-preview>strong{display:inline-flex;align-items:center;gap:12px;color:var(--hk-navy);font-variant-numeric:tabular-nums}\n.hkcc--en .hkcc__window-preview{font-weight:600}\n.hkcc__window-preview strong b{font-weight:inherit}\n.hkcc__hint{margin:16px 0 0!important;color:var(--hk-body)}\n.hkcc--en .hkcc__hint{font-size:13px;line-height:1.75}\n.hkcc__info{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;margin-top:20px;border:1px solid var(--hk-border);border-radius:9px;background:var(--hk-soft);color:var(--hk-body)}\n.hkcc__info p{flex:1;color:inherit}\n.hkcc--en .hkcc__info p{font-size:13px;line-height:1.75}\n.hkcc__info-dot{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border:1px solid #C5CBD3;border-radius:50%;font-size:12px;line-height:1;color:var(--hk-ink)}\n\/* Questions and centered two-way responses. *\/\n.hkcc__question{position:relative;border:1px solid var(--hk-border);border-inline-start:3px solid var(--hk-red);border-radius:7px;background:#FFFCFC;padding:24px 28px;margin:0 0 20px}\n.hkcc__question-label{margin:0 0 20px!important;color:var(--hk-navy)}\n.hkcc--en .hkcc__question-label{font-size:15px;font-weight:700;line-height:1.8}\n.hkcc__date-inline{display:inline-block!important;direction:ltr;unicode-bidi:isolate;border:0!important;background:none!important;padding:0!important;margin:0!important;font:inherit!important;color:inherit!important}\n.hkcc__choices{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}\n.hkcc__choice{display:inline-flex;position:relative;cursor:pointer;margin:0}\n.hkcc__choice input{position:absolute!important;width:1px;height:1px;opacity:0;pointer-events:none}\n.hkcc .hkcc__choice span{min-width:190px;min-height:52px;padding:12px 22px;border:1px solid var(--hk-border);border-radius:7px;background:#fff;color:var(--hk-ink);display:flex;justify-content:center;align-items:center;text-align:center;line-height:1.6}\n.hkcc--en .hkcc__choice span{font-size:14px;font-weight:700}\n.hkcc__choice input:checked+span{background:var(--hk-soft-red)!important;border-color:var(--hk-red)!important;color:var(--hk-navy)!important}\n.hkcc__choice input:checked+span::before{content:'\u2713';color:var(--hk-dark-red);margin-inline-end:8px}\n.hkcc__choice:hover span{border-color:#ADB7C3}\n.hkcc__conditional{margin:24px 0 0}\n.hkcc__section-caption{margin:0 0 20px!important;color:var(--hk-ink)}\n\/* Repeated travel \/ status \/ sentence entries: alternating subtle surfaces and clear numbered headers. *\/\n.hkcc__rows{display:grid;gap:20px;margin-bottom:20px}\n.hkcc__entry{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;padding:24px;border:1px solid var(--hk-border);border-radius:7px;background:var(--hk-soft);min-width:0}\n.hkcc__entry:nth-child(even){background:#FAFBFC;border-color:var(--hk-border)}\n.hkcc__entry:nth-child(even) input,.hkcc__entry:nth-child(even) select{background:#fff!important}\n.hkcc__entry[data-kind='periods'],.hkcc__entry[data-kind='sentences']{grid-template-columns:repeat(3,minmax(0,1fr))}\n.hkcc__entry-header{grid-column:1\/-1;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--hk-border);padding:0 0 14px;margin:0 0 2px}\n.hkcc__entry-number{color:var(--hk-navy);font-weight:700}\n.hkcc--en .hkcc__entry-number{font-size:14px}\n.hkcc .hkcc__remove{padding:5px 12px!important;min-height:36px!important;background:#fff!important;color:var(--hk-ink)!important;border:1px solid var(--hk-border)!important;border-radius:5px!important}\n.hkcc--en .hkcc__remove{font-size:13px;font-weight:700}\n.hkcc .hkcc__remove:hover{color:var(--hk-dark-red)!important;border-color:var(--hk-dark-red)!important}\n.hkcc .hkcc__add{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px!important;padding:10px 20px!important;border-radius:6px!important;border:1px dashed #BCC5CE!important;background:#fff!important;color:var(--hk-navy)!important;box-shadow:none!important}\n.hkcc--en .hkcc__add{font-size:14px;font-weight:700}\n.hkcc .hkcc__add:hover{border-color:var(--hk-red)!important;background:var(--hk-soft-red)!important}\n.hkcc__add span{color:var(--hk-red)}\n\/* All substantive action buttons share a single min width and are grouped in the center. *\/\n.hkcc__wizard-actions,.hkcc__report-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:28px;padding-top:24px;border-top:1px solid var(--hk-border)}\n.hkcc__grow{display:none}\n.hkcc .hkcc__primary,.hkcc .hkcc__secondary{display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;gap:8px;flex:0 0 224px;min-height:52px!important;width:224px;max-width:100%;padding:12px 16px!important;border-radius:5px!important;line-height:1.5!important;box-shadow:none!important}\n.hkcc--en :is(.hkcc__primary,.hkcc__secondary){font-size:14px!important;font-weight:700!important}\n.hkcc .hkcc__primary{color:#fff!important;background:var(--hk-red)!important;border:1px solid var(--hk-red)!important}\n.hkcc .hkcc__primary:hover{background:var(--hk-dark-red)!important;border-color:var(--hk-dark-red)!important}\n.hkcc .hkcc__secondary{color:var(--hk-navy)!important;background:#fff!important;border:1px solid var(--hk-border)!important}\n.hkcc .hkcc__secondary:hover{background:var(--hk-soft)!important}\n.hkcc__error{margin-top:16px;padding:14px 16px;border:1px solid #E9B6BA;border-radius:6px;color:#842C32;background:var(--hk-soft-red)}\n\/* Report summary: one quiet surface hierarchy with centered values. *\/\n.hkcc__report-heading{margin-bottom:24px}\n.hkcc__outcome{display:flex;gap:16px;align-items:flex-start;background:#F3F9F6;border:1px solid #DDEBE2;border-radius:9px;padding:20px 24px;margin-bottom:28px}\n.hkcc__outcome--needs{background:#FFF9F0;border-color:#F0E2C9}\n.hkcc__outcome-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:#DCEFE2;color:#22734C;line-height:1;padding:0}\n.hkcc__outcome-icon svg{display:block;width:23px;height:23px;flex:none;margin:0}.hkcc__outcome--needs .hkcc__outcome-icon{background:#FAEAC8;color:#92691D}\n.hkcc__outcome strong{display:block;color:var(--hk-navy);margin-bottom:4px}\n.hkcc--en .hkcc__outcome strong{font-size:17px;font-weight:800;line-height:1.4}\n.hkcc__outcome p{color:var(--hk-ink)}\n.hkcc--en .hkcc__outcome p{font-size:14px;line-height:1.75}\n.hkcc__metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}\n.hkcc__metric{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:156px;gap:9px;padding:24px 14px;background:#fff;border:1px solid var(--hk-border);border-radius:8px;transition:transform .19s ease,box-shadow .19s ease,border-color .19s ease;box-shadow:0 3px 14px rgba(15,23,42,.025)}.hkcc__metric:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,23,42,.085);border-color:#C5CDD8}\n.hkcc__metric-main{background:#FFF8F8;border-color:#F1CFD1}.hkcc__metric-main:hover{border-color:var(--hk-red)}\n.hkcc__metric>span{color:var(--hk-ink)}\n.hkcc--en .hkcc__metric>span{font-size:13px;font-weight:700;line-height:1.65}\n.hkcc__metric>strong{font-variant-numeric:tabular-nums;color:var(--hk-navy);line-height:1.15}\n.hkcc--en .hkcc__metric>strong{font-size:32px;font-weight:800}\n.hkcc--fa .hkcc__metric>strong{font-size:1.75em}\n.hkcc__metric>small{color:var(--hk-body)}\n.hkcc--en .hkcc__metric>small{font-size:12px;font-weight:500}\n.hkcc__window{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:32px}\n.hkcc__window>div{min-width:0;text-align:center;padding-top:14px;border-top:1px solid var(--hk-border)}\n.hkcc__window>div>span{display:block;color:var(--hk-body);margin-bottom:8px}\n.hkcc--en .hkcc__window>div>span{font-size:13px;line-height:1.65}\n.hkcc__window strong{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;color:var(--hk-navy);font-variant-numeric:tabular-nums}\n.hkcc--en .hkcc__window strong{font-size:14px;font-weight:700}\n.hkcc--fa .hkcc__window strong{direction:rtl}\n.hkcc__window strong b{font-weight:inherit}\n.hkcc .hkcc__section-title{color:var(--hk-navy);margin:32px 0 16px}\n.hkcc--en .hkcc__section-title{font-size:21px;font-weight:800;line-height:1.35}\n\/* Date ranges use semantic start\u2013end order. Rightmost = start in RTL; leftmost = start in LTR. *\/\n.hkcc__range{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;white-space:nowrap;unicode-bidi:isolate;direction:ltr}\n.hkcc--fa .hkcc__range{direction:rtl!important}\n.hkcc__range b{direction:ltr;unicode-bidi:isolate;font-weight:inherit;white-space:nowrap}\n\/* Table content retains Zephyr's own font, size, weight, line-height and cell spacing. *\/\n.hkcc__group-row{background:#F6F7F8}\n.hkcc__subtotal{background:#FFFAFA}\n\/* No font-family, font-size, font-weight or line-height rules target table\/th\/td. Zephyr owns table typography and cell spacing. *\/\n.hkcc__native-table-wrap{width:100%;min-width:0;margin-bottom:20px;border:1px solid var(--hk-border);border-radius:10px;overflow:hidden;background:#fff}\n.hkcc__total-line{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#FFF3F3;border:1px solid #F3D3D5;border-inline-start:4px solid var(--hk-red);border-radius:7px;padding:22px 28px;margin:20px 0 16px;color:var(--hk-navy)}\n.hkcc--en .hkcc__total-line span{font-size:15px;font-weight:800}\n.hkcc--en .hkcc__total-line strong{font-size:30px;font-weight:800}\n.hkcc__footnote{margin:12px 0 28px!important;color:var(--hk-body)}\n.hkcc--en .hkcc__footnote{font-size:13px;line-height:1.75}\n.hkcc__table-scroll{width:100%;min-width:0;margin-bottom:16px}\n.hkcc__travel-mobile{display:none}\n.hkcc__additional{margin:24px 0}\n.hkcc__additional details{padding-top:17px;border-top:1px solid var(--hk-border)}\n.hkcc__additional summary{cursor:pointer;color:var(--hk-ink)}\n.hkcc--en .hkcc__additional summary{font-size:13px;font-weight:700}\n.hkcc__additional h4{margin:24px 0 12px;color:var(--hk-navy)}\n.hkcc__report-foot{margin:24px 0 12px;color:var(--hk-body)}\n.hkcc__report-foot p{margin-bottom:8px}\n.hkcc--en .hkcc__report-foot p{font-size:12px;line-height:1.75}\n\/* Gregorian date picker. Custom month grid prevents native select dropdowns from adopting broken site styles. *\/\n.hkcc .hkcc__calendar{position:fixed!important;z-index:2147483000!important;width:344px;max-width:calc(100vw - 28px);padding:20px;border-radius:10px;border:1px solid var(--hk-border);background:#fff!important;box-shadow:0 16px 38px rgba(15,23,42,.12)!important;color:var(--hk-navy);direction:ltr;text-align:left;line-height:1.45}\n.hkcc--en .hkcc__calendar,.hkcc--en .hkcc__calendar *{font-family:'Plus Jakarta Sans',Arial,sans-serif!important}\n.hkcc--fa .hkcc__calendar,.hkcc--fa .hkcc__calendar *{font-family:inherit}\n.hkcc__calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}\n.hkcc .hkcc__calendar-head button{height:40px;min-height:40px!important;padding:0!important;border:1px solid var(--hk-border)!important;background:#fff!important;color:var(--hk-navy)!important;border-radius:6px!important;line-height:1!important}\n.hkcc .hkcc__calendar-head button[data-cal-prev],.hkcc .hkcc__calendar-head button[data-cal-next]{width:40px;flex:0 0 40px;font-size:24px!important}\n.hkcc .hkcc__calendar-head .hkcc__calendar-title{flex:1;min-width:0;padding:0 9px!important;font-size:14px!important;font-weight:700!important;white-space:nowrap}\n.hkcc .hkcc__calendar-head button:hover{background:var(--hk-soft)!important}\n.hkcc__calendar-weekdays,.hkcc__calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}\n.hkcc__calendar-weekdays span{text-align:center;padding:8px 0;font-size:12px;color:var(--hk-body)}\n.hkcc .hkcc__calendar-days button{width:100%;height:40px!important;min-height:40px!important;padding:0!important;border:1px solid transparent!important;border-radius:6px!important;background:#fff!important;color:var(--hk-navy)!important;font-size:13px!important;font-weight:600!important;line-height:1.35!important}\n.hkcc .hkcc__calendar-days button:hover{background:var(--hk-soft)!important}\n.hkcc .hkcc__calendar-days button.is-today{border-color:var(--hk-border)!important}\n.hkcc .hkcc__calendar-days button.is-selected{background:var(--hk-red)!important;color:#fff!important}\n.hkcc__calendar-picker{padding:10px 0 14px}\n.hkcc__calendar-year{display:flex;justify-content:center;align-items:center;gap:12px;margin:2px 0 18px}\n.hkcc .hkcc__calendar-year button{width:40px;height:40px;min-height:40px!important;padding:0!important;background:#fff!important;border:1px solid var(--hk-border)!important;color:var(--hk-navy)!important;border-radius:6px!important;font-size:22px!important}\n.hkcc .hkcc__calendar-year input{width:110px!important;height:42px!important;min-height:42px!important;padding:5px 10px!important;text-align:center!important;border-radius:6px!important;font-size:15px!important;font-family:Arial,sans-serif!important;font-variant-numeric:tabular-nums;direction:ltr}\n.hkcc__calendar-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}\n.hkcc .hkcc__calendar-month{width:100%;min-height:42px!important;height:auto!important;padding:8px 6px!important;border:1px solid var(--hk-border)!important;border-radius:6px!important;background:#fff!important;color:var(--hk-navy)!important;font-size:12px!important;line-height:1.35!important;white-space:nowrap}\n.hkcc .hkcc__calendar-month:hover{background:var(--hk-soft)!important}\n.hkcc .hkcc__calendar-month.is-selected{background:var(--hk-soft-red)!important;border-color:var(--hk-red)!important}\n.hkcc__calendar-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px;padding:16px 8px 0;border-top:1px solid var(--hk-border)}\n.hkcc .hkcc__calendar-bottom button{padding:8px 12px!important;min-height:42px!important;min-width:74px;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--hk-ink)!important;font-size:13px!important;text-align:center!important}\n.hkcc .hkcc__calendar-bottom button:hover{background:var(--hk-soft)!important}\n@media(max-width:980px){.hkcc__steps{gap:4px}.hkcc__step-label{flex-direction:column;gap:5px}.hkcc__metrics{gap:12px}.hkcc__window{gap:12px}}\n@media(max-width:700px){\n .hkcc--en{width:100%;padding-inline:24px}\n .hkcc--fa{width:calc(100% - 32px);padding-inline:0}\n .hkcc__intro{margin-bottom:24px;padding-bottom:24px}\n .hkcc__progress{margin-bottom:24px}\n .hkcc__step-label span:last-child{display:none}\n .hkcc__step-label.is-active span:last-child{display:block;font-size:12px}\n .hkcc__steps{gap:2px}\n .hkcc__step-number{width:30px;height:30px;font-size:12px}\n .hkcc__step{padding:20px 20px;box-shadow:none}\n .hkcc--en .hkcc__intro h2{font-size:clamp(32px,8vw,42px)}\n .hkcc__grid,.hkcc__entry,.hkcc__entry[data-kind='periods'],.hkcc__entry[data-kind='sentences']{grid-template-columns:1fr;gap:16px}\n .hkcc__entry{padding:20px}\n .hkcc__question{padding:20px}\n .hkcc__choices{gap:10px}\n .hkcc__choice{flex:1 1 120px}\n .hkcc .hkcc__choice span{min-width:0;width:100%;padding:12px 10px}\n .hkcc__window-preview{align-items:flex-start;flex-direction:column}\n .hkcc__metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}\n .hkcc__metric{min-height:136px;padding:16px 12px}\n .hkcc--en .hkcc__metric>strong{font-size:27px}\n .hkcc__window{grid-template-columns:1fr;gap:16px}\n .hkcc__wizard-actions,.hkcc__report-actions{gap:10px}\n .hkcc .hkcc__primary,.hkcc .hkcc__secondary{flex:1 1 calc(50% - 5px);width:calc(50% - 5px);min-width:0;padding-inline:8px!important}\n .hkcc__native-table-wrap{overflow-x:auto;overscroll-behavior-inline:contain}\n \/* Travel table is replaced by compact, accessible mobile cards, not restyled. *\/\n .hkcc__table-scroll--trips{display:none}\n .hkcc__travel-mobile{display:grid;gap:12px}\n .hkcc__travel-card{border:1px solid var(--hk-border);border-radius:9px;padding:16px;background:#fff}\n .hkcc__travel-card:nth-child(even){background:var(--hk-soft)}\n .hkcc__travel-card div{display:flex;align-items:start;justify-content:space-between;gap:10px;padding:7px 0}\n .hkcc__travel-card span{color:var(--hk-body)}\n .hkcc__travel-card strong{color:var(--hk-navy);font-weight:600;overflow-wrap:anywhere;text-align:end}\n}\n@media(max-width:380px){.hkcc__step-label.is-active span:last-child{font-size:11px}.hkcc .hkcc__primary,.hkcc .hkcc__secondary{flex:1 1 100%;width:100%}}\n@media(prefers-reduced-motion:reduce){.hkcc *, .hkcc *::before,.hkcc *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}\n@media print{\n @page{margin:14mm}\n .hkcc,.hkcc--en,.hkcc--fa{width:100%!important;max-width:100%!important;left:auto!important;transform:none!important;padding:0!important;margin:0!important;background:#fff!important}\n .hkcc__intro,.hkcc__progress,.hkcc__wizard-actions,.hkcc__report-actions,.hkcc__calendar,.hkcc__error,.hkcc__step:not(.hkcc__report-step){display:none!important}\n .hkcc__step.hkcc__report-step{display:block!important;box-shadow:none!important;border:0!important;padding:0!important}\n .hkcc__metrics{grid-template-columns:repeat(4,1fr)!important}\n .hkcc__native-table-wrap{overflow:visible!important}\n .hkcc__table-scroll--trips{display:block!important}\n .hkcc__travel-mobile{display:none!important}\n .hkcc__metric,.hkcc__outcome{break-inside:avoid}\n}\n\n\/* 2.5: One design system, no arbitrary rounded pills or visual table-font overrides. *\/\n.hkcc__question-eyebrow{display:block;margin:0 0 12px;color:var(--hk-red);font-size:.85em}\n.hkcc--en .hkcc__question-eyebrow{font-size:12px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase}\n.hkcc__question-label{margin:0 0 24px!important}\n.hkcc__entry-actions,.hkcc__email-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center}\n.hkcc__entry-actions{grid-column:1\/-1;padding-top:8px}\n.hkcc .hkcc__record-save,.hkcc .hkcc__record-cancel{min-height:52px!important;flex:0 0 224px;width:224px!important;max-width:100%;white-space:nowrap!important}\n\/* A saved record is an actual table; every column has identical alignment in header and body. *\/\n.hkcc__saved-entries{width:100%;min-width:0;margin:22px 0 20px;border:1px solid var(--hk-border);border-radius:7px;overflow:hidden;background:#fff}\n.hkcc__saved-entries .hkcc__record-table{width:100%!important;min-width:0;margin:0!important;border:0!important;border-spacing:0!important;border-collapse:collapse!important;table-layout:fixed!important;direction:inherit!important;text-align:inherit!important;letter-spacing:normal!important;font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important}\n.hkcc__saved-entries .hkcc__record-table :is(thead,tbody,tr,th,td){font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;word-spacing:normal!important}\n.hkcc__saved-entries .hkcc__record-table th,.hkcc__saved-entries .hkcc__record-table td{border:0!important;border-bottom:1px solid var(--hk-border)!important;padding:16px 14px!important;vertical-align:middle!important;box-shadow:none!important;white-space:normal!important;overflow-wrap:anywhere!important;font-weight:inherit!important;background:#fff!important;color:inherit!important}\n.hkcc__saved-entries .hkcc__record-table thead th{background:var(--hk-soft)!important;color:var(--hk-navy)!important}\n.hkcc__saved-entries .hkcc__record-table tbody tr:last-child td{border-bottom:0!important}\n.hkcc__saved-entries .hkcc__record-table tbody tr:hover td{background:#FAFBFC!important}\n.hkcc__record-table--periods col:nth-child(1),.hkcc__record-table--sentences col:nth-child(1){width:40%}\n.hkcc__record-table--periods col:nth-child(2),.hkcc__record-table--sentences col:nth-child(2){width:19%}\n.hkcc__record-table--periods col:nth-child(3),.hkcc__record-table--sentences col:nth-child(3){width:19%}\n.hkcc__record-table--periods col:nth-child(4),.hkcc__record-table--sentences col:nth-child(4){width:22%}\n.hkcc__record-table--trips col:nth-child(1),.hkcc__record-table--trips col:nth-child(2){width:18%}\n.hkcc__record-table--trips col:nth-child(3),.hkcc__record-table--trips col:nth-child(4){width:23%}\n.hkcc__record-table--trips col:nth-child(5){width:18%}\n.hkcc__saved-entries .hkcc__record-table :is(th,td):not(:first-child){text-align:center!important}\n.hkcc--en .hkcc__saved-entries .hkcc__record-table :is(th,td):first-child{text-align:left!important}\n.hkcc--fa .hkcc__saved-entries .hkcc__record-table :is(th,td):first-child{text-align:right!important}\n.hkcc__record-table bdi{direction:ltr!important;unicode-bidi:isolate;font:inherit!important;white-space:nowrap!important}\n.hkcc__record-actions{text-align:center!important;white-space:normal!important}\n.hkcc__record-actions-inner{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:8px;min-width:0}\n.hkcc .hkcc__record-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;flex:1 1 0;min-width:0!important;min-height:40px!important;padding:7px 8px!important;border:1px solid var(--hk-border)!important;border-radius:5px!important;background:#fff!important;color:var(--hk-ink)!important;box-shadow:none!important;text-transform:none!important;line-height:1.5!important;font:inherit!important;white-space:nowrap!important}\n.hkcc .hkcc__record-action:hover{border-color:var(--hk-red)!important;background:#FFF8F8!important}\n.hkcc .hkcc__record-action--danger{color:#B02C31!important}\n\/* Lighter, genuinely distinct report: aligned two-column breakdown, same body font and clear totals. *\/\n.hkcc__breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:24px;margin:12px 0 22px}\n.hkcc__break-card{display:flex;flex-direction:column;min-width:0;padding:0;border:1px solid var(--hk-border);border-radius:7px;background:#fff;overflow:hidden}\n.hkcc__break-card>h5{margin:0!important;padding:20px 22px;background:var(--hk-soft);border-bottom:1px solid var(--hk-border);color:var(--hk-navy)}\n.hkcc--en .hkcc__break-card>h5{font-size:17px;font-weight:800;line-height:1.5}\n.hkcc__break-head{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:16px;margin:0;padding:12px 22px;color:var(--hk-body);border-bottom:1px solid var(--hk-border)}\n.hkcc--en .hkcc__break-head{font-size:13px;font-weight:600}\n.hkcc__break-row,.hkcc__break-subtotal{display:grid;grid-template-columns:minmax(0,1fr) 116px;align-items:center;gap:16px;padding:15px 22px;min-width:0}\n.hkcc__break-row{border-bottom:1px solid #EEF0F3}\n.hkcc__break-row:hover{background:#FAFBFC}\n.hkcc__break-row span,.hkcc__break-subtotal span{min-width:0}\n.hkcc__break-row strong,.hkcc__break-subtotal strong{font:inherit!important;color:var(--hk-navy)!important;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:center}\n.hkcc__break-head span:last-child,.hkcc__break-row strong,.hkcc__break-subtotal strong{text-align:center}\n.hkcc__break-subtotal{margin-top:auto;background:#F5F7F8;border-top:1px solid var(--hk-border);color:var(--hk-navy)}\n.hkcc__break-subtotal span,.hkcc__break-subtotal strong{font-weight:700!important}\n.hkcc__total-line{font:inherit!important}\n.hkcc__total-line span{color:var(--hk-navy);font-weight:700}\n.hkcc__total-line strong{font-weight:800;color:var(--hk-red);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:1.55em}\n.hkcc--en .hkcc__total-line strong{font-size:30px}\n\/* Email and consent are visually part of the report, not external modal\/popup. *\/\n.hkcc__email-panel{margin:36px 0 24px;padding:28px 30px;background:var(--hk-soft);border:1px solid var(--hk-border);border-radius:8px}\n.hkcc__email-panel-intro{display:flex;align-items:flex-start;gap:16px;margin-bottom:24px}\n.hkcc__mail-icon{background:var(--hk-soft-red);border:1px solid #F3D3D5;color:var(--hk-red);width:44px;height:44px;flex:0 0 44px;border-radius:6px;display:grid;place-items:center;font-size:23px}\n.hkcc__email-panel h4{color:var(--hk-navy);margin:0 0 8px!important}\n.hkcc--en .hkcc__email-panel h4{font-size:21px;font-weight:800;line-height:1.35}\n.hkcc__email-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:22px}\n.hkcc__email-consent{display:flex;gap:12px;align-items:flex-start;cursor:pointer;margin:0 0 22px;line-height:1.65}\n.hkcc__email-consent input{flex:0 0 20px;width:20px;height:20px;margin:4px 0 0;accent-color:var(--hk-red)}\n.hkcc__email-message{margin:16px 0 0!important;color:#A8252A!important;text-align:center;min-height:1.6em}\n.hkcc__email-message.is-success{color:#176746!important}\n.hkcc__honeypot{position:absolute!important;left:-9999px!important;height:0!important;width:0!important;overflow:hidden!important;opacity:0!important}\n.hkcc__email-panel button:disabled{opacity:.55;cursor:wait}\n\/* The rest of the report is a native table; respect the font and size of the site. *\/\n.hkcc .hkcc__native-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important;font:inherit!important;color:inherit!important;letter-spacing:inherit!important}\n.hkcc .hkcc__native-table :is(th,td){padding:13px 14px!important;border-bottom:1px solid var(--hk-border)!important;vertical-align:middle!important;font:inherit!important;color:inherit!important;letter-spacing:inherit!important;background:#fff!important;word-break:normal!important;overflow-wrap:anywhere!important}\n.hkcc .hkcc__native-table :is(thead,tfoot) :is(th,td){background:var(--hk-soft)!important}\n.hkcc .hkcc__native-table :is(th,td):not(:first-child){text-align:center!important}\n@media(max-width:980px){.hkcc__breakdown{grid-template-columns:1fr}}\n@media(max-width:700px){\n .hkcc__question{padding:20px 18px}\n .hkcc__email-panel{padding:22px 20px}\n .hkcc__email-fields{grid-template-columns:1fr;gap:18px}\n .hkcc__record-table{display:block!important;width:100%!important}\n .hkcc__record-table colgroup,.hkcc__record-table thead{display:none!important}\n .hkcc__record-table tbody{display:block!important}\n .hkcc__record-table tbody tr{display:block!important;border-bottom:1px solid var(--hk-border)!important;padding:10px 16px!important}\n .hkcc__record-table tbody tr:last-child{border-bottom:0!important}\n .hkcc__saved-entries .hkcc__record-table tbody td{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;padding:10px 0!important;text-align:start!important;border-bottom:1px solid #EEF0F3!important}\n .hkcc__saved-entries .hkcc__record-table tbody td::before{content:attr(data-label);flex:0 0 39%;color:var(--hk-body);text-align:start}\n .hkcc__saved-entries .hkcc__record-table tbody td:last-child{border:0!important}\n .hkcc__record-actions-inner{flex:1;justify-content:center;gap:12px}\n .hkcc__saved-entries .hkcc__record-table tbody td.hkcc__record-actions::before{display:none}\n .hkcc .hkcc__record-action{flex:0 1 116px}\n .hkcc__break-head,.hkcc__break-row,.hkcc__break-subtotal{grid-template-columns:minmax(0,1fr) 76px;gap:12px;padding-inline:14px}\n .hkcc__break-card>h5{padding:16px}\n .hkcc__total-line{gap:12px;flex-wrap:wrap;padding:18px}\n .hkcc__total-line strong{margin-inline-start:auto}\n .hkcc__entry-actions{gap:10px}\n .hkcc .hkcc__record-save,.hkcc .hkcc__record-cancel{flex:1 1 calc(50% - 5px);width:auto!important;min-width:0!important;padding-inline:8px!important}\n}\n@media print{.hkcc__email-panel,.hkcc__email-message{display:none!important}.hkcc__breakdown{grid-template-columns:repeat(2,minmax(0,1fr))!important}}\n\n\/* v2.6: preserve the typography of the active page, regardless of Zephyr table rules. *\/\n.hkcc .hkcc__saved-entries table.hkcc__record-table,\n.hkcc .hkcc__saved-entries table.hkcc__record-table :is(thead,tbody,tfoot,tr,th,td),\n.hkcc .hkcc__table-scroll table.hkcc__native-table,\n.hkcc .hkcc__table-scroll table.hkcc__native-table :is(thead,tbody,tfoot,tr,th,td){\n font-family:var(--hkcc-site-font,inherit)!important;\n font-size:var(--hkcc-site-size,inherit)!important;\n line-height:var(--hkcc-site-line,inherit)!important;\n font-weight:var(--hkcc-site-weight,inherit)!important;\n letter-spacing:normal!important;\n word-spacing:normal!important;\n text-transform:none!important;\n}\n.hkcc .hkcc__saved-entries table.hkcc__record-table button,\n.hkcc .hkcc__table-scroll table.hkcc__native-table button{\n font-family:var(--hkcc-site-font,inherit)!important;\n font-size:var(--hkcc-site-size,inherit)!important;\n font-weight:var(--hkcc-site-weight,inherit)!important;\n line-height:var(--hkcc-site-line,inherit)!important;\n}\n\/* The real checkbox remains keyboard accessible; the styled visual check is always centered. *\/\n.hkcc .hkcc__email-consent{display:flex!important;align-items:center!important;gap:12px!important;cursor:pointer;line-height:inherit!important}\n.hkcc .hkcc__email-consent input[type=checkbox]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;margin:0!important;}\n.hkcc .hkcc__checkmark{width:24px!important;height:24px!important;flex:0 0 24px!important;border:1px solid #AEB8C6!important;border-radius:5px!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;color:#fff!important;margin:0!important;padding:0!important;line-height:1!important}\n.hkcc .hkcc__checkmark svg{width:16px!important;height:16px!important;display:block!important;stroke:currentColor!important;margin:0!important;}\n.hkcc .hkcc__email-consent input[type=checkbox]:checked+.hkcc__checkmark{background:var(--hk-red)!important;border-color:var(--hk-red)!important;color:#fff!important;}\n.hkcc .hkcc__email-consent input[type=checkbox]:focus-visible+.hkcc__checkmark{outline:3px solid var(--hk-navy)!important;outline-offset:3px!important;}\n.hkcc .hkcc__consent-copy{min-width:0!important;flex:1!important;line-height:inherit!important}\n.hkcc--fa .hkcc__email-consent{direction:rtl;text-align:right}\n.hkcc--en .hkcc__email-consent{direction:ltr;text-align:left}\n.hkcc .hkcc__email-consent:hover .hkcc__checkmark{border-color:var(--hk-red)!important}\n@media print{.hkcc__email-panel{display:none!important}}\n\n\/* Page-specific composition and citizenship calculator controls.\n   Shared .hk-en-* components are owned exclusively by the canonical CSS above. *\/\n.hk-citizenship-page{--line:var(--hk-border);--red:var(--hk-red);--text:var(--hk-text);background:var(--hk-white);color:var(--hk-navy)}\n.hk-citizenship-page [hidden]{display:none!important}\n.hk-citizenship-tool-section{scroll-margin-top:110px}\n.hk-citizenship-calculator-mount{width:100%;min-width:0;max-width:100%}\n.hk-citizenship-page .hkcc--en{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;background:transparent;color:var(--hk-text);font-family:var(--hk-font)!important;font-size:var(--hk-body);font-weight:500;line-height:1.8}\n.hk-citizenship-page .hkcc__shell{width:100%;min-width:0}\n.hk-citizenship-page .hkcc__progress{margin-bottom:32px}\n.hk-citizenship-page .hkcc__steps{gap:12px;margin-bottom:20px!important}\n.hk-citizenship-page .hkcc__step-label{display:flex;gap:12px;color:var(--hk-ink-secondary);min-height:56px;font-size:var(--hk-compact);font-weight:700;line-height:1.7;opacity:1}\n.hk-citizenship-page .hkcc__step-label span:last-child{overflow-wrap:normal}\n.hk-citizenship-page .hkcc__step-number{display:flex;align-items:center;justify-content:center;width:46px;height:46px;min-width:46px;border:2px solid var(--hk-border);border-radius:50%;font-size:13px;font-weight:800;line-height:1;color:var(--hk-heading);background:#fff}\n.hk-citizenship-page .hkcc__step-label.is-active .hkcc__step-number{background:var(--hk-red);border-color:var(--hk-red);color:#fff}\n.hk-citizenship-page .hkcc__step-label.is-complete .hkcc__step-number{background:#edf7f0;border-color:#a3d5b7;color:#217047}\n.hk-citizenship-page .hkcc__progress-track{height:3px;background:var(--hk-border);border-radius:0}\n.hk-citizenship-page .hkcc__progress-fill{background:var(--hk-red);border-radius:0}\n.hk-citizenship-page .hkcc__step{background:#fff;border:1px solid var(--hk-border);border-radius:var(--hk-radius-panel);padding:32px;box-shadow:var(--hk-shadow-card)}\n.hk-citizenship-page .hkcc__step-heading{margin-bottom:28px}\n.hk-citizenship-page .hkcc__step-kicker{color:var(--hk-red);font-size:var(--hk-micro);font-weight:800;letter-spacing:1.3px;line-height:1.5}\n.hk-citizenship-page .hkcc--en .hkcc__step-heading h3,.hk-citizenship-page .hkcc--en .hkcc__report-heading h3{font-size:var(--hk-h3-featured);font-weight:800;line-height:1.35;color:var(--hk-heading);margin:0 0 16px}\n.hk-citizenship-page .hkcc--en .hkcc__step-heading p{font-size:var(--hk-body);font-weight:500;line-height:1.8;color:var(--hk-text);max-width:100%!important}\n.hk-citizenship-page .hkcc__field{gap:8px}\n.hk-citizenship-page .hkcc--en .hkcc__field>span:first-child{font-size:var(--hk-compact);font-weight:700;line-height:1.7;color:var(--hk-heading)}\n.hk-citizenship-page .hkcc input:not([type=radio]):not([type=checkbox]),.hk-citizenship-page .hkcc select{border-radius:var(--hk-radius-control)!important;color:var(--hk-heading)!important;font-size:var(--hk-body)!important;line-height:1.7!important;font-weight:500!important}\n.hk-citizenship-page .hkcc__calendar-button{border-radius:var(--hk-radius-control)!important}\n.hk-citizenship-page .hkcc__window-preview{background:var(--hk-soft);border:1px solid var(--hk-border);border-radius:var(--hk-radius-card)}\n.hk-citizenship-page .hkcc__question{border:1px solid var(--hk-border);border-left:3px solid var(--hk-red);border-radius:var(--hk-radius-card);padding:28px 32px;background:#fff}\n.hk-citizenship-page .hkcc--en .hkcc__question-label{color:var(--hk-heading);font-size:var(--hk-body);font-weight:700;line-height:1.8}\n.hk-citizenship-page .hkcc__question-eyebrow{font-size:var(--hk-micro);font-weight:800;letter-spacing:1.3px}\n.hk-citizenship-page .hkcc .hkcc__choice span{min-height:52px;border-radius:var(--hk-radius-control);font-size:var(--hk-compact);font-weight:700}\n.hk-citizenship-page .hkcc .hkcc__choice span::before{font-family:var(--hk-font)!important}\n.hk-citizenship-page .hkcc__entry{background:var(--hk-soft);border:1px solid var(--hk-border);border-radius:var(--hk-radius-card);padding:28px 25px}\n.hk-citizenship-page .hkcc__entry:nth-child(even){background:#fff}\n.hk-citizenship-page .hkcc__entry-number{font-size:var(--hk-compact);font-weight:700}\n.hk-citizenship-page .hkcc__saved-entries{min-width:0}\n\/* Recorded periods: typography from standard v3.10.1, not Zephyr table defaults. *\/\n.hk-citizenship-page .hkcc__saved-entries .hkcc__record-table{table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;width:100%!important}\n.hk-citizenship-page .hkcc__saved-entries .hkcc__record-table th,.hk-citizenship-page .hkcc__saved-entries .hkcc__record-table td{padding:17px 18px!important;border-bottom:1px solid var(--hk-border)!important;vertical-align:top!important;font-family:var(--hk-font)!important;text-align:left!important;font-size:13px!important;line-height:1.7!important}\n.hk-citizenship-page .hkcc__saved-entries .hkcc__record-table th{background:var(--hk-table-head)!important;color:var(--hk-heading)!important;font-weight:800!important;line-height:1.5!important}\n.hk-citizenship-page .hkcc__saved-entries .hkcc__record-table td{background:var(--hk-white)!important;color:var(--hk-text)!important;font-weight:500!important}\n.hk-citizenship-page .hkcc__saved-entries .hkcc__record-table td:first-child{background:var(--hk-table-key)!important;color:var(--hk-heading)!important;font-weight:800!important}\n.hk-citizenship-page .hkcc__saved-entries .hkcc__record-table th:not(:first-child),.hk-citizenship-page .hkcc__saved-entries .hkcc__record-table td:not(:first-child){text-align:center!important}\n.hk-citizenship-page .hkcc__saved-entries .hkcc__record-table bdi{font-family:var(--hk-font)!important;font-size:13px!important;font-weight:inherit!important}\n\/* Multi-column report tables: horizontal scrolling occurs only within the table. *\/\n.hk-citizenship-page .hkcc__table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;isolation:isolate;border:1px solid var(--hk-border);border-radius:var(--hk-radius-card)}\n.hk-citizenship-page .hkcc__table-scroll .hkcc__native-table{min-width:760px!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}\n.hk-citizenship-page .hkcc__table-scroll .hkcc__native-table th,.hk-citizenship-page .hkcc__table-scroll .hkcc__native-table td{padding:17px 18px!important;border-right:1px solid var(--hk-border)!important;border-bottom:1px solid var(--hk-border)!important;vertical-align:top!important;text-align:left!important;font-size:13px!important;font-family:var(--hk-font)!important;font-weight:500!important;line-height:1.7!important;color:var(--hk-text)!important}\n.hk-citizenship-page .hkcc__table-scroll .hkcc__native-table thead th{background:var(--hk-table-head)!important;color:var(--hk-heading)!important;font-weight:800!important;line-height:1.5!important}\n.hk-citizenship-page .hkcc__table-scroll .hkcc__native-table tbody td:first-child,.hk-citizenship-page .hkcc__table-scroll .hkcc__native-table tbody th:first-child{font-weight:800!important;color:var(--hk-heading)!important}\n.hk-citizenship-page .hkcc__table-scroll .hkcc__native-table :is(th,td):first-child{position:sticky;left:0;z-index:2;min-width:160px;width:160px;background:var(--hk-table-key)!important;box-shadow:8px 0 12px -12px rgba(15,23,42,.5)}\n.hk-citizenship-page .hkcc__table-scroll .hkcc__native-table thead th:first-child{z-index:3;background:var(--hk-table-head)!important}\n.hk-citizenship-page .hkcc__table-scroll .hkcc__native-table tfoot th{background:var(--hk-table-head)!important;font-weight:800!important}\n.hk-citizenship-page .hkcc__metric{border-radius:var(--hk-radius-card);box-shadow:none;min-height:158px}\n.hk-citizenship-page .hkcc__metric-main{background:var(--hk-red-soft);border-color:#f2c6c8}\n.hk-citizenship-page .hkcc--en .hkcc__metric>span{font-size:var(--hk-compact);font-weight:700;line-height:1.7;color:var(--hk-ink-secondary)}\n.hk-citizenship-page .hkcc--en .hkcc__metric>strong{font-size:var(--hk-h2-mobile);font-weight:800;line-height:1.15;color:var(--hk-navy)}\n.hk-citizenship-page .hkcc--en .hkcc__metric>small{font-size:var(--hk-micro);font-weight:600}\n.hk-citizenship-page .hkcc__break-card{border-radius:var(--hk-radius-card);overflow:hidden}\n.hk-citizenship-page .hkcc__break-card h5{font-size:var(--hk-h3-card);font-weight:800;line-height:1.45}\n.hk-citizenship-page .hkcc__break-head,.hk-citizenship-page .hkcc__break-row,.hk-citizenship-page .hkcc__break-subtotal{font-size:var(--hk-compact);line-height:1.7}\n.hk-citizenship-page .hkcc__total-line{background:var(--hk-red-soft);border:1px solid #f2c6c8;border-left:3px solid var(--hk-red);border-radius:var(--hk-radius-card);color:var(--hk-heading)}\n.hk-citizenship-page .hkcc--en .hkcc__total-line span{font-size:var(--hk-body);font-weight:800}\n.hk-citizenship-page .hkcc--en .hkcc__total-line strong{font-size:var(--hk-h2-mobile);font-weight:800;color:var(--hk-red)}\n.hk-citizenship-page .hkcc__email-panel{border-radius:var(--hk-radius-card);background:var(--hk-soft);padding:28px 25px}\n.hk-citizenship-page .hkcc__email-panel h4{font-size:var(--hk-h3-featured);font-weight:800}\n.hk-citizenship-page .hkcc__calendar{font-family:var(--hk-font)!important}\n.hk-citizenship-page .hkcc .hkcc__primary,.hk-citizenship-page .hkcc .hkcc__secondary{min-width:218px;width:218px;flex:0 0 218px;min-height:52px!important;font-size:14px!important;font-weight:700!important;line-height:1.35!important;border-radius:5px!important}\n.hk-citizenship-page .hkcc__metric:hover{border-color:var(--hk-red)}\n.hk-citizenship-card-number{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;margin-bottom:24px;border:1px solid #f2b8bb;border-radius:50%;color:var(--hk-red);background:var(--hk-red-soft);font-size:var(--hk-micro);font-weight:800}\n.hk-citizenship-rules .hk-en-card{gap:0}\n.hk-citizenship-rules .hk-en-card h3{margin:0 0 12px;color:var(--hk-heading)}\n.hk-citizenship-rules .hk-en-card p{margin:0;color:var(--hk-text);font-weight:500}\n@media(max-width:1050px){\n .hk-citizenship-page .hkcc__steps{gap:5px}\n .hk-citizenship-page .hkcc__step-label{flex-direction:column;justify-content:flex-start;align-items:center;gap:8px;text-align:center;min-height:88px}\n .hk-citizenship-page .hkcc__metric{min-height:145px}\n}\n@media(max-width:700px){\n .hk-citizenship-page .hkcc--en{padding:0!important}\n .hk-citizenship-page .hkcc__steps{grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:4px}\n .hk-citizenship-page .hkcc__step-label{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;min-width:0;min-height:48px;height:48px;gap:0}\n .hk-citizenship-page .hkcc__step-number{flex:0 0 40px;width:40px;height:40px;min-width:40px}\n .hk-citizenship-page .hkcc__step-label span:last-child,.hk-citizenship-page .hkcc__step-label.is-active span:last-child{display:block!important;position:absolute!important;width:1px!important;height:1px!important;max-width:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;border:0!important}\n .hk-citizenship-page .hkcc__step{padding:25px 22px;box-shadow:none}\n .hk-citizenship-page .hkcc__question{padding:20px 22px}\n .hk-citizenship-page .hkcc__entry{padding:25px 22px}\n .hk-citizenship-page .hkcc__metrics{grid-template-columns:1fr}\n .hk-citizenship-page .hkcc__metric{min-height:135px}\n .hk-citizenship-page .hkcc__wizard-actions,.hk-citizenship-page .hkcc__report-actions{flex-direction:column}\n .hk-citizenship-page .hkcc .hkcc__primary,.hk-citizenship-page .hkcc .hkcc__secondary{width:100%;max-width:100%;min-width:0;flex:0 0 auto;min-height:53px!important}\n .hk-citizenship-page .hkcc__saved-entries .hkcc__record-table tbody td{font-size:13px!important}\n .hk-citizenship-page .hkcc__saved-entries .hkcc__record-table tbody td::before{font-size:13px;line-height:1.7}\n .hk-citizenship-page .hkcc__record-table tbody tr{padding:10px 0!important}\n .hk-citizenship-page .hkcc__email-panel{padding:25px 22px}\n}\n@media(hover:hover) and (pointer:fine){.hk-citizenship-page .hkcc__metric:hover{transform:translateY(-4px);border-color:var(--hk-red);box-shadow:var(--hk-shadow-card)}}\n@media(prefers-reduced-motion:reduce){.hk-citizenship-page *, .hk-citizenship-page *::before,.hk-citizenship-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}\n@media print{\n .hk-citizenship-page .hk-sp-breadcrumb,.hk-citizenship-page .hk-citizenship-hero,.hk-citizenship-page .hk-en-trust,.hk-citizenship-page .hk-citizenship-rules,.hk-citizenship-page .hk-citizenship-faq,.hk-citizenship-page .hk-en-cta,.hk-citizenship-page .hk-en-section-head{display:none!important}\n .hk-citizenship-page .hk-en-section{padding:0!important}\n .hk-citizenship-page .hk-en-container{max-width:100%!important;padding:0!important}\n .hk-citizenship-page .hkcc__step{border:0!important;box-shadow:none!important}\n}\n\/* WordPress builder compatibility: no duplicate titlebar above this page. *\/\nhtml[lang^=\"en\"] .l-main:has(.hk-citizenship-page) .l-titlebar{display:none!important}\n\n\/* Intro spacing in the editorial FAQ column; not a shared heading override. *\/\n.hk-citizenship-faq-intro{margin-top:24px}\n<\/style>\n<div class=\"hk-en-page hk-citizenship-page\" lang=\"en-CA\" dir=\"ltr\" data-hk-component=\"citizenship-v3.10.1-study-permit-breadcrumb\">\n  <!-- Global header and global footer belong to the site's Zephyr theme; do not duplicate them here. -->\n  <nav class=\"hk-sp-breadcrumb\" aria-label=\"Breadcrumb\">\n    <div class=\"hk-sp-breadcrumb-inner\">\n      <ol>\n        <li><a href=\"https:\/\/hesamkazemi.com\/en\/\">Home<\/a><\/li>\n        <li><a href=\"https:\/\/hesamkazemi.com\/en\/immigrate\/\">Immigrate to Canada<\/a><\/li>\n        <li aria-current=\"page\">Physical Presence Calculator<\/li>\n      <\/ol>\n    <\/div>\n  <\/nav>\n\n  <section class=\"hk-en-hero hk-citizenship-hero\" aria-labelledby=\"hk-citizenship-title\">\n    <div class=\"hk-en-container\"><div class=\"hk-en-hero-grid\">\n      <div>\n        <p class=\"hk-en-kicker\">Canadian citizenship<\/p>\n        <h1 class=\"hk-en-title\" id=\"hk-citizenship-title\">Canadian Citizenship <span class=\"hk-en-accent\">Physical Presence Calculator<\/span><\/h1>\n        <p class=\"hk-en-hero-lead\">Calculate your physical presence toward Canadian citizenship, including time as a permanent resident, qualifying time before PR and trips outside Canada.<\/p>\n        <div class=\"hk-en-actions\">\n          <a class=\"hk-en-button-primary\" href=\"https:\/\/booking.hesamkazemi.com\/book-a-consultation\/\" target=\"_blank\" rel=\"noopener noreferrer\">Book a Consultation<\/a>\n          <a class=\"hk-en-link\" href=\"#hk-citizenship-calculator\">Start the calculator <span class=\"hk-en-link-arrow\" aria-hidden=\"true\">\u2192<\/span><\/a>\n        <\/div>\n      <\/div>\n      <aside class=\"hk-en-overview\" aria-label=\"Calculator overview\">\n        <h2>What This Calculator Covers<\/h2>\n        <p>Answer a few questions to see how the information you enter affects your five-year physical presence estimate.<\/p>\n        <ul class=\"hk-en-overview-list\">\n          <li>The five-year eligibility period<\/li>\n          <li>Time in Canada after becoming a PR<\/li>\n          <li>Eligible time as a temporary resident or protected person<\/li>\n          <li>Travel dates and full days outside Canada<\/li>\n          <li>A detailed report you can print or email<\/li>\n        <\/ul>\n      <\/aside>\n    <\/div><\/div>\n  <\/section>\n\n  <section class=\"hk-en-trust\" aria-label=\"Our professional approach\">\n    <div class=\"hk-en-container hk-en-trust-grid\">\n      <div class=\"hk-en-trust-item\"><span class=\"hk-en-trust-icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 27 27\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M13.5 2.5 23 6.5v6.7c0 5.2-3.5 9-9.5 11.4C7.5 22.2 4 18.4 4 13.2V6.5z\"\/><path d=\"m9 13.2 3 3 6-6\"\/><\/svg><\/span><span>Led by an RCIC \u00b7 R707216<\/span><\/div>\n      <div class=\"hk-en-trust-item\"><span class=\"hk-en-trust-icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 27 27\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"4.5\" width=\"17\" height=\"19\" rx=\"2\"\/><path d=\"M10 4V3h7v1M9 11h9M9 16h9M9 20h6\"\/><\/svg><\/span><span>Assessment-to-Decision Support<\/span><\/div>\n      <div class=\"hk-en-trust-item\"><span class=\"hk-en-trust-icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 27 27\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"13.5\" cy=\"13.5\" r=\"10\"\/><path d=\"M3.5 13.5h20M13.5 3.5c-4.7 5.3-4.7 14.7 0 20M13.5 3.5c4.7 5.3 4.7 14.7 0 20\"\/><\/svg><\/span><span>Serving Clients Worldwide<\/span><\/div>\n    <\/div>\n  <\/section>\n\n  <section class=\"hk-en-section hk-citizenship-tool-section\" id=\"hk-citizenship-calculator\" aria-labelledby=\"hk-calculator-section-title\">\n    <div class=\"hk-en-container\">\n      <div class=\"hk-en-section-head\">\n        <div><p class=\"hk-en-kicker\">Your calculation<\/p><h2 class=\"hk-en-heading\" id=\"hk-calculator-section-title\">Calculate your days in Canada<\/h2><\/div>\n        <p class=\"hk-en-section-lead\">Enter your dates and answer each question. The calculator will show a step-by-step breakdown of your estimated physical presence during the five years before your application.<\/p>\n      <\/div>\n      <div class=\"hk-citizenship-calculator-mount\"><div class=\"hkcc hkcc--en\" data-lang=\"en\" dir=\"ltr\" lang=\"en\">\n  <div class=\"hkcc__shell\">\n        <nav class=\"hkcc__progress\" aria-label=\"Calculator steps\">\n      <ol class=\"hkcc__steps\">\n                  <li class=\"hkcc__step-label\" data-step-marker=\"1\"><span class=\"hkcc__step-number\" aria-hidden=\"true\" data-latin-number=\"1\">1<\/span><span>Key dates<\/span><\/li>\n                  <li class=\"hkcc__step-label\" data-step-marker=\"2\"><span class=\"hkcc__step-number\" aria-hidden=\"true\" data-latin-number=\"2\">2<\/span><span>Before PR<\/span><\/li>\n                  <li class=\"hkcc__step-label\" data-step-marker=\"3\"><span class=\"hkcc__step-number\" aria-hidden=\"true\" data-latin-number=\"3\">3<\/span><span>Travel history<\/span><\/li>\n                  <li class=\"hkcc__step-label\" data-step-marker=\"4\"><span class=\"hkcc__step-number\" aria-hidden=\"true\" data-latin-number=\"4\">4<\/span><span>Other periods<\/span><\/li>\n                  <li class=\"hkcc__step-label\" data-step-marker=\"5\"><span class=\"hkcc__step-number\" aria-hidden=\"true\" data-latin-number=\"5\">5<\/span><span>Your report<\/span><\/li>\n              <\/ol>\n      <div class=\"hkcc__progress-track\" aria-hidden=\"true\"><span class=\"hkcc__progress-fill\"><\/span><\/div>\n    <\/nav>\n    <form class=\"hkcc__form\" novalidate>\n      <section class=\"hkcc__step\" data-step=\"1\">\n        <div class=\"hkcc__step-heading\"><div class=\"hkcc__step-kicker\">STEP 01<\/div><h3>Key dates<\/h3><p>Start with the date you became a permanent resident and the date you plan to sign your citizenship application.<\/p><\/div>\n        <div class=\"hkcc__grid\">\n          <label class=\"hkcc__field\"><span>Application signing date <i>*<\/i><\/span><span class=\"hkcc__date-wrap\"><input type=\"text\" name=\"application_date\" class=\"hkcc__date\" inputmode=\"numeric\" dir=\"ltr\" lang=\"en-CA\" autocomplete=\"off\" maxlength=\"10\" placeholder=\"YYYY-MM-DD\" value=\"2026-11-16\" required><button type=\"button\" class=\"hkcc__calendar-button\" data-date-open aria-label=\"Choose a date\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\"\/><path d=\"M7 3v4M17 3v4M3 10h18\"\/><\/svg><\/button><\/span><\/label>\n          <label class=\"hkcc__field\"><span>Date you became a permanent resident (PR) <i>*<\/i><\/span><span class=\"hkcc__date-wrap\"><input type=\"text\" name=\"pr_date\" class=\"hkcc__date\" inputmode=\"numeric\" dir=\"ltr\" lang=\"en-CA\" autocomplete=\"off\" maxlength=\"10\" placeholder=\"YYYY-MM-DD\" required><button type=\"button\" class=\"hkcc__calendar-button\" data-date-open aria-label=\"Choose a date\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\"\/><path d=\"M7 3v4M17 3v4M3 10h18\"\/><\/svg><\/button><\/span><\/label>\n        <\/div>\n        <div class=\"hkcc__window-preview\" data-window-preview hidden aria-live=\"polite\"><span>Your five-year eligibility period<\/span><strong class=\"hkcc__range\"><b data-preview-start dir=\"ltr\"><\/b><span aria-hidden=\"true\">\u2013<\/span><b data-preview-end dir=\"ltr\"><\/b><\/strong><\/div>\n        <p class=\"hkcc__hint\">The signing day is excluded. All dates use the Gregorian calendar.<\/p>\n      <\/section>\n      <section class=\"hkcc__step\" data-step=\"2\" hidden>\n        <div class=\"hkcc__step-heading\"><div class=\"hkcc__step-kicker\">STEP 02<\/div><h3>Time in Canada before permanent residence<\/h3><\/div>\n        <div class=\"hkcc__question\"><span class=\"hkcc__question-eyebrow\">THIS STEP<\/span>\n          <p class=\"hkcc__question-label\">Between <b class=\"hkcc__date-inline\" data-pre-window-start><\/b> and <b class=\"hkcc__date-inline\" data-pre-window-end><\/b>, were you physically present in Canada as a temporary resident (visitor, student, worker or TRP holder) or protected person?<\/p>\n          <div class=\"hkcc__choices\" role=\"radiogroup\" aria-label=\"Qualifying presence before PR\">\n            <label class=\"hkcc__choice\"><input type=\"radio\" name=\"has_prepr\" value=\"no\"><span>No<\/span><\/label>\n            <label class=\"hkcc__choice\"><input type=\"radio\" name=\"has_prepr\" value=\"yes\"><span>Yes<\/span><\/label>\n          <\/div>\n        <\/div>\n        <div class=\"hkcc__conditional\" data-show=\"prepr\" hidden>\n          <p class=\"hkcc__section-caption\">Add the status type and its start and end dates.<\/p>\n          <div class=\"hkcc__rows\" data-rows=\"periods\"><\/div>\n          <button type=\"button\" class=\"hkcc__add\" data-add=\"periods\"><span aria-hidden=\"true\">\uff0b<\/span>Add another period<\/button>\n          <div class=\"hkcc__info\"><span class=\"hkcc__info-dot\">i<\/span><p>Each qualifying day before PR earns half a day, up to 365 credited days. Protected-person time starts with a positive IRB refugee decision or PRRA decision, not while the claim is pending.<\/p><\/div>\n        <\/div>\n      <\/section>\n      <section class=\"hkcc__step\" data-step=\"3\" hidden>\n        <div class=\"hkcc__step-heading\"><div class=\"hkcc__step-kicker\">STEP 03<\/div><h3>Trips and time outside Canada<\/h3><p>Enter all time outside Canada, including same-day trips. If you became a PR while abroad, record your actual departure date and first return, even if the departure predates the five-year window. Departure and return days normally count as days in Canada.<\/p><\/div>\n        <div class=\"hkcc__question\"><span class=\"hkcc__question-eyebrow\">THIS STEP<\/span><p class=\"hkcc__question-label\">Were you outside Canada at any time during the five-year eligibility period?<\/p>\n          <div class=\"hkcc__choices\" role=\"radiogroup\"><label class=\"hkcc__choice\"><input type=\"radio\" name=\"has_travel\" value=\"no\"><span>No<\/span><\/label><label class=\"hkcc__choice\"><input type=\"radio\" name=\"has_travel\" value=\"yes\"><span>Yes<\/span><\/label><\/div>\n        <\/div>\n        <div class=\"hkcc__conditional\" data-show=\"trips\" hidden><div class=\"hkcc__rows\" data-rows=\"trips\"><\/div><button type=\"button\" class=\"hkcc__add\" data-add=\"trips\"><span aria-hidden=\"true\">\uff0b<\/span>Add another trip<\/button><\/div>\n\n      <\/section>\n      <section class=\"hkcc__step\" data-step=\"4\" hidden>\n        <div class=\"hkcc__step-heading\"><div class=\"hkcc__step-kicker\">STEP 04<\/div><h3>Periods that may not count<\/h3><p>Some periods of imprisonment, parole or probation in Canada cannot count toward physical presence.<\/p><\/div>\n        <div class=\"hkcc__question\"><span class=\"hkcc__question-eyebrow\">THIS STEP<\/span><p class=\"hkcc__question-label\">In the five years before applying, did you serve a period of imprisonment, probation or parole in Canada?<\/p>\n          <div class=\"hkcc__choices\" role=\"radiogroup\"><label class=\"hkcc__choice\"><input type=\"radio\" name=\"has_sentences\" value=\"no\"><span>No<\/span><\/label><label class=\"hkcc__choice\"><input type=\"radio\" name=\"has_sentences\" value=\"yes\"><span>Yes<\/span><\/label><\/div>\n        <\/div>\n        <div class=\"hkcc__conditional\" data-show=\"sentences\" hidden><p class=\"hkcc__section-caption\">Enter each applicable period and its dates.<\/p><div class=\"hkcc__rows\" data-rows=\"sentences\"><\/div><button type=\"button\" class=\"hkcc__add\" data-add=\"sentences\"><span aria-hidden=\"true\">\uff0b<\/span>Add another period<\/button><\/div>\n        <div class=\"hkcc__info\"><span class=\"hkcc__info-dot\">i<\/span><p>Legal exceptions apply to some sentences and probation periods. If unsure, verify whether a period is excluded before relying on your result.<\/p><\/div>\n      <\/section>\n      <section class=\"hkcc__step hkcc__report-step\" data-step=\"5\" hidden>\n        <div class=\"hkcc__report\" aria-live=\"polite\">\n          <div class=\"hkcc__report-heading\"><div class=\"hkcc__step-kicker\">YOUR RESULTS<\/div><h3>Physical Presence Calculation Report<\/h3><\/div>\n          <div class=\"hkcc__outcome\" data-result-outcome><div class=\"hkcc__outcome-icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.6\"><path d=\"M5 12.5l4.5 4.5L19.5 7\"\/><\/svg><\/div><div><strong class=\"hkcc__result-status\"><\/strong><p class=\"hkcc__result-description\"><\/p><p class=\"hkcc__estimated\" data-estimated-date hidden><\/p><\/div><\/div>\n          <div class=\"hkcc__metrics\"><div class=\"hkcc__metric hkcc__metric-main\"><span>Total credited presence<\/span><strong data-val=\"total\"><\/strong><small>days<\/small><\/div><div class=\"hkcc__metric\"><span>Presence as PR<\/span><strong data-val=\"pr_days\"><\/strong><small>days<\/small><\/div><div class=\"hkcc__metric\"><span>Credit before PR<\/span><strong data-val=\"pre_credit\"><\/strong><small>days<\/small><\/div><div class=\"hkcc__metric\"><span>Days still needed<\/span><strong data-val=\"remaining\"><\/strong><small>days<\/small><\/div><\/div>\n          <div class=\"hkcc__window\"><div><span>Five-year eligibility period<\/span><strong class=\"hkcc__range\"><b data-val=\"window_start\" dir=\"ltr\"><\/b><span class=\"hkcc__window-dash\"> \u2013 <\/span><b data-val=\"window_end\" dir=\"ltr\"><\/b><\/strong><\/div><div><span>Permanent residence date<\/span><strong data-val=\"pr_date\"><\/strong><\/div><div><span>Application date<\/span><strong data-val=\"application_date\"><\/strong><\/div><\/div>\n          <h4 class=\"hkcc__section-title\">Physical presence breakdown<\/h4>\n          <div class=\"hkcc__breakdown\" role=\"group\" aria-label=\"Calculation details\">\n            <section class=\"hkcc__break-card\">\n              <h5>After becoming a permanent resident<\/h5>\n              <div class=\"hkcc__break-head\"><span>Description<\/span><span>Days<\/span><\/div>\n              <div class=\"hkcc__break-row\"><span>Days in the review period<\/span><strong data-val=\"pr_calendar_days\"><\/strong><\/div>\n              <div class=\"hkcc__break-row\"><span>Days absent from Canada<\/span><strong data-val=\"pr_absent_days\"><\/strong><\/div>\n              <div class=\"hkcc__break-row\"><span>Excluded days<\/span><strong data-val=\"pr_excluded_days\"><\/strong><\/div>\n              <div class=\"hkcc__break-subtotal\"><span>Total days after PR<\/span><strong data-val=\"pr_days\"><\/strong><\/div>\n            <\/section>\n            <section class=\"hkcc__break-card\">\n              <h5>Before becoming a permanent resident<\/h5>\n              <div class=\"hkcc__break-head\"><span>Description<\/span><span>Days<\/span><\/div>\n              <div class=\"hkcc__break-row\"><span>Days with eligible status<\/span><strong data-val=\"pre_status_days\"><\/strong><\/div>\n              <div class=\"hkcc__break-row\"><span>Days absent from Canada<\/span><strong data-val=\"pre_absent_days\"><\/strong><\/div>\n              <div class=\"hkcc__break-row\"><span>Excluded days<\/span><strong data-val=\"pre_excluded_days\"><\/strong><\/div>\n              <div class=\"hkcc__break-row\"><span>Qualifying presence days<\/span><strong data-val=\"pre_eligible_days\"><\/strong><\/div>\n              <div class=\"hkcc__break-subtotal\"><span>Pre-PR credit (maximum 365 days)<\/span><strong data-val=\"pre_credit\"><\/strong><\/div>\n            <\/section>\n          <\/div>\n          <div class=\"hkcc__total-line\" role=\"status\"><span>Total credited physical presence<\/span><strong data-val=\"total\"><\/strong><\/div>\n          <p class=\"hkcc__footnote\">Each eligible pre-PR day counts as half a day (up to 365 days). Fractional days are displayed rounded down; the underlying eligibility calculation retains exact half-day credits.<\/p>\n          <h4 class=\"hkcc__section-title\">Absences from Canada<\/h4>\n          <div class=\"hkcc__table-scroll hkcc__table-scroll--trips\"><table class=\"hkcc__native-table hkcc__travel-table\"><thead><tr><th>From<\/th><th>To<\/th><th>Destination<\/th><th>Reason<\/th><th>Absent days<\/th><\/tr><\/thead><tbody data-report-trips><\/tbody><tfoot><tr><th colspan=\"4\">Total recorded full absence days<\/th><th data-trip-sum>0<\/th><\/tr><\/tfoot><\/table><\/div><div class=\"hkcc__travel-mobile\" data-report-trip-cards><\/div>\n          <div class=\"hkcc__additional\"><details><summary>View pre-PR status and excluded periods<\/summary><h4>Pre-PR status history<\/h4><div class=\"hkcc__table-scroll\"><table class=\"hkcc__native-table\"><thead><tr><th>Status<\/th><th>From<\/th><th>To<\/th><\/tr><\/thead><tbody data-report-periods><\/tbody><\/table><\/div><h4>Excluded periods<\/h4><div class=\"hkcc__table-scroll\"><table class=\"hkcc__native-table\"><thead><tr><th>Type<\/th><th>From<\/th><th>To<\/th><\/tr><\/thead><tbody data-report-sentences><\/tbody><\/table><\/div><\/details><\/div>\n          <div class=\"hkcc__report-foot\"><p data-projection-note><\/p><p>This independent estimate is based on the information entered, is not endorsed by IRCC and assesses physical presence only. Meeting the day threshold does not establish full citizenship eligibility. Confirm your final calculation and other requirements using official IRCC resources.<\/p><\/div>\n          <section class=\"hkcc__email-panel\" aria-labelledby=\"hkcc-email-heading\">\n            <div class=\"hkcc__email-panel-intro\"><span class=\"hkcc__mail-icon\" aria-hidden=\"true\">\u2709<\/span><div><h4 id=\"hkcc-email-heading\">Email your calculation report<\/h4><p>Send a clear, formatted copy of this result to your own email address.<\/p><\/div><\/div>\n            <div class=\"hkcc__email-fields\">\n              <label class=\"hkcc__field\"><span>Full name<\/span><input type=\"text\" data-email-name autocomplete=\"name\" maxlength=\"160\" placeholder=\"Your full name\"><\/label>\n              <label class=\"hkcc__field\"><span>Email address<\/span><input type=\"email\" data-email-address autocomplete=\"email\" maxlength=\"190\" dir=\"ltr\" placeholder=\"you@example.com\"><\/label>\n            <\/div>\n            <label class=\"hkcc__email-consent\"><input type=\"checkbox\" data-email-consent><span class=\"hkcc__checkmark\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12.5l4.5 4.5L19.5 7\"\/><\/svg><\/span><span class=\"hkcc__consent-copy\">I agree to receive my results by email.<\/span><\/label>\n            <div class=\"hkcc__honeypot\" aria-hidden=\"true\"><label>Website<input type=\"text\" data-email-website autocomplete=\"off\" tabindex=\"-1\"><\/label><\/div>\n            <div class=\"hkcc__email-actions\"><button type=\"button\" class=\"hkcc__primary\" data-action=\"email\">Email my report<\/button><\/div>\n            <p class=\"hkcc__email-message\" data-email-message role=\"status\" aria-live=\"polite\"><\/p>\n          <\/section>\n          <div class=\"hkcc__report-actions\"><button type=\"button\" class=\"hkcc__secondary\" data-action=\"edit\">Edit information<\/button><button type=\"button\" class=\"hkcc__primary\" data-action=\"print\">Print report<\/button><\/div>\n        <\/div>\n      <\/section>\n      <div class=\"hkcc__error\" role=\"alert\" hidden><\/div>\n      <div class=\"hkcc__wizard-actions\"><button type=\"button\" class=\"hkcc__secondary\" data-action=\"prev\" hidden>Back<\/button><button type=\"button\" class=\"hkcc__primary\" data-action=\"next\">Continue<\/button><\/div>\n    <\/form>\n  <\/div>\n  <div class=\"hkcc__calendar\" role=\"dialog\" aria-modal=\"false\" aria-label=\"Gregorian calendar\" hidden><div class=\"hkcc__calendar-head\"><button type=\"button\" data-cal-prev aria-label=\"Previous month\">\u2039<\/button><button type=\"button\" class=\"hkcc__calendar-title\" data-cal-switch aria-expanded=\"false\" aria-label=\"Choose month and year\"><\/button><button type=\"button\" data-cal-next aria-label=\"Next month\">\u203a<\/button><\/div><div class=\"hkcc__calendar-picker\" data-cal-picker hidden><div class=\"hkcc__calendar-year\"><button type=\"button\" data-year-prev aria-label=\"Previous year\">\u2039<\/button><input type=\"number\" min=\"1900\" max=\"2100\" step=\"1\" inputmode=\"numeric\" dir=\"ltr\" data-cal-year-input aria-label=\"Year\"><button type=\"button\" data-year-next aria-label=\"Next year\">\u203a<\/button><\/div><div class=\"hkcc__calendar-month-grid\" data-cal-month-grid><\/div><\/div><div data-cal-days-view><div class=\"hkcc__calendar-weekdays\"><\/div><div class=\"hkcc__calendar-days\"><\/div><\/div><div class=\"hkcc__calendar-bottom\"><button type=\"button\" data-cal-today>Today<\/button><button type=\"button\" data-cal-close>Close<\/button><\/div><\/div>\n  <noscript><p>Enable JavaScript to use the calculator.<\/p><\/noscript>\n<\/div>\n<\/div>\n    <\/div>\n  <\/section>\n\n  <section class=\"hk-en-section hk-en-section--soft hk-citizenship-rules\" aria-labelledby=\"hk-citizenship-rules-title\">\n    <div class=\"hk-en-container\">\n      <div class=\"hk-en-section-head\">\n        <div><p class=\"hk-en-kicker\">Understand the calculation<\/p><h2 class=\"hk-en-heading\" id=\"hk-citizenship-rules-title\">How physical presence is counted<\/h2><\/div>\n        <p class=\"hk-en-section-lead\">Most adult applicants need at least 1,095 days of qualifying physical presence in Canada in the five years immediately before the application date.<\/p>\n      <\/div>\n      <div class=\"hk-en-grid hk-en-grid--3\">\n        <article class=\"hk-en-card\"><span class=\"hk-citizenship-card-number\">01<\/span><h3 class=\"hk-en-card-title\">After becoming a PR<\/h3><p class=\"hk-en-compact\">Each eligible day of physical presence in Canada as a permanent resident counts as one full day.<\/p><\/article>\n        <article class=\"hk-en-card\"><span class=\"hk-citizenship-card-number\">02<\/span><h3 class=\"hk-en-card-title\">Before becoming a PR<\/h3><p class=\"hk-en-compact\">Qualifying presence as a temporary resident or protected person generally earns half a day of credit per day, up to 365 credited days.<\/p><\/article>\n        <article class=\"hk-en-card\"><span class=\"hk-citizenship-card-number\">03<\/span><h3 class=\"hk-en-card-title\">Trips outside Canada<\/h3><p class=\"hk-en-compact\">Full days spent outside Canada are normally deducted. Departure and return days generally count as days in Canada.<\/p><\/article>\n      <\/div>\n    <\/div>\n  <\/section>\n\n  <section class=\"hk-en-section hk-citizenship-faq\" aria-labelledby=\"hk-citizenship-faq-title\">\n    <div class=\"hk-en-container\"><div class=\"hk-en-faq-grid\">\n      <div><p class=\"hk-en-kicker\">Frequently asked questions<\/p><h2 class=\"hk-en-heading\" id=\"hk-citizenship-faq-title\">Physical presence questions<\/h2><p class=\"hk-en-section-lead hk-citizenship-faq-intro\">Common questions about the five-year window, pre-PR credit and time spent travelling.<\/p><\/div>\n      <div class=\"hk-en-faq-list\">\n        <details><summary>How many days do I need for Canadian citizenship?<\/summary><div class=\"hk-en-faq-answer\">Most adult applicants must have at least 1,095 days of qualifying physical presence in Canada during the five years immediately before signing their application.<\/div><\/details>\n        <details><summary>Does time in Canada before permanent residence count?<\/summary><div class=\"hk-en-faq-answer\">Eligible days as a temporary resident or protected person can count as half a day each, up to a maximum credit of 365 days.<\/div><\/details>\n        <details><summary>Do departure and return dates count as days in Canada?<\/summary><div class=\"hk-en-faq-answer\">In ordinary circumstances, the day you leave Canada and the day you return count as days of physical presence. Full days abroad between those dates are normally deducted.<\/div><\/details>\n        <details><summary>Is this calculator an official IRCC assessment?<\/summary><div class=\"hk-en-faq-answer\">No. This is an independent estimate based on the information provided. Confirm your final calculation through <a href=\"https:\/\/eservices.cic.gc.ca\/rescalc\/resCalcStartNew.do\" target=\"_blank\" rel=\"noopener noreferrer\">IRCC\u2019s official physical presence calculator<\/a> before applying.<\/div><\/details>\n      <\/div>\n    <\/div><\/div>\n  <\/section>\n\n  <section class=\"hk-en-cta\" aria-label=\"Professional guidance\"><div class=\"hk-en-container\"><div class=\"hk-en-cta-grid\"><div><h2>Need help assessing your citizenship timeline?<\/h2><p>Book a consultation to review questions about your circumstances, eligibility and the next steps in your application.<\/p><\/div><a class=\"hk-en-button-primary\" href=\"https:\/\/booking.hesamkazemi.com\/book-a-consultation\/\" target=\"_blank\" rel=\"noopener noreferrer\">Book a Consultation<\/a><\/div><\/div><\/section>\n  \n<\/div>\n<script>\n\/* Config for the existing installed HK Citizenship Calculator WordPress plugin. *\/\n(function(){\n  const fmt = new Intl.DateTimeFormat('en-CA',{timeZone:'America\/Toronto',year:'numeric',month:'2-digit',day:'2-digit'});\n  const parts = Object.fromEntries(fmt.formatToParts(new Date()).filter(p=>p.type!=='literal').map(p=>[p.type,p.value]));\n  const today = [parts.year,parts.month,parts.day].join('-');\n  window.HKCC_CONFIG = {api:window.location.origin+'\/wp-json\/hk-citizen\/v1\/',today:today};\n  const dateInput=document.querySelector('.hk-citizenship-page .hkcc input[name=\"application_date\"]');\n  if(dateInput) dateInput.value=today;\n})();\n<\/script>\n<script>\n\/* engine.js *\/\n\/* HK Citizenship Calculator | calendar-day arithmetic, UTC-only, no external dependencies *\/\n(function(root,factory){\n  const engine=factory();\n  if(typeof module==='object' && module.exports) module.exports=engine;\n  root.HKCCEngine=engine;\n})(typeof window!=='undefined'?window:globalThis,function(){\n  'use strict';\n  const MS=86400000;\n  function ordinal(s){\n    if(!\/^\\d{4}-\\d{2}-\\d{2}$\/.test(String(s||''))) return NaN;\n    const [y,m,d]=s.split('-').map(Number);\n    const date=new Date(Date.UTC(y,m-1,d));\n    if(date.getUTCFullYear()!==y||date.getUTCMonth()!==m-1||date.getUTCDate()!==d) return NaN;\n    return date.getTime()\/MS;\n  }\n  function iso(n){return new Date(n*MS).toISOString().slice(0,10);}\n  function yearsBack(s,years){\n    const [y,m,d]=s.split('-').map(Number), year=y-years;\n    const last=new Date(Date.UTC(year,m,0)).getUTCDate();\n    return ordinal([year,String(m).padStart(2,'0'),String(Math.min(d,last)).padStart(2,'0')].join('-'));\n  }\n  function mandatoryDate(s,msg){const v=ordinal(s);if(!Number.isFinite(v)) throw new Error(msg);return v;}\n  function withinList(value,ranges){return ranges.some(p=>value>=p.from&&value<=p.to);}\n  function normalize(payload){\n    const p=payload||{}, app=mandatoryDate(p.application_date,'Enter a valid application date.'),pr=mandatoryDate(p.pr_date,'Enter a valid PR date.');\n    if(pr>app) throw new Error('The PR date cannot be later than the application date.');\n    if(pr<ordinal('1900-01-01')||app>ordinal('2100-01-01')) throw new Error('Date outside supported range.');\n    const hasPre=p.has_prepr===true || p.has_prepr==='yes';\n    const prArrival=p.pr_entered_late ? mandatoryDate(p.pr_arrival_date,'Enter your first day in Canada as a PR.') : pr;\n    if(prArrival<pr) throw new Error('First arrival as a PR cannot precede PR date.');\n    const periods=[];\n    if(hasPre){\n      for(const r of (Array.isArray(p.periods)?p.periods:[])){\n        const from=mandatoryDate(r.from,'Invalid pre-PR status start date.'),to=mandatoryDate(r.to,'Invalid pre-PR status end date.');\n        if(to<from) throw new Error('Pre-PR status dates are reversed.');\n        if(!['visitor','student','worker','trp','protected'].includes(r.type)) throw new Error('Choose a valid pre-PR status.');\n        periods.push({from,to,type:r.type});\n      }\n      if(!periods.length) throw new Error('Add at least one qualifying pre-PR status period, or select No.');\n    }\n    const trips=[];\n    for(const r of (Array.isArray(p.trips)?p.trips:[])){\n      const from=mandatoryDate(r.from,'Invalid date of departure.'),to=mandatoryDate(r.to,'Invalid date of return.');\n      if(to<from) throw new Error('A return date cannot be before the departure.');\n      if(!String(r.destination||'').trim()||!String(r.reason||'').trim()) throw new Error('Enter destination and reason for every trip.');\n      trips.push({from,to,destination:String(r.destination).trim(),reason:String(r.reason).trim()});\n    }\n    trips.sort((a,b)=>a.from-b.from||a.to-b.to);\n    for(let i=1;i<trips.length;i++){\n      if(trips[i].from<trips[i-1].to) throw new Error('Travel periods overlap. Please correct the dates.');\n    }\n    const sentences=[];\n    for(const r of (Array.isArray(p.sentences)?p.sentences:[])){\n      const from=mandatoryDate(r.from,'Invalid sentence start date.'),to=mandatoryDate(r.to,'Invalid sentence end date.');\n      if(to<from) throw new Error('Sentence dates are reversed.');\n      if(!['imprisonment','probation','parole'].includes(r.type)) throw new Error('Choose a sentence type.');\n      sentences.push({from,to,type:r.type});\n    }\n    if(periods.length>150||trips.length>300||sentences.length>100) throw new Error('Too many entries.');\n    return {app,pr,hasPre,prArrival,periods,trips,sentences,mode:p.mode==='planning'?'planning':'signing',special:!!p.special};\n  }\n  function calculate(payload){\n    const p=normalize(payload);\n    const begin=yearsBack(iso(p.app),5),horizon=yearsBack(iso(p.app),-6);\n    \/\/ Build a single timeline, then use prefix sums to test all possible future signing dates.\n    const size=horizon-begin+1;\n    const pre=new Int32Array(size+1),pr=new Int32Array(size+1),absence=new Int32Array(size+1),sentence=new Int32Array(size+1);\n    const prCalendar=new Int32Array(size+1),prAbsent=new Int32Array(size+1),prExcluded=new Int32Array(size+1);\n    const preStatus=new Int32Array(size+1),preAbsent=new Int32Array(size+1),preExcluded=new Int32Array(size+1);\n    \/\/ Interval marking reduces work for long travel histories.\n    const aDiff=new Int32Array(size+2),sDiff=new Int32Array(size+2),tDiff=new Int32Array(size+2);\n    function mark(diff,from,to){\n      let lo=Math.max(from,begin),hi=Math.min(to,horizon);\n      if(hi<lo)return;\n      diff[lo-begin]++;diff[hi-begin+1]--;\n    }\n    p.trips.forEach(x=>mark(aDiff,x.from+1,x.to-1));\n    p.sentences.forEach(x=>mark(sDiff,x.from,x.to));\n    if(p.hasPre) p.periods.forEach(x=>mark(tDiff,x.from,x.to));\n    let a=0,s=0,t=0;\n    for(let i=0;i<size;i++){\n      const day=begin+i;\n      a+=aDiff[i];s+=sDiff[i];t+=tDiff[i];\n      let preDay=0,prDay=0;\n      const isPr=day>=p.pr, isPre=!isPr&&p.hasPre&&t>0;\n      const outPr=isPr&&(day<p.prArrival||a>0);\n      const outPre=isPre&&a>0;\n      const excludedPr=isPr&&!outPr&&s>0;\n      const excludedPre=isPre&&!outPre&&s>0;\n      if(isPr&&!outPr&&!excludedPr)prDay=1;\n      if(isPre&&!outPre&&!excludedPre)preDay=1;\n      prCalendar[i+1]=prCalendar[i]+(isPr?1:0);\n      prAbsent[i+1]=prAbsent[i]+(outPr?1:0);\n      prExcluded[i+1]=prExcluded[i]+(excludedPr?1:0);\n      preStatus[i+1]=preStatus[i]+(isPre?1:0);\n      preAbsent[i+1]=preAbsent[i]+(outPre?1:0);\n      preExcluded[i+1]=preExcluded[i]+(excludedPre?1:0);\n      pre[i+1]=pre[i]+preDay;\n      pr[i+1]=pr[i]+prDay;\n      absence[i+1]=absence[i]+(a>0?1:0);\n      sentence[i+1]=sentence[i]+(s>0?1:0);\n    }\n    function range(prefix,l,r){if(r<l)return 0;const left=Math.max(begin,l),right=Math.min(horizon,r);if(right<left)return 0;return prefix[right-begin+1]-prefix[left-begin];}\n    function at(d){\n      const l=yearsBack(iso(d),5),r=d-1;\n      const preRaw=range(pre,l,r),prDays=range(pr,l,r),preCredit=Math.min(365,preRaw\/2);\n      return {window_start:iso(l),window_end:iso(r),window_days:r-l+1,\n        pre_status_days:range(preStatus,l,r),pre_absent_days:range(preAbsent,l,r),pre_excluded_days:range(preExcluded,l,r),\n        pr_calendar_days:range(prCalendar,l,r),pr_absent_days:range(prAbsent,l,r),pr_excluded_days:range(prExcluded,l,r),\n        pre_eligible_days:preRaw,pre_credit:preCredit,pr_days:prDays,\n        absent_days:range(absence,l,r),sentence_days:range(sentence,l,r),\n        total:prDays+preCredit,remaining:Math.max(0,1095-(prDays+preCredit)),eligible:prDays+preCredit>=1095 && prDays>=730};\n    }\n    const result=at(p.app);\n    result.application_date=iso(p.app);result.pr_date=iso(p.pr);\n    result.projected=p.mode==='planning' || p.app>ordinal((typeof window!=='undefined' && window.HKCC_CONFIG && window.HKCC_CONFIG.today) || iso(Math.floor(Date.now()\/MS)));\n    if(!result.eligible){\n      result.earliest_date=null;\n      for(let d=p.app+1;d<=horizon;d++){\n        if(at(d).eligible){result.earliest_date=iso(d);break;}\n      }\n    }else result.earliest_date=result.application_date;\n    result.has_special=p.special;\n    return result;\n  }\n  return {calculate,ordinal,iso,yearsBack,normalize};\n});\n\n\n\/* app.js *\/\n\/* HK Citizenship Physical Presence Calculator 2.6.2 \u2014 bilingual accessible wizard *\/\n(function(){\n'use strict';\nconst E=window.HKCCEngine;if(!E)return;\nconst D={\n fa:{from:'\u0627\u0632 \u062a\u0627\u0631\u06cc\u062e',to:'\u062a\u0627 \u062a\u0627\u0631\u06cc\u062e',depart:'\u062a\u0627\u0631\u06cc\u062e \u062e\u0631\u0648\u062c',arrival:'\u062a\u0627\u0631\u06cc\u062e \u0628\u0627\u0632\u06af\u0634\u062a',type:'\u0646\u0648\u0639 \u0648\u0636\u0639\u06cc\u062a',sentence:'\u0646\u0648\u0639 \u062f\u0648\u0631\u0647',destination:'\u06a9\u0634\u0648\u0631 \u0645\u0642\u0635\u062f',reason:'\u062f\u0644\u06cc\u0644 \u0633\u0641\u0631',remove:'\u062d\u0630\u0641',edit:'\u0648\u06cc\u0631\u0627\u06cc\u0634',saveRow:'\u062b\u0628\u062a',updateRow:'\u0630\u062e\u06cc\u0631\u0647 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a',cancel:'\u0627\u0646\u0635\u0631\u0627\u0641',actions:'\u0639\u0645\u0644\u06cc\u0627\u062a',unsaved:'\u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u06cc\u0646 \u0631\u062f\u06cc\u0641 \u0647\u0646\u0648\u0632 \u062b\u0628\u062a \u0646\u0634\u062f\u0647 \u0627\u0633\u062a. \u0627\u0628\u062a\u062f\u0627 \u00ab\u062b\u0628\u062a\u00bb \u0631\u0627 \u0628\u0632\u0646\u06cc\u062f \u06cc\u0627 \u0627\u0646\u0635\u0631\u0627\u0641 \u062f\u0647\u06cc\u062f.',sending:'\u062f\u0631 \u062d\u0627\u0644 \u0627\u0631\u0633\u0627\u0644 \u06af\u0632\u0627\u0631\u0634...',sent:'\u06af\u0632\u0627\u0631\u0634 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0628\u0647 \u0627\u06cc\u0645\u06cc\u0644 \u0634\u0645\u0627 \u0627\u0631\u0633\u0627\u0644 \u0634\u062f.',sendError:'\u0627\u0631\u0633\u0627\u0644 \u0627\u06cc\u0645\u06cc\u0644 \u0627\u0646\u062c\u0627\u0645 \u0646\u0634\u062f. \u0622\u062f\u0631\u0633 \u0627\u06cc\u0645\u06cc\u0644 \u0648 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0627\u0631\u0633\u0627\u0644 \u0627\u06cc\u0645\u06cc\u0644 \u0633\u0627\u06cc\u062a \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.',emailValidation:'\u0646\u0627\u0645\u060c \u0627\u06cc\u0645\u06cc\u0644 \u0645\u0639\u062a\u0628\u0631 \u0648 \u0631\u0636\u0627\u06cc\u062a \u0630\u062e\u06cc\u0631\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u0644\u0632\u0627\u0645\u06cc \u0627\u0633\u062a.',visitor:'\u062a\u0648\u0631\u06cc\u0633\u062a (Visitor)',student:'\u062f\u0627\u0646\u0634\u062c\u0648 (Student)',worker:'\u062f\u0627\u0631\u0646\u062f\u0647 \u0645\u062c\u0648\u0632 \u06a9\u0627\u0631 (Worker)',trp:'\u062f\u0627\u0631\u0646\u062f\u0647 \u0645\u062c\u0648\u0632 \u0627\u0642\u0627\u0645\u062a \u0645\u0648\u0642\u062a (TRP)',protected:'\u0641\u0631\u062f \u062a\u062d\u062a \u062d\u0645\u0627\u06cc\u062a \u06a9\u0627\u0646\u0627\u062f\u0627 (Protected Person)\u061b \u067e\u0633 \u0627\u0632 \u067e\u0630\u06cc\u0631\u0634 \u067e\u0646\u0627\u0647\u0646\u062f\u06af\u06cc \u06cc\u0627 PRRA',imprisonment:'\u062d\u0628\u0633',probation:'\u0646\u0638\u0627\u0631\u062a \u0642\u0636\u0627\u06cc\u06cc (Probation)',parole:'\u0622\u0632\u0627\u062f\u06cc \u0645\u0634\u0631\u0648\u0637 (Parole)',required:'\u0644\u0637\u0641\u0627\u064b \u0627\u06cc\u0646 \u0628\u062e\u0634 \u0631\u0627 \u062a\u06a9\u0645\u06cc\u0644 \u06a9\u0646\u06cc\u062f.',dates:'\u0644\u0637\u0641\u0627\u064b \u062a\u0627\u0631\u06cc\u062e\u200c\u0647\u0627\u06cc \u0645\u0639\u062a\u0628\u0631 \u0645\u06cc\u0644\u0627\u062f\u06cc \u0628\u0627 \u0642\u0627\u0644\u0628 YYYY-MM-DD \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.',order:'\u062a\u0627\u0631\u06cc\u062e \u062f\u0631\u06cc\u0627\u0641\u062a PR \u0628\u0627\u06cc\u062f \u0642\u0628\u0644 \u06cc\u0627 \u0628\u0631\u0627\u0628\u0631 \u062a\u0627\u0631\u06cc\u062e \u0627\u0645\u0636\u0627\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0628\u0627\u0634\u062f.',row:'\u062a\u0627\u0631\u06cc\u062e\u200c\u0647\u0627 \u06cc\u0627 \u0645\u0634\u062e\u0635\u0627\u062a \u06cc\u06a9\u06cc \u0627\u0632 \u0631\u062f\u06cc\u0641\u200c\u0647\u0627 \u0646\u0627\u0642\u0635 \u0627\u0633\u062a.',reverse:'\u062a\u0627\u0631\u06cc\u062e \u067e\u0627\u06cc\u0627\u0646 \u0646\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0642\u0628\u0644 \u0627\u0632 \u062a\u0627\u0631\u06cc\u062e \u0634\u0631\u0648\u0639 \u0628\u0627\u0634\u062f.',overlap:'\u062a\u0627\u0631\u06cc\u062e \u0633\u0641\u0631\u0647\u0627 \u0628\u0627 \u0647\u0645 \u0647\u0645\u067e\u0648\u0634\u0627\u0646\u06cc \u062f\u0627\u0631\u062f\u061b \u0622\u0646\u200c\u0647\u0627 \u0631\u0627 \u0627\u0635\u0644\u0627\u062d \u06a9\u0646\u06cc\u062f.',minRow:'\u0644\u0637\u0641\u0627\u064b \u062f\u0633\u062a\u200c\u06a9\u0645 \u06cc\u06a9 \u0631\u062f\u06cc\u0641 \u06a9\u0627\u0645\u0644 \u062b\u0628\u062a \u06a9\u0646\u06cc\u062f.',met:'\u062d\u062f\u0627\u0642\u0644 \u0631\u0648\u0632\u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u062d\u0636\u0648\u0631 \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u0631\u0627 \u062a\u06a9\u0645\u06cc\u0644 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f.',notMet:'\u0647\u0646\u0648\u0632 \u062d\u062f\u0627\u0642\u0644 \u0631\u0648\u0632\u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u062d\u0636\u0648\u0631 \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u0631\u0627 \u062a\u06a9\u0645\u06cc\u0644 \u0646\u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f.',progress:'\u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0634\u0645\u0627\u060c',target:'\u0631\u0648\u0632 \u0627\u0632 \u062d\u062f\u0627\u0642\u0644 \u06f1\u06f0\u06f9\u06f5 \u0631\u0648\u0632 \u0645\u0648\u0631\u062f\u0646\u06cc\u0627\u0632 \u0645\u062d\u0627\u0633\u0628\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.',needed:'\u0631\u0648\u0632 \u062f\u06cc\u06af\u0631 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u062d\u062f\u0627\u0642\u0644 \u0631\u0648\u0632\u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f.',forecast:'\u0627\u06cc\u0646 \u062a\u0627\u0631\u06cc\u062e \u062f\u0631 \u0622\u06cc\u0646\u062f\u0647 \u0627\u0633\u062a\u061b \u0646\u062a\u06cc\u062c\u0647 \u0628\u0631\u0622\u0648\u0631\u062f\u06cc \u0627\u0633\u062a \u0648 \u0641\u0631\u0636 \u0645\u06cc\u200c\u0634\u0648\u062f \u067e\u0633 \u0627\u0632 \u0627\u0645\u0631\u0648\u0632 \u062e\u0631\u0648\u062c \u06cc\u0627 \u0645\u0627\u0646\u0639 \u062c\u062f\u06cc\u062f\u06cc \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f.',none:'\u0645\u0648\u0631\u062f\u06cc \u062b\u0628\u062a \u0646\u0634\u062f\u0647 \u0627\u0633\u062a.',initial:'\u062e\u0627\u0631\u062c \u0627\u0632 \u06a9\u0627\u0646\u0627\u062f\u0627 \u0642\u0628\u0644 \u0627\u0632 \u0646\u062e\u0633\u062a\u06cc\u0646 \u0648\u0631\u0648\u062f \u067e\u0633 \u0627\u0632 PR',initialReason:'\u0627\u0648\u0644\u06cc\u0646 \u0648\u0631\u0648\u062f \u0628\u0647 \u06a9\u0627\u0646\u0627\u062f\u0627 \u067e\u0633 \u0627\u0632 \u062f\u0631\u06cc\u0627\u0641\u062a PR',calculate:'\u0645\u0634\u0627\u0647\u062f\u0647 \u06af\u0632\u0627\u0631\u0634',continue:'\u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f',status:'\u0648\u0636\u0639\u06cc\u062a',error:'\u0627\u0645\u06a9\u0627\u0646 \u0645\u062d\u0627\u0633\u0628\u0647 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f: ',monthNames:['\u0698\u0627\u0646\u0648\u06cc\u0647','\u0641\u0648\u0631\u06cc\u0647','\u0645\u0627\u0631\u0686','\u0622\u067e\u0631\u06cc\u0644','\u0645\u06cc','\u062c\u0648\u0646','\u062c\u0648\u0644\u0627\u06cc','\u0622\u06af\u0648\u0633\u062a','\u0633\u067e\u062a\u0627\u0645\u0628\u0631','\u0627\u06a9\u062a\u0628\u0631','\u0646\u0648\u0627\u0645\u0628\u0631','\u062f\u0633\u0627\u0645\u0628\u0631'],weekdays:['\u06cc\u06a9','\u062f\u0648','\u0633\u0647','\u0686\u0647','\u067e\u0646','\u062c\u0645','\u0634\u0646']},\n en:{from:'Start date',to:'End date',depart:'Departure date',arrival:'Return date',type:'Immigration status',sentence:'Period type',destination:'Destination',reason:'Reason for travel',remove:'Delete',edit:'Edit',saveRow:'Save',updateRow:'Save changes',cancel:'Cancel',actions:'Actions',unsaved:'Please save or cancel your draft entry before continuing.',sending:'Sending your report...',sent:'Your report has been emailed successfully.',sendError:'The email could not be sent. Please check the address and your website email setup.',emailValidation:'Please enter your name, a valid email address and check the consent box.',visitor:'Visitor',student:'International student',worker:'Temporary worker',trp:'Temporary Resident Permit (TRP) holder',protected:'Protected person \u2014 from a positive IRB refugee or PRRA decision',imprisonment:'Imprisonment',probation:'Probation',parole:'Parole',required:'Please answer this question before continuing.',dates:'Please enter valid Gregorian dates in YYYY-MM-DD format.',order:'The date you became a PR must be on or before the application date.',row:'One of your entries has incomplete or invalid dates or details.',reverse:'An end date cannot come before a start date.',overlap:'Some travel dates overlap. Please check your entries.',minRow:'Please add at least one complete entry.',met:'You meet the minimum physical presence requirement.',notMet:'You have not yet met the minimum physical presence requirement.',progress:'Based on your details, you have',target:'credited days toward the required 1,095 days.',needed:'more credited days are needed to reach 1,095.',forecast:'This is a future-dated estimate, assuming continuous presence and no further absences or exclusions.',none:'No entries recorded.',initial:'Outside Canada before first entry as a PR',initialReason:'Initial entry after PR',calculate:'View report',continue:'Continue',status:'Status',error:'Unable to calculate: ',monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],weekdays:['Su','Mo','Tu','We','Th','Fr','Sa']}\n};\nconst ascii=s=>String(s||'').replace(\/[\u06f0-\u06f9\u0660-\u0669]\/g,x=>String(x.charCodeAt(0)>=0x6f0?x.charCodeAt(0)-0x6f0:x.charCodeAt(0)-0x660)).replace(\/(?<=\\d)[\u066c\u060c](?=\\d)\/g,'').replace(\/(?<=\\d)\u066b(?=\\d)\/g,'.').trim();\nconst pad=n=>String(n).padStart(2,'0');\nfunction el(tag,cls,txt){const n=document.createElement(tag);if(cls)n.className=cls;if(txt!==undefined)n.textContent=txt;return n;}\nfunction setup(root){\n const lang=root.dataset.lang==='en'?'en':'fa',t=D[lang],form=root.querySelector('.hkcc__form'),one=s=>root.querySelector(s);if(!form)return;\n \/\/ Read the actual site typography from the calculator container, not theme table defaults.\n const siteText=window.getComputedStyle(root);\n for(const [token,value] of Object.entries({'--hkcc-site-font':siteText.fontFamily,'--hkcc-site-size':siteText.fontSize,'--hkcc-site-line':siteText.lineHeight,'--hkcc-site-weight':siteText.fontWeight}))root.style.setProperty(token,value);\n let step=1,result=null,payload=null,calInput=null,calYear=2026,calMonth=10;\n const records={periods:[],trips:[],sentences:[]};\n const rowsOf=kind=>records[kind].map(item=>({...item}));\n const choice=name=>form.querySelector('input[name=\"'+name+'\"]:checked')?.value||'';\n const digit=n=>String(n).replace(\/[0-9]\/g,c=>lang==='fa'?'\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9'[+c]:c);\n \/\/ Display conservative whole-day figures; the calculation engine retains exact 0.5-day credit.\n const num=n=>digit(String(Math.max(0,Math.floor(Number(n)||0))));\n const numNeeded=n=>digit(String(Math.max(0,Math.ceil(Number(n)||0))));\n const formatDate=n=>n||'\u2014'; \/\/ ISO date strings are always ASCII\/Gregorian.\n const statusTypes=['visitor','student','worker','trp','protected'],sentenceTypes=['imprisonment','probation','parole'];\n function dateField(title,name){\n   const label=el('label','hkcc__field'),heading=el('span','',title),wrap=el('span','hkcc__date-wrap'),input=el('input','hkcc__date');\n   input.type='text';input.name=name;input.maxLength=10;input.placeholder='YYYY-MM-DD';input.dir='ltr';input.lang='en-CA';input.inputMode='numeric';input.autocomplete='off';\n   const btn=el('button','hkcc__calendar-button');btn.type='button';btn.dataset.dateOpen='';btn.setAttribute('aria-label',lang==='fa'?'\u0627\u0646\u062a\u062e\u0627\u0628 \u062a\u0627\u0631\u06cc\u062e \u0627\u0632 \u062a\u0642\u0648\u06cc\u0645':'Choose date');\n   btn.innerHTML='<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\"\/><path d=\"M7 3v4M17 3v4M3 10h18\"\/><\/svg>';\n   wrap.append(input,btn);label.append(heading,wrap);return label;\n }\n function inputField(title,name){const label=el('label','hkcc__field'),span=el('span','',title),input=el('input');input.type='text';input.name=name;input.maxLength=240;label.append(span,input);return label;}\n function selectField(title,name,values){const label=el('label','hkcc__field'),span=el('span','',title),select=el('select');select.name=name;values.forEach(v=>{const op=el('option','',t[v]);op.value=v;select.append(op);});label.append(span,select);return label;}\n function recordLabel(kind){return lang==='fa'?(kind==='trips'?'\u0633\u0641\u0631':kind==='periods'?'\u0633\u0627\u0628\u0642\u0647 \u0627\u0642\u0627\u0645\u062a':'\u062f\u0648\u0631\u0647'):kind==='trips'?'Trip':kind==='periods'?'Residence status':'Period';}\n function recordFields(kind){return kind==='periods'?[selectField(t.type,'type',statusTypes),dateField(t.from,'from'),dateField(t.to,'to')]:kind==='trips'?[dateField(t.depart,'from'),dateField(t.arrival,'to'),inputField(t.destination,'destination'),inputField(t.reason,'reason')]:[selectField(t.sentence,'type',sentenceTypes),dateField(t.from,'from'),dateField(t.to,'to')];}\n function displaySaved(kind){\n   const host=one('[data-rows=\"'+kind+'\"]'),recordsBox=host.parentElement.querySelector('[data-saved-kind=\"'+kind+'\"]');if(!recordsBox)return;\n   recordsBox.replaceChildren();if(!records[kind].length){recordsBox.hidden=true;return;}\n   recordsBox.hidden=false;const table=el('table','hkcc__record-table hkcc__record-table--'+kind),colgroup=el('colgroup'),thead=el('thead'),trHead=el('tr');\n   for(let k=0;k<(kind==='trips'?5:4);k++) colgroup.append(el('col'));table.append(colgroup);\n   const columns=kind==='trips'?[t.depart,t.arrival,t.destination,t.reason]:kind==='periods'?[t.type,t.from,t.to]:[t.sentence,t.from,t.to];\n   [...columns,t.actions].forEach(v=>{const th=el('th','',v);th.scope='col';trHead.append(th);});thead.append(trHead);table.append(thead);\n   const body=el('tbody');records[kind].forEach((item,i)=>{\n     const row=el('tr');const values=kind==='trips'?[item.from,item.to,item.destination,item.reason]:[t[item.type]||item.type,item.from,item.to];\n     values.forEach((value,j)=>{const cell=el('td');cell.dataset.label=columns[j];if((kind==='trips'&&j<2)||(kind!=='trips'&&j>0)){cell.append(el('bdi','',value));}else{cell.textContent=value;}row.append(cell);});\n     const actions=el('td','hkcc__record-actions'),edit=el('button','hkcc__record-action',t.edit),remove=el('button','hkcc__record-action hkcc__record-action--danger',t.remove);\n     edit.type=remove.type='button';edit.dataset.editRecord=kind;edit.dataset.index=String(i);remove.dataset.deleteRecord=kind;remove.dataset.index=String(i);\n     const actionRow=el('div','hkcc__record-actions-inner');actionRow.append(edit,remove);actions.dataset.label=t.actions;actions.append(actionRow);row.append(actions);body.append(row);\n   });table.append(body);recordsBox.append(table);\n }\n function addRow(kind,values={},editIndex=-1){\n   const host=one('[data-rows=\"'+kind+'\"]');if(host.querySelector('.hkcc__entry'))return;\n   const row=el('div','hkcc__entry');row.dataset.kind=kind;row.dataset.editIndex=String(editIndex);\n   const header=el('div','hkcc__entry-header');header.append(el('strong','hkcc__entry-number',editIndex>=0?t.edit+' '+recordLabel(kind):recordLabel(kind)+' \u2014 '+t.saveRow));row.append(header);\n   recordFields(kind).forEach(field=>{const control=field.querySelector('input,select');if(Object.prototype.hasOwnProperty.call(values,control.name))control.value=ascii(values[control.name]);row.append(field);});\n   const actions=el('div','hkcc__entry-actions'),save=el('button','hkcc__primary hkcc__record-save',editIndex<0?t.saveRow:t.updateRow),cancel=el('button','hkcc__secondary hkcc__record-cancel',t.cancel);\n   save.type=cancel.type='button';save.dataset.saveRecord=kind;cancel.dataset.cancelRecord=kind;actions.append(save,cancel);row.append(actions);host.append(row);\n   host.parentElement.querySelector('[data-add=\"'+kind+'\"]').hidden=true;\n }\n function closeEditor(kind){const host=one('[data-rows=\"'+kind+'\"]');host.replaceChildren();host.parentElement.querySelector('[data-add=\"'+kind+'\"]').hidden=false;}\n function currentDraft(kind){const row=one('[data-rows=\"'+kind+'\"] .hkcc__entry');if(!row)return null;const item={};row.querySelectorAll('input,select').forEach(control=>item[control.name]=ascii(control.value));return item;}\n function checkRecord(kind,item,omit=-1){\n   if(!item||!Number.isFinite(E.ordinal(item.from))||!Number.isFinite(E.ordinal(item.to)))throw Error(t.row);\n   if(E.ordinal(item.to)<E.ordinal(item.from))throw Error(t.reverse);\n   if(kind==='trips'){\n     if(!item.destination||!item.reason)throw Error(t.row);\n     const merged=records.trips.filter((r,i)=>i!==omit).concat(item).sort((a,b)=>a.from.localeCompare(b.from));\n     for(let i=1;i<merged.length;i++)if(merged[i].from<merged[i-1].to)throw Error(t.overlap);\n   }\n }\n function saveDraft(kind){try{const host=one('[data-rows=\"'+kind+'\"]'),row=host.querySelector('.hkcc__entry'),idx=Number(row.dataset.editIndex),item=currentDraft(kind);checkRecord(kind,item,idx);if(idx>=0)records[kind][idx]=item;else records[kind].push(item);closeEditor(kind);displaySaved(kind);showErr('');}catch(err){showErr(err.message||t.row);}}\n function initializeRecordTable(kind){const host=one('[data-rows=\"'+kind+'\"]');const region=el('div','hkcc__saved-entries');region.dataset.savedKind=kind;region.hidden=true;host.parentElement.insertBefore(region,host.parentElement.querySelector('[data-add=\"'+kind+'\"]').nextSibling);}\n ['periods','trips','sentences'].forEach(initializeRecordTable);\n function toggle(){\n   one('[data-show=\"prepr\"]').hidden=choice('has_prepr')!=='yes';one('[data-show=\"trips\"]').hidden=choice('has_travel')!=='yes';one('[data-show=\"sentences\"]').hidden=choice('has_sentences')!=='yes';\n }\n function preNeeded(){const a=E.ordinal(ascii(form.elements.application_date.value)),p=E.ordinal(ascii(form.elements.pr_date.value));return Number.isFinite(a)&&Number.isFinite(p)&&p>E.yearsBack(E.iso(a),5);}\n function fillWindow(){const a=E.ordinal(ascii(form.elements.application_date.value)),p=E.ordinal(ascii(form.elements.pr_date.value));\n   const box=one('[data-window-preview]');\n   if(!Number.isFinite(a)||!Number.isFinite(p)){box.hidden=true;return;}\n   const start=E.yearsBack(E.iso(a),5),end=a-1;\n   one('[data-preview-start]').textContent=E.iso(start);one('[data-preview-end]').textContent=E.iso(end);box.hidden=false;\n   one('[data-pre-window-start]').textContent=E.iso(start);one('[data-pre-window-end]').textContent=E.iso(p-1);\n }\n function gather(){return {application_date:ascii(form.elements.application_date.value),pr_date:ascii(form.elements.pr_date.value),has_prepr:preNeeded()&&choice('has_prepr')==='yes',periods:preNeeded()&&choice('has_prepr')==='yes'?rowsOf('periods'):[],trips:choice('has_travel')==='yes'?rowsOf('trips'):[],sentences:choice('has_sentences')==='yes'?rowsOf('sentences'):[],pr_entered_late:false,pr_arrival_date:'',mode:'signing',special:false};}\n function showErr(msg){const box=one('.hkcc__error');box.textContent=msg||'';box.hidden=!msg;if(msg)box.scrollIntoView({behavior:'smooth',block:'nearest'});}\n function validateRows(kind){if(one('[data-rows=\"'+kind+'\"] .hkcc__entry'))throw Error(t.unsaved);const rows=rowsOf(kind);if(!rows.length)throw Error(t.minRow);rows.forEach(r=>{if(!Number.isFinite(E.ordinal(r.from))||!Number.isFinite(E.ordinal(r.to)))throw Error(t.row);if(E.ordinal(r.to)<E.ordinal(r.from))throw Error(t.reverse);if(kind==='trips'&&(!r.destination||!r.reason))throw Error(t.row);});if(kind==='trips'){const sorted=rows.slice().sort((x,y)=>x.from.localeCompare(y.from));for(let i=1;i<sorted.length;i++)if(sorted[i].from<sorted[i-1].to)throw Error(t.overlap);}}\n function valid(which){try{if(which===1){const a=E.ordinal(ascii(form.elements.application_date.value)),p=E.ordinal(ascii(form.elements.pr_date.value));if(!Number.isFinite(a)||!Number.isFinite(p))throw Error(t.dates);if(p>a)throw Error(t.order);fillWindow();}if(which===2){if(!choice('has_prepr'))throw Error(t.required);if(choice('has_prepr')==='yes')validateRows('periods');}if(which===3){if(!choice('has_travel'))throw Error(t.required);if(choice('has_travel')==='yes')validateRows('trips');}if(which===4){if(!choice('has_sentences'))throw Error(t.required);if(choice('has_sentences')==='yes')validateRows('sentences');}showErr('');return true;}catch(e){showErr(e.message||t.required);return false;}}\n function fillList(selector,items,fn,columnCount){\n  const body=one(selector);body.replaceChildren();\n  if(!items.length){const tr=el('tr'),td=el('td','hkcc__no-rows',t.none);td.colSpan=columnCount;tr.append(td);body.append(tr);return;}\n  const labels=selector==='[data-report-trips]'?[t.depart,t.arrival,t.destination,t.reason,lang==='fa'?'\u0631\u0648\u0632\u0647\u0627\u06cc \u063a\u06cc\u0628\u062a':'Absent days']:selector==='[data-report-periods]'?[t.type,t.from,t.to]:[t.sentence,t.from,t.to];\n  items.forEach(item=>{const tr=el('tr');fn(item).forEach((val,i)=>{const td=el('td','',String(val));td.dataset.label=labels[i]||'';tr.append(td);});body.append(tr);});\n }\n function render(r){result=r;const report=one('.hkcc__report');const keys=['total','remaining','pr_days','pre_credit','pr_calendar_days','pr_absent_days','pr_excluded_days','pre_status_days','pre_absent_days','pre_excluded_days','pre_eligible_days'];keys.forEach(key=>report.querySelectorAll('[data-val=\"'+key+'\"]').forEach(x=>x.textContent=key==='remaining'?numNeeded(r[key]):num(r[key])));['application_date','pr_date','window_start','window_end'].forEach(k=>report.querySelectorAll('[data-val=\"'+k+'\"]').forEach(x=>{x.textContent=formatDate(r[k]);x.dir='ltr';}));\n   const outcome=one('[data-result-outcome]');outcome.classList.toggle('hkcc__outcome--needs',!r.eligible);outcome.querySelector('.hkcc__outcome-icon').innerHTML=r.eligible?'<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.6\"><path d=\"M5 12.5l4.5 4.5L19.5 7\"\/><\/svg>':'<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"2.6\"><path d=\"M12 5v9M12 18h.01\"\/><\/svg>';one('.hkcc__result-status').textContent=r.eligible?t.met:t.notMet;\n   one('.hkcc__result-description').textContent=lang==='fa'?t.progress+' '+num(r.total)+' '+t.target+(r.eligible?'': ' '+numNeeded(r.remaining)+' '+t.needed):t.progress+' '+num(r.total)+' '+t.target+(r.eligible?'':' '+numNeeded(r.remaining)+' '+t.needed);\n   const est=one('[data-estimated-date]');est.hidden=r.eligible||!r.earliest_date;est.textContent=est.hidden?'':(lang==='fa'?'\u0646\u062e\u0633\u062a\u06cc\u0646 \u062a\u0627\u0631\u06cc\u062e \u0627\u062d\u062a\u0645\u0627\u0644\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u062d\u062f\u0627\u0642\u0644 \u0631\u0648\u0632\u0647\u0627 (\u062f\u0631 \u0635\u0648\u0631\u062a \u0627\u062f\u0627\u0645\u0647 \u062d\u0636\u0648\u0631 \u062f\u0631 \u06a9\u0627\u0646\u0627\u062f\u0627): ':'Estimated first qualifying date with continued presence: ')+r.earliest_date;\n   one('[data-projection-note]').textContent=[r.projected?t.forecast:''].filter(Boolean).join(' ');\n   const l=E.ordinal(r.window_start),end=E.ordinal(r.window_end),claimed=new Set(),reportTrips=[];\n   payload.trips.forEach(item=>{let absent=0;const from=Math.max(l,E.ordinal(item.from)+1),to=Math.min(end,E.ordinal(item.to)-1);for(let i=from;i<=to;i++){if(!claimed.has(i)){claimed.add(i);absent++;}}reportTrips.push({...item,absent});});\n   fillList('[data-report-trips]',reportTrips,x=>[x.from,x.to,x.destination,x.reason,num(x.absent)],5);one('[data-trip-sum]').textContent=num(claimed.size);\n   const mobile=one('[data-report-trip-cards]');mobile.replaceChildren();\n   const pairs=lang==='fa'?['\u062e\u0631\u0648\u062c','\u0628\u0627\u0632\u06af\u0634\u062a','\u0645\u0642\u0635\u062f','\u062f\u0644\u06cc\u0644','\u0631\u0648\u0632\u0647\u0627\u06cc \u063a\u06cc\u0628\u062a']:['Departure','Return','Destination','Reason','Absent days'];\n   (reportTrips.length?reportTrips:[{from:'\u2014',to:'\u2014',destination:t.none,reason:'\u2014',absent:0}]).forEach(trip=>{\n     const card=el('section','hkcc__travel-card');\n     [trip.from,trip.to,trip.destination,trip.reason,num(trip.absent)].forEach((value,i)=>{\n       const line=el('div'),caption=el('span','',pairs[i]),detail=el('strong','',String(value));\n       line.append(caption,detail);card.append(line);\n     });mobile.append(card);\n   });\n   fillList('[data-report-periods]',payload.periods,x=>[t[x.type]||x.type,x.from,x.to],3);fillList('[data-report-sentences]',payload.sentences,x=>[t[x.type]||x.type,x.from,x.to],3);\n }\n function calculate(){try{payload=gather();result=E.calculate(payload);showErr('');render(result);return true;}catch(e){showErr(t.error+(e.message||t.dates));return false;}}\n async function emailReport(){\n   const name=one('[data-email-name]').value.trim(),email=one('[data-email-address]').value.trim(),consent=one('[data-email-consent]').checked,honeypot=one('[data-email-website]').value;\n   const box=one('[data-email-message]'),button=one('[data-action=\"email\"]');box.classList.remove('is-success');\n   if(!result||!payload||!name||!\/^\\S+@\\S+\\.\\S+$\/.test(email)||!consent){box.textContent=t.emailValidation;return;}\n   button.disabled=true;box.textContent=t.sending;\n   try{\n     const response=await fetch((window.HKCC_CONFIG?.api||'\/wp-json\/hk-citizen\/v1\/')+'email-report',{method:'POST',headers:{'Content-Type':'application\/json'},body:JSON.stringify({name,email,consent:true,website:honeypot,lang,payload})});\n     const data=await response.json();if(!response.ok||!data.ok)throw Error(data.message||t.sendError);\n     box.textContent=t.sent;box.classList.add('is-success');\n   }catch(err){box.textContent=err.message||t.sendError;}finally{button.disabled=false;}\n }\n function setStep(next,scroll=true){step=next;root.querySelectorAll('.hkcc__step').forEach(sec=>sec.hidden=Number(sec.dataset.step)!==next);root.querySelectorAll('[data-step-marker]').forEach(x=>{const n=+x.dataset.stepMarker;x.classList.toggle('is-active',n===next);const complete=n<next&&!(n===2&&!preNeeded());x.classList.toggle('is-complete',complete);x.classList.toggle('is-skipped',n===2&&!preNeeded());x.querySelector('.hkcc__step-number').textContent=complete?'\u2713':digit(n);if(n===next)x.setAttribute('aria-current','step');else x.removeAttribute('aria-current');});one('.hkcc__progress-fill').style.width=((next-1)\/4*100)+'%';one('[data-action=\"prev\"]').hidden=next===1||next===5;one('[data-action=\"next\"]').hidden=next===5;one('.hkcc__wizard-actions').hidden=next===5;one('[data-action=\"next\"]').textContent=(next===4?t.calculate:t.continue);showErr('');if(scroll)root.scrollIntoView({behavior:'smooth',block:'start'});}\n function next(){if(!valid(step))return;if(step===4){if(calculate())setStep(5);return;}if(step===1&&!preNeeded())setStep(3);else setStep(Math.min(5,step+1));}\n function previous(){if(step===3&&!preNeeded())setStep(1);else setStep(Math.max(1,step-1));}\n \/\/ Accessible Gregorian calendar: custom month\/year grid avoids theme-styled native select menus.\n const calendar=one('.hkcc__calendar'),calendarTitle=one('[data-cal-switch]'),picker=one('[data-cal-picker]'),daysView=one('[data-cal-days-view]'),monthGrid=one('[data-cal-month-grid]'),yearInput=one('[data-cal-year-input]'),days=one('.hkcc__calendar-days'),week=one('.hkcc__calendar-weekdays');\n const today=ascii(window.HKCC_CONFIG?.today||new Date().toISOString().slice(0,10));\n t.weekdays.forEach(d=>week.append(el('span','',d)));\n t.monthNames.forEach((m,i)=>{const b=el('button','hkcc__calendar-month',m);b.type='button';b.dataset.calChooseMonth=String(i);monthGrid.append(b);});\n function posCal(){\n   if(!calInput)return;\n   const rect=calInput.getBoundingClientRect(),w=Math.min(344,window.innerWidth-28);\n   calendar.style.maxHeight=Math.max(240,window.innerHeight-20)+'px';calendar.style.overflowY='auto';\n   const height=calendar.getBoundingClientRect().height||405;\n   let top=rect.bottom+8;\n   if(top+height>window.innerHeight-8&&rect.top>height+8)top=rect.top-height-8;\n   top=Math.max(8,Math.min(top,window.innerHeight-height-8));\n   const left=Math.max(14,Math.min(rect.left,window.innerWidth-w-14));\n   calendar.style.left=left+'px';calendar.style.top=top+'px';calendar.style.width=w+'px';\n }\n function draw(){\n   calendarTitle.textContent=t.monthNames[calMonth]+' '+digit(calYear);\n   yearInput.value=String(calYear);\n   monthGrid.querySelectorAll('[data-cal-choose-month]').forEach(b=>b.classList.toggle('is-selected',+b.dataset.calChooseMonth===calMonth));\n   days.replaceChildren();const weekday=new Date(Date.UTC(calYear,calMonth,1)).getUTCDay(),len=new Date(Date.UTC(calYear,calMonth+1,0)).getUTCDate();\n   for(let i=0;i<weekday;i++)days.append(el('span','hkcc__day-empty'));\n   for(let day=1;day<=len;day++){\n     const b=el('button','hkcc__day',digit(day));b.type='button';b.dataset.calDay=day;\n     const v=calYear+'-'+pad(calMonth+1)+'-'+pad(day);\n     if(calInput?.value===v)b.classList.add('is-selected');if(today===v)b.classList.add('is-today');days.append(b);\n   }\n }\n function switchPicker(show){picker.hidden=!show;daysView.hidden=show;calendarTitle.setAttribute('aria-expanded',String(show));draw();posCal();}\n function openCal(input){if(calInput===input&&!calendar.hidden){closeCal();return;}calInput=input;const v=ascii(input.value);const o=E.ordinal(v),source=Number.isFinite(o)?v:today,[y,m]=source.split('-').map(Number);calYear=y;calMonth=m-1;calendar.hidden=false;switchPicker(false);draw();posCal();}\n function closeCal(){calendar.hidden=true;calInput=null;}\n function stepMonth(delta){const next=calYear*12+calMonth+delta;const y=Math.floor(next\/12);if(y<1900||y>2100)return;calYear=y;calMonth=next%12;draw();posCal();}\n function updateYear(v){const y=Number(ascii(String(v)));if(Number.isInteger(y)&&y>=1900&&y<=2100){calYear=y;draw();posCal();}}\n root.addEventListener('click',ev=>{\n   const open=ev.target.closest('[data-date-open]');if(open&&root.contains(open)){ev.preventDefault();openCal(open.closest('.hkcc__date-wrap').querySelector('input'));return;}\n   if(ev.target.matches('input.hkcc__date')){openCal(ev.target);return;}\n   const add=ev.target.closest('[data-add]');if(add){addRow(add.dataset.add);return;}\n   const save=ev.target.closest('[data-save-record]');if(save){saveDraft(save.dataset.saveRecord);return;}\n   const cancel=ev.target.closest('[data-cancel-record]');if(cancel){closeEditor(cancel.dataset.cancelRecord);showErr('');return;}\n   const editRecord=ev.target.closest('[data-edit-record]');if(editRecord){const kind=editRecord.dataset.editRecord,idx=Number(editRecord.dataset.index);closeEditor(kind);addRow(kind,records[kind][idx],idx);one('[data-rows=\"'+kind+'\"]').scrollIntoView({behavior:'smooth',block:'center'});return;}\n   const deleteRecord=ev.target.closest('[data-delete-record]');if(deleteRecord){const kind=deleteRecord.dataset.deleteRecord,idx=Number(deleteRecord.dataset.index);closeEditor(kind);records[kind].splice(idx,1);displaySaved(kind);return;}\n\n   const btn=ev.target.closest('[data-action]');if(btn){const action=btn.dataset.action;if(action==='next')next();if(action==='prev')previous();if(action==='edit')setStep(1);if(action==='print')window.print();if(action==='email')emailReport();return;}\n   if(calendar.contains(ev.target)){\n     const day=ev.target.closest('[data-cal-day]');if(day&&calInput){calInput.value=calYear+'-'+pad(calMonth+1)+'-'+pad(Number(day.dataset.calDay));calInput.dispatchEvent(new Event('change',{bubbles:true}));closeCal();return;}\n     if(ev.target.closest('[data-cal-prev]'))stepMonth(-1);\n     if(ev.target.closest('[data-cal-next]'))stepMonth(1);\n     if(ev.target.closest('[data-cal-switch]'))switchPicker(picker.hidden);\n     if(ev.target.closest('[data-year-prev]'))updateYear(calYear-1);\n     if(ev.target.closest('[data-year-next]'))updateYear(calYear+1);\n     const chosen=ev.target.closest('[data-cal-choose-month]');if(chosen){calMonth=Number(chosen.dataset.calChooseMonth);switchPicker(false);}\n     if(ev.target.closest('[data-cal-close]'))closeCal();\n     if(ev.target.closest('[data-cal-today]')){if(calInput){calInput.value=today;calInput.dispatchEvent(new Event('change',{bubbles:true}));}closeCal();}\n     return;\n   }\n   if(!calendar.hidden)closeCal();\n });\n yearInput.addEventListener('change',()=>updateYear(yearInput.value));\n yearInput.addEventListener('keydown',ev=>{if(ev.key==='Enter'){ev.preventDefault();updateYear(yearInput.value);switchPicker(false);}});\n root.addEventListener('change',ev=>{if(ev.target.name==='has_prepr'&&choice('has_prepr')==='yes'&&!rowsOf('periods').length)addRow('periods');if(ev.target.name==='has_travel'&&choice('has_travel')==='yes'&&!rowsOf('trips').length)addRow('trips');if(ev.target.name==='has_sentences'&&choice('has_sentences')==='yes'&&!rowsOf('sentences').length)addRow('sentences');if(ev.target.classList?.contains('hkcc__date')){ev.target.value=ascii(ev.target.value);fillWindow();}toggle();});\n root.addEventListener('input',ev=>{if(ev.target.classList?.contains('hkcc__date')){const normalized=ascii(ev.target.value);if(normalized!==ev.target.value)ev.target.value=normalized;if(['application_date','pr_date'].includes(ev.target.name))fillWindow();}});\n document.addEventListener('keydown',ev=>{if(ev.key==='Escape'&&!calendar.hidden)closeCal();});window.addEventListener('resize',()=>{if(!calendar.hidden)posCal();});window.addEventListener('scroll',()=>{if(!calendar.hidden)closeCal();},true);\n function normalizeEnglishNumerals(node){\n   if(lang!=='en'||!node)return;\n   const walker=document.createTreeWalker(node,NodeFilter.SHOW_TEXT);\n   let part;while((part=walker.nextNode())){\n     if(part.parentElement&&part.parentElement.closest('script,style'))continue;\n     if(\/[\u06f0-\u06f9\u0660-\u0669]\/.test(part.nodeValue)){\n       const cleaned=part.nodeValue.replace(\/[\u06f0-\u06f9\u0660-\u0669]\/g,x=>String(x.charCodeAt(0)>=0x6f0?x.charCodeAt(0)-0x6f0:x.charCodeAt(0)-0x660));\n       if(part.nodeValue!==cleaned)part.nodeValue=cleaned;\n     }\n   }\n   node.querySelectorAll('input.hkcc__date').forEach(input=>{\n     if(\/[\u06f0-\u06f9\u0660-\u0669]\/.test(input.value))input.value=ascii(input.value);\n   });\n }\n if(lang==='en'){\n   normalizeEnglishNumerals(root);\n   \/\/ Repair numerals inserted by delayed localization filters or the calculator itself.\n   const observer=new MutationObserver(records=>{\n     for(const record of records){\n       if(record.type==='characterData'){\n         const n=record.target;if(\/[\u06f0-\u06f9\u0660-\u0669]\/.test(n.nodeValue||''))n.nodeValue=n.nodeValue.replace(\/[\u06f0-\u06f9\u0660-\u0669]\/g,x=>String(x.charCodeAt(0)>=0x6f0?x.charCodeAt(0)-0x6f0:x.charCodeAt(0)-0x660));\n       }else if(record.type==='childList'){\n         record.addedNodes.forEach(node=>{if(node.nodeType===1)normalizeEnglishNumerals(node);\n           else if(node.nodeType===3&&\/[\u06f0-\u06f9\u0660-\u0669]\/.test(node.nodeValue||''))node.nodeValue=node.nodeValue.replace(\/[\u06f0-\u06f9\u0660-\u0669]\/g,x=>String(x.charCodeAt(0)>=0x6f0?x.charCodeAt(0)-0x6f0:x.charCodeAt(0)-0x660));});\n       }\n     }\n   });\n   observer.observe(root,{subtree:true,characterData:true,childList:true});\n }\n form.addEventListener('submit',ev=>{ev.preventDefault();if(step<5)next();});toggle();fillWindow();setStep(1,false);\n}\nif(document.readyState==='loading')document.addEventListener('DOMContentLoaded',()=>document.querySelectorAll('.hkcc').forEach(setup));else document.querySelectorAll('.hkcc').forEach(setup);\n})();\n\n\n\/* en-citizenship-page.js \u2014 one open FAQ; scroll to the question, not the answer. *\/\n(function(){\n  'use strict';\n  function init(){\n    document.querySelectorAll('.hk-citizenship-page .hk-en-faq-list').forEach(function(list){\n      var all=Array.prototype.slice.call(list.querySelectorAll('details'));\n      all.forEach(function(item){\n        item.addEventListener('toggle',function(){\n          if(!item.open)return;\n          all.forEach(function(other){if(other!==item)other.open=false;});\n          requestAnimationFrame(function(){\n            var summary=item.querySelector('summary');\n            if(!summary)return;\n            var top=summary.getBoundingClientRect().top+window.scrollY-130;\n            var reduce=window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n            window.scrollTo({top:Math.max(0,top),behavior:reduce?'auto':'smooth'});\n          });\n        });\n      });\n    });\n  }\n  if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',init);else init();\n})();\n\n<\/script>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Home Immigrate to Canada Physical Presence Calculator Canadian citizenship Canadian Citizenship Physical Presence Calculator Calculate your physical presence toward Canadian citizenship, including time as a permanent resident, qualifying time before PR and trips outside Canada. Book a Consultation Start the calculator \u2192 What This Calculator Covers Answer a few questions to see how the information...","protected":false},"author":11,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-15821","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.8 (Yoast SEO v28.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Canadian Citizenship Physical Presence Calculator | 1,095 Days<\/title>\n<meta name=\"description\" content=\"Calculate your physical presence for Canadian citizenship. Track PR days, eligible temporary residence and travel history to estimate your progress toward 1,095 days.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Canadian citizenship physical presence calculator\" \/>\n<meta property=\"og:description\" content=\"Calculate your physical presence for Canadian citizenship. Track PR days, eligible temporary residence and travel history to estimate your progress toward 1,095 days.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0633\u0627\u0632\u0645\u0627\u0646 \u0645\u0647\u0627\u062c\u0631\u062a\u06cc \u062d\u0633\u0627\u0645 \u06a9\u0627\u0638\u0645\u06cc | Hesam Kazemi Immigration Inc\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-19T20:20:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hesamkazemi.com\/wp-content\/uploads\/2026\/10\/Modern-Canadian-immigration-consultation-workspace.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1733\" \/>\n\t<meta property=\"og:image:height\" content=\"907\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@HesamR707216\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hesamkazemi.com\\\/en\\\/canadian-citizenship-physical-presence-calculator\\\/\",\"url\":\"https:\\\/\\\/hesamkazemi.com\\\/en\\\/canadian-citizenship-physical-presence-calculator\\\/\",\"name\":\"Canadian Citizenship Physical Presence Calculator | 1,095 Days\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hesamkazemi.com\\\/#website\"},\"datePublished\":\"2026-11-16T06:30:34+00:00\",\"dateModified\":\"2026-11-19T20:20:41+00:00\",\"description\":\"Calculate your physical presence for Canadian citizenship. Track PR days, eligible temporary residence and travel history to estimate your progress toward 1,095 days.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hesamkazemi.com\\\/en\\\/canadian-citizenship-physical-presence-calculator\\\/#breadcrumb\"},\"inLanguage\":\"en-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hesamkazemi.com\\\/en\\\/canadian-citizenship-physical-presence-calculator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hesamkazemi.com\\\/en\\\/canadian-citizenship-physical-presence-calculator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hesamkazemi.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Canadian citizenship physical presence calculator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hesamkazemi.com\\\/#website\",\"url\":\"https:\\\/\\\/hesamkazemi.com\\\/\",\"name\":\"Hesam Kazemi Immigration Inc.\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/hesamkazemi.com\\\/#organization\"},\"alternateName\":\"Hesam Kazemi Immigration\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hesamkazemi.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-CA\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hesamkazemi.com\\\/#organization\",\"name\":\"Hesam Kazemi Immigration Inc.\",\"alternateName\":\"\u0633\u0627\u0632\u0645\u0627\u0646 \u0645\u0647\u0627\u062c\u0631\u062a\u06cc \u062d\u0633\u0627\u0645 \u06a9\u0627\u0638\u0645\u06cc\",\"url\":\"https:\\\/\\\/hesamkazemi.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-CA\",\"@id\":\"https:\\\/\\\/hesamkazemi.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hesamkazemi.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/Untitled-200-x-200-px.png\",\"contentUrl\":\"https:\\\/\\\/hesamkazemi.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/Untitled-200-x-200-px.png\",\"width\":625,\"height\":625,\"caption\":\"Hesam Kazemi Immigration Inc.\"},\"image\":{\"@id\":\"https:\\\/\\\/hesamkazemi.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/HesamR707216\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/hesam-kazemi-immigration-inc\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCS0JDWzTj6x027HYvj2bH2A\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Canadian Citizenship Physical Presence Calculator | 1,095 Days","description":"Calculate your physical presence for Canadian citizenship. Track PR days, eligible temporary residence and travel history to estimate your progress toward 1,095 days.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/","og_locale":"en_US","og_type":"article","og_title":"Canadian citizenship physical presence calculator","og_description":"Calculate your physical presence for Canadian citizenship. Track PR days, eligible temporary residence and travel history to estimate your progress toward 1,095 days.","og_url":"https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/","og_site_name":"\u0633\u0627\u0632\u0645\u0627\u0646 \u0645\u0647\u0627\u062c\u0631\u062a\u06cc \u062d\u0633\u0627\u0645 \u06a9\u0627\u0638\u0645\u06cc | Hesam Kazemi Immigration Inc","article_modified_time":"2026-11-19T20:20:41+00:00","og_image":[{"width":1733,"height":907,"url":"https:\/\/hesamkazemi.com\/wp-content\/uploads\/2026\/10\/Modern-Canadian-immigration-consultation-workspace.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@HesamR707216","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/","url":"https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/","name":"Canadian Citizenship Physical Presence Calculator | 1,095 Days","isPartOf":{"@id":"https:\/\/hesamkazemi.com\/#website"},"datePublished":"2026-11-16T06:30:34+00:00","dateModified":"2026-11-19T20:20:41+00:00","description":"Calculate your physical presence for Canadian citizenship. Track PR days, eligible temporary residence and travel history to estimate your progress toward 1,095 days.","breadcrumb":{"@id":"https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/#breadcrumb"},"inLanguage":"en-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hesamkazemi.com\/en\/canadian-citizenship-physical-presence-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hesamkazemi.com\/en\/"},{"@type":"ListItem","position":2,"name":"Canadian citizenship physical presence calculator"}]},{"@type":"WebSite","@id":"https:\/\/hesamkazemi.com\/#website","url":"https:\/\/hesamkazemi.com\/","name":"Hesam Kazemi Immigration Inc.","description":"","publisher":{"@id":"https:\/\/hesamkazemi.com\/#organization"},"alternateName":"Hesam Kazemi Immigration","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hesamkazemi.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-CA"},{"@type":"Organization","@id":"https:\/\/hesamkazemi.com\/#organization","name":"Hesam Kazemi Immigration Inc.","alternateName":"\u0633\u0627\u0632\u0645\u0627\u0646 \u0645\u0647\u0627\u062c\u0631\u062a\u06cc \u062d\u0633\u0627\u0645 \u06a9\u0627\u0638\u0645\u06cc","url":"https:\/\/hesamkazemi.com\/","logo":{"@type":"ImageObject","inLanguage":"en-CA","@id":"https:\/\/hesamkazemi.com\/#\/schema\/logo\/image\/","url":"https:\/\/hesamkazemi.com\/wp-content\/uploads\/2026\/10\/Untitled-200-x-200-px.png","contentUrl":"https:\/\/hesamkazemi.com\/wp-content\/uploads\/2026\/10\/Untitled-200-x-200-px.png","width":625,"height":625,"caption":"Hesam Kazemi Immigration Inc."},"image":{"@id":"https:\/\/hesamkazemi.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/HesamR707216","https:\/\/www.linkedin.com\/company\/hesam-kazemi-immigration-inc\/","https:\/\/www.youtube.com\/channel\/UCS0JDWzTj6x027HYvj2bH2A"]}]}},"_links":{"self":[{"href":"https:\/\/hesamkazemi.com\/en\/wp-json\/wp\/v2\/pages\/15821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hesamkazemi.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hesamkazemi.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hesamkazemi.com\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/hesamkazemi.com\/en\/wp-json\/wp\/v2\/comments?post=15821"}],"version-history":[{"count":7,"href":"https:\/\/hesamkazemi.com\/en\/wp-json\/wp\/v2\/pages\/15821\/revisions"}],"predecessor-version":[{"id":15868,"href":"https:\/\/hesamkazemi.com\/en\/wp-json\/wp\/v2\/pages\/15821\/revisions\/15868"}],"wp:attachment":[{"href":"https:\/\/hesamkazemi.com\/en\/wp-json\/wp\/v2\/media?parent=15821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}