<?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_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_743f09ec-17e1-4238-b55b-9df993dde6c5">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_1a5de1f6-4bf6-4ac8-b530-7b598775c03a">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_dd300b8b-6b2c-49c7-8284-16c2712cdd0b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_6c04dc22-c4e9-4a90-ab49-878dd77b51a2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_c9712493-eb84-4169-9416-06ec6d2048f3">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_dc07f5f4-b1b8-43e3-bfc2-1b44bfa174d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_50db7ea5-8b39-48d6-9792-9d6a8a00e68a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_492b2917-4e20-4b4c-9c6d-b8efdca569b4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_2d81998a-c67e-4bcc-a6da-15a08872f27d">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      id="F_e68b0e31-05e9-4e6b-875f-30dcacd9b212">&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;17,252,040&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_4bb3cb27-a6fe-4c0a-b2c0-2c9910354277"
      decimals="0"
      id="F_67887fa2-ee5f-4ad4-8095-0450dc23fc3b"
      unitRef="U_USD">17252040</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
