<?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_de3ef0fa-62e3-47e9-8af4-0d3f082abf76">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_098a43ce-575c-4392-a0ce-812c8c63469f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_e79942b4-20b7-4e04-8226-7f70c1424f59">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_195df89d-5114-4876-b4de-71a5ba42445b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_d62133f1-b63a-49ee-badf-1afdc24b4d56">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_08e798b1-2757-48f3-87ed-fddc44701034">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_a38ccf3d-8410-449d-8d72-5180ccf67e81">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_10b80e86-2883-4fb8-a69f-abb2d21f4bd2">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_4650ad04-c260-4284-9651-e3e5b34d6a42">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_0c55c759-77f8-408b-9597-3fc6b022872e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      id="F_5bcc1b12-e8fc-4cf6-a9f7-880f699c88b1">&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;2,670,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_de3ef0fa-62e3-47e9-8af4-0d3f082abf76"
      decimals="-3"
      id="F_e4bfd86a-1979-44f4-b2a7-d6e8b0ded82c"
      unitRef="U_USD">2670000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
