<?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_a7768d8a-e2d8-4549-9df1-73fcdb466355">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_0f26366c-6a75-4ceb-96e2-780379813b0a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_b26f09f6-d08c-4989-9651-d5339d2c1bf3">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_926f68f4-a92f-4fef-8670-56bf19c4f40d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_abddd2cc-47a2-4964-9525-597d1172a222">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_89f39aba-f326-4ee0-9afc-f7cd51b8f673">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_0f869383-f800-4aa8-b348-4ffec6619558">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_0d1ab786-887f-46fb-a0de-565e06de0ef6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_a8ecc309-e877-4d73-9908-746d62dee01b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_aa8eb461-31b9-4f84-81cd-019349d178a3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      id="F_47842a56-4f92-4e9c-a0cf-1675d74814b8">&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;10,756,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_a7768d8a-e2d8-4549-9df1-73fcdb466355"
      decimals="-3"
      id="F_bb1ebc68-e4e1-4cf9-aff1-b7269d12d6dd"
      unitRef="U_USD">10756000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
