<?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_9ea90d6e-6a20-4da3-8729-3dfb3233653f">
        <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:FeeExhibitTp
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_fd049e8a-653a-4507-a1bb-4da3fad9ef02">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_220f622b-0b5c-453e-bbfa-d22b949136a1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_af662cf0-79cf-471c-8164-172935688fb6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_1e849f24-d402-4e8e-b7e1-895df86a240c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_a8253dd8-3f79-4dec-bbf3-880797adc465">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_ae413eef-0c7c-4911-815a-4ae3ba3ef994">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_dfd11834-f347-45db-b15a-06c53e73078e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_139b0b57-ec93-417d-877f-6feed957e427">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_975503bb-ae18-44c5-958f-c3d6b3fb5d95">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      id="F_8895a802-cf7c-4d07-a6b9-9f3c5e2e5a11">&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,170,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_9ea90d6e-6a20-4da3-8729-3dfb3233653f"
      decimals="-3"
      id="F_77301b25-a449-439e-9ec0-dc681ddf4dbd"
      unitRef="U_USD">1170000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
