<?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_0bf0723e-f117-4977-8f93-16a6ed7a3e0c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_b23e63f9-0536-4299-8ace-7035131fad70">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_2449c094-075e-4a9e-99ce-e01237960098">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_b59ee4c8-a545-476f-a1af-02d5c5e261ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_e01bb186-03ae-4764-a551-1e5c46207b04">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_ca4a70eb-6de0-494d-8683-ca3810c47abb">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_11c7eed8-dc34-447a-820c-760bd85af979">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_71313470-73bc-45c2-95f2-123d81d688ad">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_f63af09c-481a-4874-b076-767dbef08211">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_f4d0bece-f484-4859-9c78-359b39ca526f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      id="F_970e60cf-0807-4274-a3bc-3dc570199a82">&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;931,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_0bf0723e-f117-4977-8f93-16a6ed7a3e0c"
      decimals="-3"
      id="F_bd76dd9e-b667-4a61-a594-025d59fe5427"
      unitRef="U_USD">931000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
