<?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_bbcec83d-f263-4b3c-ada9-66eccefc4d8b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_a3cb0ae6-2c2e-43fc-9d42-326dba189c1d">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_18f1c91e-7786-4306-8388-438b5a3043f3">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_92fa26e3-2c9e-4894-a487-a44fb62180d2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_ca49c366-61f4-4233-98ae-4f91a077f05d">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_e6635550-7be3-4a47-bfe1-f5b028d2a8cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_e1c53ae2-1425-474a-9233-53aae41a106e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_c64a42f1-e8fd-4749-9266-1a614802766b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_b96f1d54-f889-49c4-a15e-fdfc9d988eda">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_a4464057-25e5-4021-8a60-dae08d1ecd19">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      id="F_16de114d-0be2-43ad-95ba-6912827568e0">&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,000,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_bbcec83d-f263-4b3c-ada9-66eccefc4d8b"
      decimals="-6"
      id="F_7220882e-1c22-4648-9524-3eefdd9ce3cf"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
