<?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_c8a0f9bc-81cc-4197-aec3-19f02150882e">
        <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:SubmissnTp
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_d0bb07d6-a845-437a-a795-e5687043a764">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_24cffc69-e441-4a81-b216-0023c097ef1a">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_da19e388-8eeb-4a57-b952-d98be4bcc8f3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_a42fb4a0-abea-46b3-9c3f-4a3cfee7d8d1">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_397a4706-a6db-427c-bfb7-53b705b92f5f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_03650f12-0e3d-4a51-97b0-82969d34069f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_b2c39011-86ed-4d94-a7b2-98c2173d50d4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_7ced8e1e-2349-4f27-a666-fd367cc62be9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_711e96f3-9694-4dc0-bcde-e693fdc2f9db">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      id="F_d46f416a-c816-4c52-ac50-2c669f4ac777">&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;25,242,540&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_c8a0f9bc-81cc-4197-aec3-19f02150882e"
      decimals="0"
      id="F_d8771d07-5188-4801-80f3-dd08497324e4"
      unitRef="U_USD">25242540</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
