<?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_7f529a15-13a2-4b67-96bc-35916df86068">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_72ca0934-5a74-4f03-a914-d30b618075a7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_b707f07c-c4cf-4e02-97ae-eba0204bd7bd">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_333c1e50-2c6f-479f-bc94-8783c95f5189">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_4c58934a-1ae1-41e5-94a5-fc66be283eac">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_c2ba34c2-0f61-4582-850c-e75c2cd04d0b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_7bdef933-7d45-4a59-b7b0-1e863586bbc8">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_8384ff9f-39f0-4d40-8b94-736a18d348d9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_e4e79a1a-bc2e-4bf8-a244-0bf170858e58">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_11c9a771-c373-4af4-9859-65549065d46d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_7f529a15-13a2-4b67-96bc-35916df86068"
      id="F_e6c1f701-8f3c-4592-9544-a72ff8838b18">&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,056,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_7f529a15-13a2-4b67-96bc-35916df86068"
      decimals="-3"
      id="F_6a677928-e89e-4916-9e74-c82765bca446"
      unitRef="U_USD">1056000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
