<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_e999b0fc-f8fb-4a35-b125-37904e63c787">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_3a59d3bd-edce-456d-9035-9c426fbe0d7c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_156081e6-7520-4d1c-89d5-01d347ed27e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_c39f085b-9f93-4943-8d95-f3c4d3a2511e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_b05170a1-437b-4a49-8afb-0d842ceb77dc">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_069ba4e1-da07-459d-b51d-fbe7a640d5fb">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_02559d83-67ae-43c7-b310-95dcea243c2f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_bb436cb1-3ce1-49c8-bc31-8856f9efcb7f">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_77cab64c-da7b-46a7-95b2-5272e8b8924e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_2a8214d1-e420-49e0-b8a8-44cbf10f4a9e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      id="F_8e000a67-63ce-4d48-bd40-2299dbea0f7f">&lt;p style="tab-size:26.66px;font-size:12pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering. The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;4,180,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_e999b0fc-f8fb-4a35-b125-37904e63c787"
      decimals="-3"
      id="F_5ff36860-16dd-4534-af17-84f7bcc1da28"
      unitRef="U_USD">4180000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
