<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_4a344c38-3c67-4d26-be74-08370810090e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_3f00a249-699d-49e2-a2ad-b8aac4b77bdc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_78a4bfbe-1f3f-400a-9926-936d639a6a2e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_7ebe878f-be65-4b7a-a54d-01beaef32851">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_014bbc9e-2980-4e5c-85a1-5b2207c52b3e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_86a6bdf8-9a23-4b45-901b-846332ee0293">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_414d7afc-7daf-4709-ab5e-941eff113971">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_4eca8041-38a9-44e8-aecb-262ff52ba1ab">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_8226a2c1-0700-4e89-99f6-97e95454bcd6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_5cdf81b6-3e22-4624-b5d6-583a1232fa61">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_4a344c38-3c67-4d26-be74-08370810090e"
      id="F_add2700f-6660-48a4-9a9b-6190c46e2db2">&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;11,178,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_4a344c38-3c67-4d26-be74-08370810090e"
      decimals="0"
      id="F_b684ca21-71af-4813-b9d7-21a512f98c93"
      unitRef="U_USD">11178000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
