<?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_3e1c5bd7-3899-4eca-bd71-c227dce5a622">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_4abf34e8-f0ba-472b-a728-0309da27f429">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_644bdb12-d9e1-4cbe-aec7-b1086d379aca">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_439c55bf-e1c0-487f-86b3-a927e16d3c14">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_7e870f21-9cfc-4e8e-9a5b-30abc4ab2024">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_2594acec-4fe9-4753-a53e-488c30b2145a">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_84279b81-afb9-447d-8bf9-420409f6911e">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_4fc86420-450c-45a0-8b66-c6448fbd5e4a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_4d469904-a00f-4c90-9b31-b022450a8a5e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_3a34eca2-b9bf-4a7e-bfd6-40d21979a8c2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      id="F_74b19c28-dab7-4e5f-ab7a-6fe354b6c51f">&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,000,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_3e1c5bd7-3899-4eca-bd71-c227dce5a622"
      decimals="-6"
      id="F_f22ebab8-887e-4d20-85a4-8ab824fafafa"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
