<?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_ac239c94-d18b-4da1-be0a-0524fd8c0428">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_b1833fc1-1387-4160-b723-bbf43d0e381a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_a84a954e-c14c-49a1-a8b1-47e441972575">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_928f07ff-a711-40e5-9a62-08937fce1a33">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_ecf7a284-fb39-4d0e-b822-c892638868a1">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_1b23e06e-dace-43ed-be02-1111bc124074">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_4a81c560-2ed3-4770-961a-1bcac5b20ac8">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_9e5fbaac-1f51-4b51-b5a9-5e5e424418c5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_7ecbbc50-cb14-4edb-969b-263cbcc8f50c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_a6a3d917-4fb3-4a46-a1cc-5b91759a39cd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      id="F_575748ef-b742-46c5-8355-856761dcb3b3">&lt;p style="font-size:10pt;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;5,743,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_ac239c94-d18b-4da1-be0a-0524fd8c0428"
      decimals="-3"
      id="F_b1dbf07b-1318-4e2e-aa4a-a5f615fa0b1b"
      unitRef="U_USD">5743000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
