<?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_f70c3ef2-fe6e-4743-a033-816fc101032d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_afabbd2e-b03e-4e3a-915e-2581c60c9d9b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_f9179809-220c-4732-b984-2e408828c6fb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_829c14dd-dd3d-402a-8f2d-a3024e539443">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_2ec0ca1c-99ef-4026-87be-6a625c00156f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_ae90958c-b03c-473b-9aaa-92629a4480eb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_62b04118-743a-4a23-9e57-c7b0c37088af">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_dc60b198-d3d4-4beb-895e-a247e60cc9d9">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_a9037858-1e48-4616-9aca-507ee2a3bf03">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_6e6a5fef-d206-4286-bc30-b14a83c88fbe">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f70c3ef2-fe6e-4743-a033-816fc101032d"
      id="F_3e81d5d3-bf2f-487d-a948-92ade8b8bb12">&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;1,426,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_f70c3ef2-fe6e-4743-a033-816fc101032d"
      decimals="-3"
      id="F_e7c3c712-571c-46ee-badd-59d2267d7d45"
      unitRef="U_USD">1426000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
