<?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_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_ecd88ff8-467a-4939-a0aa-89920497f2f6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_1927e14a-959b-4810-bee4-6493e14df69b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_52f1508f-9df7-4963-9701-cf5f6cf0a905">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_e221b3da-b0da-4c72-ab97-1ce1ca8a94ca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_fb4d95d8-d21b-4942-818d-f7863bd37329">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_41812a94-bf6d-4c78-8bb6-af54e8fe746a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_28c810b9-33b3-44cf-88e2-48357fe20275">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_adbc4a47-5d73-4f1c-b206-b094e7b4914d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_63c1dba4-3365-47a7-942a-0e2d8d755809">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      id="F_5cb23b7d-7bc2-46a1-a4af-b1d3c514d50d">&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;3,002,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_9a2b02d7-cd5a-4a14-98de-e8a72fc8a71e"
      decimals="-3"
      id="F_48f06c12-60b6-4b31-825f-1b492f0b70df"
      unitRef="U_USD">3002000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
