<?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_59cd817d-a67a-4c0f-99a2-6832d4c0ed70">
        <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_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_a215f026-3567-40b5-8e3f-d921b3742bbe">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_256ac4d4-21e4-4bff-84ad-eeb5009c6d42">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_4c70d8ca-0f8a-4636-9db5-eb49195d2df8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_b0fe0b42-c479-4c9c-871f-d561fc9d59af">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_1f99da9c-298e-46b1-b81a-0b4fa429b4c3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_8b96e65b-8ebb-4514-a139-2023b6fade02">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_7d4b6b96-769c-4ee9-ad8a-eb220ae00d40">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_7b530263-bee9-422b-ab0c-a7a67af5602b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_ec1fc964-f262-49f7-8881-e2fc2c8ea91e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      id="F_805e94bc-47ce-4f73-966b-b359ef7fd407">&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;500,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_59cd817d-a67a-4c0f-99a2-6832d4c0ed70"
      decimals="-3"
      id="F_4e119a2c-ed56-4fbf-ad7f-f11a575b0ec9"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
