<?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_5ebab815-73f2-4ca6-a6cb-406e8808458e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_d8fdb968-ab45-40db-826d-65c71c2bdb8e">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_6d60a051-54dd-4301-b4a9-aa39d3e5229a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_ca765b34-dbca-4654-9ed2-7571ff77cf9c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_58232cb6-e8a7-45b5-9207-2e1a5691ce31">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_54711faa-afc1-42b2-b86b-b46754be3a15">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_65d0bef4-c24f-4d5b-85d7-50cb5d511c14">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_7169e37a-c0fa-4868-93d8-159558a7a966">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_7ce8e4c7-9fc5-4502-bb4e-1e2e1b0587d4">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_59c486df-e7fd-47bb-9b05-d0ae09ac13b9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      id="F_6b54a4dc-6488-4d71-87bd-dd7dd1d4fc7e">&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,390,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_5ebab815-73f2-4ca6-a6cb-406e8808458e"
      decimals="-3"
      id="F_c3bc3f71-2b2f-4c34-9bae-fc97ccfb10b0"
      unitRef="U_USD">1390000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
