<?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_c76737d1-c33c-4fc5-9a25-5345f60d73d0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_ace4ab3b-5ad1-48d4-993d-1f85669db1e5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_e6db811d-1d09-494a-ba61-fcb0fa5a0b95">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_0ee01a2b-6e5e-4bdd-8265-a58b62219f36">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_b2e7b7a7-c7f8-497c-83cc-31eff546cec7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_5b11a947-7785-446f-880a-50503322c24c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_4febc75c-3961-4c34-955b-aaa4b4442257">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_1562ad83-e418-4ae1-ab75-34bbad916919">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_07f3ea31-ea30-44b5-b9f2-2b1e3dea8825">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_172a91f7-16b7-4cf7-a117-4ebb4fb40b9f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      id="F_0d226f3d-2aa7-4d80-914d-867aa78586a6">&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;1,025,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_c76737d1-c33c-4fc5-9a25-5345f60d73d0"
      decimals="-3"
      id="F_8bd3ce1e-8a24-4f1d-8179-dee6554dcefd"
      unitRef="U_USD">1025000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
