<?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_e0394283-f6ff-48d3-90ee-cb122281b7b8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_9fe5a306-d5d5-4794-bb55-8d3ac16b28f6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_321d7dc3-3c1c-48f4-b6ea-916a316012bc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_79cef627-b04e-4e7e-9588-e276ebd86e4e">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_10f06dfe-90d4-47a6-b9d0-8baf500fa77f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_ad68b36b-c517-4bb4-926f-475de7638d76">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_c9d99179-957f-492c-9d4e-e2f114680582">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_260e210a-0c3e-4e9a-a125-276b275ce0d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_0daded56-778b-40dc-a4ba-1fb6da037eb3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_87c066f7-201a-47a1-8fba-d1d903794994">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      id="F_10989f5a-bb24-4f4e-a0bd-19528b7615b7">&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;250,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_e0394283-f6ff-48d3-90ee-cb122281b7b8"
      decimals="-3"
      id="F_e6dfe764-7507-45c1-8f0f-cb2fc73cc7f1"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
